public class ActivitiesListImpl extends ArrayList<Activity> implements ActivitiesList
ActivitiesList.modCount| 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. |
protected List<String> |
filterAuthorizedDocuments(Set<String> allDocuments,
CoreSession session) |
protected Map<String,List<Activity>> |
getActivitiesByDocument() |
protected List<String> |
getRelatedDocuments(Activity activity) |
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, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic ActivitiesListImpl()
public ActivitiesListImpl(Collection<? extends Activity> c)
public ActivitiesList filterActivities(CoreSession session)
ActivitiesListActivitiesList based on the given session.
All the activities related to documents the user has no read access will be filter out.
filterActivities in interface ActivitiesListprotected Map<String,List<Activity>> getActivitiesByDocument()
protected List<String> getRelatedDocuments(Activity activity)
protected List<String> filterAuthorizedDocuments(Set<String> allDocuments, CoreSession session)
public List<ActivityMessage> toActivityMessages(Locale locale)
ActivitiesListActivitiesList into a list of ActivityMessage, internationalized with the given
locale.toActivityMessages in interface ActivitiesListpublic List<ActivityMessage> toActivityMessages(Locale locale, String activityLinkBuilderName)
ActivitiesListActivitiesList into a list of ActivityMessage, internationalized with the given
locale.
Use the ActivityLinkBuilder of name activityLinkBuilderName to generate the links.
toActivityMessages in interface ActivitiesListpublic List<Serializable> toActivityIds()
ActivitiesListActivitiesList into a list of Activity ids.toActivityIds in interface ActivitiesListCopyright © 2018 Nuxeo. All rights reserved.