public class ActivitiesListImpl extends ArrayList<Activity> implements ActivitiesList
ActivitiesList
.Constructor and Description |
---|
ActivitiesListImpl() |
ActivitiesListImpl(Collection<? extends Activity> c) |
Modifier and Type | Method and Description |
---|---|
ActivitiesList |
filterActivities(CoreSession session)
Returns a filtered
ActivitiesList based on the given
session . |
List<Serializable> |
toActivityIds()
Transforms this
ActivitiesList into a list of Activity ids. |
List<ActivityMessage> |
toActivityMessages(Locale locale)
Transforms this
ActivitiesList into a list of
ActivityMessage , internationalized with the given locale . |
List<ActivityMessage> |
toActivityMessages(Locale locale,
String activityLinkBuilderName)
Transforms this
ActivitiesList into a list of
ActivityMessage , internationalized with the given locale . |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
public ActivitiesListImpl()
public ActivitiesListImpl(Collection<? extends Activity> c)
public ActivitiesList filterActivities(CoreSession session)
ActivitiesList
ActivitiesList
based on the given
session
.
All the activities related to documents the user has no read access will be filter out.
filterActivities
in interface ActivitiesList
public List<ActivityMessage> toActivityMessages(Locale locale)
ActivitiesList
ActivitiesList
into a list of
ActivityMessage
, internationalized with the given locale
.toActivityMessages
in interface ActivitiesList
public List<ActivityMessage> toActivityMessages(Locale locale, String activityLinkBuilderName)
ActivitiesList
ActivitiesList
into a list of
ActivityMessage
, internationalized with the given locale
.
Use the ActivityLinkBuilder
of name activityLinkBuilderName
to
generate the links.
toActivityMessages
in interface ActivitiesList
public List<Serializable> toActivityIds()
ActivitiesList
ActivitiesList
into a list of Activity ids.toActivityIds
in interface ActivitiesList
Copyright © 2014 Nuxeo SA. All Rights Reserved.