public class ACLImpl extends ArrayList<ACE> implements ACL
modCount
INHERITED_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, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
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
parallelStream, removeIf, stream
public ACLImpl()
public ACE[] getACEs()
ACL
public void setACEs(ACE[] aces)
ACL
public boolean isReadOnly()
public boolean blockInheritance(String username)
ACL
blockInheritance
in interface ACL
username
- the user blocking the inheritancepublic boolean unblockInheritance()
ACL
unblockInheritance
in interface ACL
protected List<ACE> getAdminEverythingACES()
public boolean replace(ACE oldACE, ACE newACE)
ACL
oldACE
with newACE
, only if the oldACE
exists.
The newACE
keeps the same index as oldACE
.
public boolean removeByUsername(String username)
ACL
username
.removeByUsername
in interface ACL
Copyright © 2016 Nuxeo SA. All rights reserved.