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
modCount
Fields inherited from interface org.nuxeo.ecm.core.api.security.ACL
INHERITED_ACL, LOCAL_ACL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add an ACE.boolean
blockInheritance
(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.boolean
boolean
removeByUsername
(String username) Remove all ACEs forusername
.boolean
Replace theoldACE
withnewACE
, only if theoldACE
exists.void
replacePermission
(String oldPerm, String newPerm) Replaces a permission with another in this ACL.void
Sets the ACEs defined by this ACL.boolean
Unblock 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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:ACL
Gets the ACL name. -
getACEs
Description copied from interface:ACL
Returns the ACEs defined by this list as an array. -
setACEs
Description copied from interface:ACL
Sets the ACEs defined by this ACL. -
isReadOnly
public boolean isReadOnly() -
blockInheritance
Description copied from interface:ACL
Block the inheritance.- Specified by:
blockInheritance
in interfaceACL
- Parameters:
username
- the user blocking the inheritance- Returns:
- true if the ACL was changed.
-
unblockInheritance
public boolean unblockInheritance()Description copied from interface:ACL
Unblock the inheritance.- Specified by:
unblockInheritance
in interfaceACL
- Returns:
- true if the ACL was changed.
-
add
Description copied from interface:ACL
Add an ACE. -
getAdminEverythingACES
-
replace
Description copied from interface:ACL
Replace theoldACE
withnewACE
, only if theoldACE
exists.The
newACE
keeps the same index asoldACE
. -
removeByUsername
Description copied from interface:ACL
Remove all ACEs forusername
.- Specified by:
removeByUsername
in interfaceACL
- Returns:
- true if the ACL was changed.
-
replacePermission
Description copied from interface:ACL
Replaces a permission with another in this ACL.- Specified by:
replacePermission
in interfaceACL
- Parameters:
oldPerm
- the old permissionnewPerm
- the new permission
-
clone
Description copied from interface:ACL
Returns a recursive copy of the ACL sharing no mutable substructure with the original.
-