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
ConstructorsConstructorDescriptionWrappedList(List<T> wrapped, boolean permissionsApplied, boolean hasMoreItems) WrappedList(List<T> wrapped, int maxChecks) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanintbooleanisEmpty()iterator()intlistIterator(int index) booleanremove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()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, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
WrappedList
-
WrappedList
-
-
Method Details
-
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
-
getWrapped
-
iterator
-
add
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
isEmpty
public boolean isEmpty() -
remove
-
removeAll
-
retainAll
-
size
public int size() -
toArray
-
add
-
addAll
-
addAll
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
remove
-
set
-
subList
-
toArray
public <T> T[] toArray(T[] a)
-