public class ReviewPlugin extends PluginActivator implements ReviewService
| Modifier and Type | Field and Description |
|---|---|
static String |
GOOD_TYPE_URI |
private Logger |
log |
static String |
SCORE_TYPE_URI |
static String |
SOSO_TYPE_URI |
bundle, dms| Constructor and Description |
|---|
ReviewPlugin() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addOne(ChildTopics childTopics,
String childTypeUri) |
Topic |
addToGood(long resourceId)
Increments the number of supportive voices (yelling "Good!").
|
Topic |
addToSoso(long resourceId)
Increments the number of supportive voices (yelling "Well, so so.").
|
Topic |
downvoteResourceById(long resourceId)
Decrements the score of any given topic.
|
private void |
substractOne(ChildTopics childTopics,
String childTypeUri) |
Topic |
upvoteResourceById(long resourceId)
Increments the score of any given topic.
|
getBundleContext, getPluginName, getStaticResource, getUri, init, postInstall, publishDirectory, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toStringpublic static final String SCORE_TYPE_URI
public static final String GOOD_TYPE_URI
public static final String SOSO_TYPE_URI
public ReviewPlugin()
public Topic addToGood(long resourceId)
addToGood in interface ReviewServiceresourceId - public Topic addToSoso(long resourceId)
addToSoso in interface ReviewServiceresourceId - public Topic upvoteResourceById(long resourceId)
upvoteResourceById in interface ReviewServiceresourceId - public Topic downvoteResourceById(long resourceId)
downvoteResourceById in interface ReviewServiceresourceId - clientState - private void addOne(ChildTopics childTopics, String childTypeUri)
private void substractOne(ChildTopics childTopics, String childTypeUri)
Copyright © 2016. All Rights Reserved.