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, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
add, 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, toArray
parallelStream, removeIf, stream
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
protected 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)
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 © 2018 Nuxeo. All rights reserved.