public interface ActivityStreamFilter
ActivityStreamService
to store and filter activities for specific use cases.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.
|
boolean isInterestedIn(Activity activity)
true
if this ActivityStreamFilter
is interested in the given activity
,
false
otherwise.void handleNewActivity(ActivityStreamService activityStreamService, Activity activity)
ActivityStreamService
when a new Activity
is stored.
The given activity
must not be modified.
void handleRemovedActivities(ActivityStreamService activityStreamService, ActivitiesList activities)
ActivityStreamService
before removing the given activities
.void handleRemovedActivityReply(ActivityStreamService activityStreamService, Activity activity, ActivityReply activityReply)
ActivityStreamService
before removing the given activityReply
.ActivitiesList query(ActivityStreamService activityStreamService, Map<String,Serializable> parameters, long offset, long limit)
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 © 2017 Nuxeo. All rights reserved.