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,
Collection<Serializable> activityIds)
Called by the
ActivityStreamService before removing the
activities referenced by the given activityIds . |
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.
|
String getId()
ActivityStreamFilter
.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, Collection<Serializable> activityIds)
ActivityStreamService
before removing the
activities referenced by the given activityIds
.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 © 2011 Nuxeo SA. All Rights Reserved.