Class SecureList<E>
java.lang.Object
org.exoplatform.commons.utils.secure.SecureList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
SecureList is a wrapper over given List instance providing additional security check.
To be able to modify this list, invoking code must have permission given in SecureList's
constructor or
AllPermission.- Version:
- $Id: SecureList.java 34360 2009-07-22 23:58:59Z nzamosenchuk $
- Author:
- Nikolay Zamosenchuk
-
Constructor Summary
ConstructorsConstructorDescriptionSecureList(Permission permission) SecureList(List<E> list, Permission permission) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends E> pds) booleanaddAll(Collection<? extends E> pds) voidclear()booleanbooleancontainsAll(Collection<?> coll) booleanget(int index) inthashCode()intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> pds) booleanretainAll(Collection<?> pds) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
SecureList
-
SecureList
-
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
equals
-
get
-
hashCode
public int hashCode() -
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
toString
-