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 |
handleRemovedActivities(ActivityStreamService activityStreamService,
Collection<Serializable> activityIds)
Deprecated.
|
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()
ActivityStreamFilter
ActivityStreamFilter
.getId
in interface ActivityStreamFilter
public boolean isInterestedIn(Activity activity)
ActivityStreamFilter
true
if this ActivityStreamFilter
is interested in the given activity
,
false
otherwise.isInterestedIn
in interface ActivityStreamFilter
public void handleNewActivity(ActivityStreamService activityStreamService, Activity activity)
ActivityStreamFilter
ActivityStreamService
when a new Activity
is stored.
The given activity
must not be modified.
handleNewActivity
in interface ActivityStreamFilter
@Deprecated public void handleRemovedActivities(ActivityStreamService activityStreamService, Collection<Serializable> activityIds)
ActivityStreamFilter
ActivityStreamService
before removing the activities referenced by the given
activityIds
.handleRemovedActivities
in interface ActivityStreamFilter
public void handleRemovedActivities(ActivityStreamService activityStreamService, ActivitiesList activities)
ActivityStreamFilter
ActivityStreamService
before removing the given activities
.handleRemovedActivities
in interface ActivityStreamFilter
public void handleRemovedActivityReply(ActivityStreamService activityStreamService, Activity activity, ActivityReply activityReply)
ActivityStreamFilter
ActivityStreamService
before removing the given activityReply
.handleRemovedActivityReply
in interface ActivityStreamFilter
public ActivitiesList query(ActivityStreamService activityStreamService, Map<String,Serializable> parameters, long offset, long limit)
ActivityStreamFilter
query
in interface ActivityStreamFilter
activityStreamService
- the main ActivityStreamService
parameters
- 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 © 2015 Nuxeo SA. All rights reserved.