public class UnmodifiableAccessControlList extends Object implements JackrabbitAccessControlList
AccessControlList
interface that only
allows for reading. The write methods
(addAccessControlEntry
and removeAccessControlEntry
)
throw an AccessControlException
.Constructor and Description |
---|
UnmodifiableAccessControlList(AccessControlList acl)
Construct a new
UnmodifiableAccessControlList |
UnmodifiableAccessControlList(List<? extends AccessControlEntry> accessControlEntries)
Construct a new
UnmodifiableAccessControlList |
UnmodifiableAccessControlList(List<? extends AccessControlEntry> accessControlEntries,
String path,
Map<String,Integer> restrictions)
Construct a new
UnmodifiableAccessControlList |
Modifier and Type | Method and Description |
---|---|
boolean |
addAccessControlEntry(Principal principal,
Privilege[] privileges) |
boolean |
addEntry(Principal principal,
Privilege[] privileges,
boolean isAllow) |
boolean |
addEntry(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions) |
boolean |
addEntry(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions,
Map<String,Value[]> mvRestrictions) |
boolean |
equals(Object obj) |
AccessControlEntry[] |
getAccessControlEntries() |
String |
getPath() |
String[] |
getRestrictionNames() |
int |
getRestrictionType(String restrictionName) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isMultiValueRestriction(String restrictionName) |
void |
orderBefore(AccessControlEntry srcEntry,
AccessControlEntry destEntry) |
void |
removeAccessControlEntry(AccessControlEntry ace) |
int |
size() |
public UnmodifiableAccessControlList(AccessControlList acl) throws RepositoryException
UnmodifiableAccessControlList
acl
- The AccessControlList to be wrapped in order to prevent
it's modification.RepositoryException
- The the entries cannot be retrieved from the
specified AccessControlList
.public UnmodifiableAccessControlList(List<? extends AccessControlEntry> accessControlEntries)
UnmodifiableAccessControlList
accessControlEntries
- A list of access control entries
.public AccessControlEntry[] getAccessControlEntries() throws RepositoryException
getAccessControlEntries
in interface AccessControlList
RepositoryException
AccessControlList.getAccessControlEntries()
public boolean addAccessControlEntry(Principal principal, Privilege[] privileges) throws AccessControlException, RepositoryException
addAccessControlEntry
in interface AccessControlList
AccessControlException
RepositoryException
AccessControlList.addAccessControlEntry(Principal, Privilege[])
public void removeAccessControlEntry(AccessControlEntry ace) throws AccessControlException, RepositoryException
removeAccessControlEntry
in interface AccessControlList
AccessControlException
RepositoryException
AccessControlList.removeAccessControlEntry(AccessControlEntry)
public String[] getRestrictionNames()
getRestrictionNames
in interface JackrabbitAccessControlList
JackrabbitAccessControlList.getRestrictionNames()
public int getRestrictionType(String restrictionName)
getRestrictionType
in interface JackrabbitAccessControlList
JackrabbitAccessControlList.getRestrictionType(String)
public boolean isMultiValueRestriction(String restrictionName) throws RepositoryException
isMultiValueRestriction
in interface JackrabbitAccessControlList
RepositoryException
public boolean isEmpty()
isEmpty
in interface JackrabbitAccessControlList
JackrabbitAccessControlList.isEmpty()
public int size()
size
in interface JackrabbitAccessControlList
JackrabbitAccessControlList.size()
public boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow) throws AccessControlException
addEntry
in interface JackrabbitAccessControlList
AccessControlException
JackrabbitAccessControlList.addEntry(Principal, Privilege[], boolean)
public boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions) throws AccessControlException
addEntry
in interface JackrabbitAccessControlList
AccessControlException
JackrabbitAccessControlList.addEntry(Principal, Privilege[], boolean, Map)
public boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions, Map<String,Value[]> mvRestrictions) throws AccessControlException, RepositoryException
addEntry
in interface JackrabbitAccessControlList
AccessControlException
RepositoryException
public void orderBefore(AccessControlEntry srcEntry, AccessControlEntry destEntry) throws AccessControlException
orderBefore
in interface JackrabbitAccessControlList
AccessControlException
JackrabbitAccessControlList.orderBefore(AccessControlEntry, AccessControlEntry)
public String getPath()
getPath
in interface JackrabbitAccessControlPolicy
JackrabbitAccessControlPolicy.getPath()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.