Class ACLImpl
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractList<E>
- 
- java.util.ArrayList<ACE>
- 
- org.nuxeo.ecm.core.api.security.impl.ACLImpl
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Iterable<ACE>,- Collection<ACE>,- List<ACE>,- RandomAccess,- ACL
 
 public class ACLImpl extends ArrayList<ACE> implements ACL An ACL implementation.- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class java.util.AbstractListmodCount
 - 
Fields inherited from interface org.nuxeo.ecm.core.api.security.ACLINHERITED_ACL, LOCAL_ACL
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(ACE ace)Add an ACE.booleanblockInheritance(String username)Block the inheritance.Objectclone()Returns a recursive copy of the ACL sharing no mutable substructure with the original.ACE[]getACEs()Returns the ACEs defined by this list as an array.protected List<ACE>getAdminEverythingACES()StringgetName()Gets the ACL name.booleanisReadOnly()booleanremoveByUsername(String username)Remove all ACEs forusername.booleanreplace(ACE oldACE, ACE newACE)Replace theoldACEwithnewACE, only if theoldACEexists.voidreplacePermission(String oldPerm, String newPerm)Replaces a permission with another in this ACL.voidsetACEs(ACE[] aces)Sets the ACEs defined by this ACL.booleanunblockInheritance()Unblock the inheritance.- 
Methods inherited from class java.util.ArrayListadd, addAll, addAll, clear, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
 - 
Methods inherited from class java.util.AbstractCollectioncontainsAll, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 - 
Methods inherited from interface java.util.Listadd, 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
 
- 
 
- 
- 
- 
Method Detail- 
getACEspublic ACE[] getACEs() Description copied from interface:ACLReturns the ACEs defined by this list as an array.
 - 
setACEspublic void setACEs(ACE[] aces) Description copied from interface:ACLSets the ACEs defined by this ACL.
 - 
isReadOnlypublic boolean isReadOnly() 
 - 
blockInheritancepublic boolean blockInheritance(String username) Description copied from interface:ACLBlock the inheritance.- Specified by:
- blockInheritancein interface- ACL
- Parameters:
- username- the user blocking the inheritance
- Returns:
- true if the ACL was changed.
 
 - 
unblockInheritancepublic boolean unblockInheritance() Description copied from interface:ACLUnblock the inheritance.- Specified by:
- unblockInheritancein interface- ACL
- Returns:
- true if the ACL was changed.
 
 - 
getAdminEverythingACESprotected List<ACE> getAdminEverythingACES() 
 - 
replacepublic boolean replace(ACE oldACE, ACE newACE) Description copied from interface:ACLReplace theoldACEwithnewACE, only if theoldACEexists.The newACEkeeps the same index asoldACE.
 - 
removeByUsernamepublic boolean removeByUsername(String username) Description copied from interface:ACLRemove all ACEs forusername.- Specified by:
- removeByUsernamein interface- ACL
- Returns:
- true if the ACL was changed.
 
 - 
replacePermissionpublic void replacePermission(String oldPerm, String newPerm) Description copied from interface:ACLReplaces a permission with another in this ACL.- Specified by:
- replacePermissionin interface- ACL
- Parameters:
- oldPerm- the old permission
- newPerm- the new permission
 
 
- 
 
-