public interface ActivityStreamService
It also uses contributed ActivityStreamFilter
s to store and filter
activities for specific use cases.
Modifier and Type | Field and Description |
---|---|
static String |
ALL_ACTIVITIES
To be used as
filterId |
Modifier and Type | Method and Description |
---|---|
Activity |
addActivity(Activity activity)
Add and store a new
Activity . |
ActivityStream |
getActivityStream(String name)
|
ActivitiesList |
query(String filterId,
Map<String,Serializable> parameters)
Returns the list of activities filtered by the given parameters using the
ActivityStreamFilter referenced by filterId . |
ActivitiesList |
query(String filterId,
Map<String,Serializable> parameters,
long offset,
long limit)
Returns the list of activities filtered by the given parameters using the
ActivityStreamFilter referenced by filterId . |
void |
removeActivities(Collection<Serializable> activityIds)
Remove the Activities referenced by the given
activityIds . |
ActivityMessage |
toActivityMessage(Activity activity,
Locale locale)
|
static final String ALL_ACTIVITIES
filterId
void removeActivities(Collection<Serializable> activityIds)
activityIds
.ActivitiesList query(String filterId, Map<String,Serializable> parameters, long offset, long limit)
ActivityStreamFilter
referenced by filterId
.filterId
- the id of the ActivityStreamFilter
to use.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.ClientRuntimeException
- if there is no
ActivityStreamFilter
matching the given
filterId
.ActivitiesList query(String filterId, Map<String,Serializable> parameters)
ActivityStreamFilter
referenced by filterId
.filterId
- the id of the ActivityStreamFilter
to use.parameters
- this query parameters.ClientRuntimeException
- if there is no
ActivityStreamFilter
matching the given
filterId
.ActivityMessage toActivityMessage(Activity activity, Locale locale)
ActivityStream getActivityStream(String name)
Copyright © 2011 Nuxeo SA. All Rights Reserved.