Class ACLImpl
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<ACE>,Collection<ACE>,List<ACE>,RandomAccess,ACL
An ACL implementation.
- Author:
- Bogdan Stefanescu
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCountFields inherited from interface org.nuxeo.ecm.core.api.security.ACL
INHERITED_ACL, LOCAL_ACL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd an ACE.booleanblockInheritance(String username) Block the inheritance.clone()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.getName()Gets the ACL name.booleanbooleanremoveByUsername(String username) Remove all ACEs forusername.booleanReplace theoldACEwithnewACE, only if theoldACEexists.voidreplacePermission(String oldPerm, String newPerm) Replaces a permission with another in this ACL.voidSets the ACEs defined by this ACL.booleanUnblock the inheritance.Methods inherited from class java.util.ArrayList
add, 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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
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
-
Constructor Details
-
ACLImpl
-
ACLImpl
public ACLImpl() -
ACLImpl
-
-
Method Details
-
getName
Description copied from interface:ACLGets the ACL name. -
getACEs
Description copied from interface:ACLReturns the ACEs defined by this list as an array. -
setACEs
Description copied from interface:ACLSets the ACEs defined by this ACL. -
isReadOnly
public boolean isReadOnly() -
blockInheritance
Description copied from interface:ACLBlock the inheritance.- Specified by:
blockInheritancein interfaceACL- Parameters:
username- the user blocking the inheritance- Returns:
- true if the ACL was changed.
-
unblockInheritance
public boolean unblockInheritance()Description copied from interface:ACLUnblock the inheritance.- Specified by:
unblockInheritancein interfaceACL- Returns:
- true if the ACL was changed.
-
add
Description copied from interface:ACLAdd an ACE. -
getAdminEverythingACES
-
replace
Description copied from interface:ACLReplace theoldACEwithnewACE, only if theoldACEexists.The
newACEkeeps the same index asoldACE. -
removeByUsername
Description copied from interface:ACLRemove all ACEs forusername.- Specified by:
removeByUsernamein interfaceACL- Returns:
- true if the ACL was changed.
-
replacePermission
Description copied from interface:ACLReplaces a permission with another in this ACL.- Specified by:
replacePermissionin interfaceACL- Parameters:
oldPerm- the old permissionnewPerm- the new permission
-
clone
Description copied from interface:ACLReturns a recursive copy of the ACL sharing no mutable substructure with the original.
-