public class SocialWorkspaceActivityStreamFilter extends Object implements ActivityStreamFilter
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static String |
REPOSITORY_NAME_PARAMETER |
static String |
SOCIAL_WORKSPACE_ACTIVITY_STREAM_NAME |
static String |
SOCIAL_WORKSPACE_ID_PARAMETER |
Constructor and Description |
---|
SocialWorkspaceActivityStreamFilter() |
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.
|
public static final String ID
public static final String REPOSITORY_NAME_PARAMETER
public static final String SOCIAL_WORKSPACE_ID_PARAMETER
public static final String SOCIAL_WORKSPACE_ACTIVITY_STREAM_NAME
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
public void handleRemovedActivities(ActivityStreamService activityStreamService, Collection<Serializable> activityIds)
ActivityStreamFilter
ActivityStreamService
before removing the
activities referenced by the given activityIds
.handleRemovedActivities
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 © 2011 Nuxeo SA. All Rights Reserved.