public class ACLImpl extends ArrayList<ACE> implements ACL
modCountINHERITED_ACL, LOCAL_ACL| Constructor and Description |
|---|
ACLImpl() |
ACLImpl(String name) |
ACLImpl(String name,
boolean isReadOnly) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ACE ace)
Add an ACE.
|
boolean |
blockInheritance(String username)
Block the inheritance.
|
Object |
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.
|
protected List<ACE> |
getAdminEverythingACES() |
String |
getName()
Gets the ACL name.
|
boolean |
isReadOnly() |
boolean |
removeByUsername(String username)
Remove all ACEs for
username. |
boolean |
replace(ACE oldACE,
ACE newACE)
Replace the
oldACE with newACE, only if the oldACE exists. |
void |
setACEs(ACE[] aces)
Sets the ACEs defined by this ACL.
|
boolean |
unblockInheritance()
Unblock the inheritance.
|
add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, 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, toArrayparallelStream, removeIf, streampublic ACLImpl()
public ACE[] getACEs()
ACLpublic void setACEs(ACE[] aces)
ACLpublic boolean isReadOnly()
public boolean blockInheritance(String username)
ACLblockInheritance in interface ACLusername - the user blocking the inheritancepublic boolean unblockInheritance()
ACLunblockInheritance in interface ACLprotected List<ACE> getAdminEverythingACES()
public boolean replace(ACE oldACE, ACE newACE)
ACLoldACE with newACE, only if the oldACE exists.
The newACE keeps the same index as oldACE.
public boolean removeByUsername(String username)
ACLusername.removeByUsername in interface ACLCopyright © 2019 Nuxeo. All rights reserved.