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 . |
ActivityReply |
addActivityReply(Serializable activityId,
ActivityReply activityReply)
|
ActivitiesList |
getActivities(Collection<Serializable> activityIds) |
Activity |
getActivity(Serializable activityId) |
ActivityLinkBuilder |
getActivityLinkBuilder(String name)
Returns the
ActivityLinkBuilder with the given name . |
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<Activity> activities)
Remove the given
activities . |
ActivityReply |
removeActivityReply(Serializable activityId,
String activityReplyId)
|
ActivityMessage |
toActivityMessage(Activity activity,
Locale locale)
|
ActivityMessage |
toActivityMessage(Activity activity,
Locale locale,
String activityLinkBuilderName)
|
ActivityReplyMessage |
toActivityReplyMessage(ActivityReply activityReply,
Locale locale)
|
ActivityReplyMessage |
toActivityReplyMessage(ActivityReply activityReply,
Locale locale,
String activityLinkBuilderName)
|
static final String ALL_ACTIVITIES
filterId
Activity getActivity(Serializable activityId)
ActivitiesList getActivities(Collection<Serializable> activityIds)
Activity addActivity(Activity activity)
Activity
.void removeActivities(Collection<Activity> activities)
activities
.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.NuxeoException
- 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.NuxeoException
- if there is no ActivityStreamFilter
matching the given filterId
.ActivityMessage toActivityMessage(Activity activity, Locale locale)
ActivityMessage toActivityMessage(Activity activity, Locale locale, String activityLinkBuilderName)
ActivityReplyMessage toActivityReplyMessage(ActivityReply activityReply, Locale locale)
ActivityReplyMessage toActivityReplyMessage(ActivityReply activityReply, Locale locale, String activityLinkBuilderName)
ActivityStream getActivityStream(String name)
ActivityLinkBuilder getActivityLinkBuilder(String name)
ActivityLinkBuilder
with the given name
.
If name
is null
, or if the ActivityLinkBuilder
does not exist, fallback on the default
one if any.
ActivityReply addActivityReply(Serializable activityId, ActivityReply activityReply)
activityReply
ActivityReply removeActivityReply(Serializable activityId, String activityReplyId)
ActivityReply
if any, null
otherwiseCopyright © 2015 Nuxeo SA. All rights reserved.