public class LikesCountActivityStreamFilter extends Object implements ActivityStreamFilter
| Modifier and Type | Class and Description |
|---|---|
static class |
LikesCountActivityStreamFilter.QueryType |
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTOR_PARAMETER |
static String |
ASPECT_PARAMETER |
static String |
CONTEXT_PARAMETER |
static String |
FROMDT_PARAMETER |
static String |
ID |
static String |
OBJECT_PARAMETER |
static String |
TODT_PARAMETER |
protected static String |
VERB_MINIMESSAGE_PARAMETER |
protected static String |
VERB_PARAMETER |
| Constructor and Description |
|---|
LikesCountActivityStreamFilter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns the id of this
ActivityStreamFilter. |
void |
handleNewActivity(ActivityStreamService activityStreamService,
Activity activity)
Called by the
ActivityStreamService when a new Activity is stored. |
void |
handleRemovedActivities(ActivityStreamService activityStreamService,
ActivitiesList activities)
Called by the
ActivityStreamService before removing the given activities. |
void |
handleRemovedActivityReply(ActivityStreamService activityStreamService,
Activity activity,
ActivityReply activityReply)
Called by the
ActivityStreamService before removing the given activityReply. |
boolean |
isInterestedIn(Activity activity)
Returns
true if this ActivityStreamFilter is interested in the given activity,
false otherwise. |
ActivitiesList |
query(ActivityStreamService activityStreamService,
Map<String,Serializable> parameters,
long offset,
long limit)
Returns the list of activities filtered by the given parameters.
|
public static final String ID
public static final String CONTEXT_PARAMETER
public static final String ASPECT_PARAMETER
public static final String OBJECT_PARAMETER
public static final String ACTOR_PARAMETER
public static final String FROMDT_PARAMETER
public static final String TODT_PARAMETER
protected static final String VERB_PARAMETER
protected static final String VERB_MINIMESSAGE_PARAMETER
public LikesCountActivityStreamFilter()
public String getId()
ActivityStreamFilterActivityStreamFilter.getId in interface ActivityStreamFilterpublic boolean isInterestedIn(Activity activity)
ActivityStreamFiltertrue if this ActivityStreamFilter is interested in the given activity,
false otherwise.isInterestedIn in interface ActivityStreamFilterpublic void handleNewActivity(ActivityStreamService activityStreamService, Activity activity)
ActivityStreamFilterActivityStreamService when a new Activity is stored.
The given activity must not be modified.
handleNewActivity in interface ActivityStreamFilterpublic void handleRemovedActivities(ActivityStreamService activityStreamService, ActivitiesList activities)
ActivityStreamFilterActivityStreamService before removing the given activities.handleRemovedActivities in interface ActivityStreamFilterpublic void handleRemovedActivityReply(ActivityStreamService activityStreamService, Activity activity, ActivityReply activityReply)
ActivityStreamFilterActivityStreamService before removing the given activityReply.handleRemovedActivityReply in interface ActivityStreamFilterpublic ActivitiesList query(ActivityStreamService activityStreamService, Map<String,Serializable> parameters, long offset, long limit)
ActivityStreamFilterquery in interface ActivityStreamFilteractivityStreamService - the main ActivityStreamServiceparameters - this query parameters.offset - the offset (starting at 0) into the list of activities.limit - the maximum number of activities to retrieve, or 0 for all of them.Copyright © 2019 Nuxeo. All rights reserved.