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 |
handleRemovedActivities(ActivityStreamService activityStreamService,
Collection<Serializable> activityIds)
Deprecated.
since 5.6
|
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.
|
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.
@Deprecated void handleRemovedActivities(ActivityStreamService activityStreamService, Collection<Serializable> activityIds)
ActivityStreamService
before removing the
activities referenced by the given activityIds
.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 © 2013 Nuxeo SA. All Rights Reserved.