Class WrappedList<T>
- java.lang.Object
-
- org.alfresco.repo.security.permissions.impl.acegi.WrappedList<T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,org.alfresco.query.PermissionedResults
public class WrappedList<T> extends Object implements List<T>, org.alfresco.query.PermissionedResults
Wrapped list for permission checking (eg. used by canned queries) which can be used to indicate that: - input results should be optionally permission checked up to a given maximum number of items (and then cutoff - ie. hasMoreItems = true) - have permission been applied to output results and were the permission checks cut-off (ie. hasMoreItems = true) either due to max items or system-wide time limit- Since:
- 4.0
- Author:
- janv
-
-
Constructor Summary
Constructors Constructor Description WrappedList(List<T> wrapped, boolean permissionsApplied, boolean hasMoreItems)WrappedList(List<T> wrapped, int maxChecks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanadd(T e)booleanaddAll(int index, Collection<? extends T> c)booleanaddAll(Collection<? extends T> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)Tget(int index)intgetMaxChecks()List<T>getWrapped()booleanhasMoreItems()intindexOf(Object o)booleanisEmpty()Iterator<T>iterator()intlastIndexOf(Object o)ListIterator<T>listIterator()ListIterator<T>listIterator(int index)booleanpermissionsApplied()Tremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Tset(int index, T element)intsize()List<T>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
getMaxChecks
public int getMaxChecks()
-
hasMoreItems
public boolean hasMoreItems()
- Specified by:
hasMoreItemsin interfaceorg.alfresco.query.PermissionedResults
-
permissionsApplied
public boolean permissionsApplied()
- Specified by:
permissionsAppliedin interfaceorg.alfresco.query.PermissionedResults
-
add
public boolean add(T e)
-
clear
public void clear()
-
contains
public boolean contains(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
isEmpty
public boolean isEmpty()
-
remove
public boolean remove(Object o)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
size
public int size()
-
toArray
public Object[] toArray()
-
addAll
public boolean addAll(Collection<? extends T> c)
-
addAll
public boolean addAll(int index, Collection<? extends T> c)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin interfaceList<T>
-
-