public class UnmodifiableAccessControlList extends Object implements org.apache.jackrabbit.api.security.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
UnmodifiableAccessControlListacl - 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)
UnmodifiableAccessControlListaccessControlEntries - A list of access control entries.public AccessControlEntry[] getAccessControlEntries() throws RepositoryException
getAccessControlEntries in interface AccessControlListRepositoryExceptionAccessControlList.getAccessControlEntries()public boolean addAccessControlEntry(Principal principal, Privilege[] privileges) throws AccessControlException, RepositoryException
addAccessControlEntry in interface AccessControlListAccessControlExceptionRepositoryExceptionAccessControlList.addAccessControlEntry(Principal, Privilege[])public void removeAccessControlEntry(AccessControlEntry ace) throws AccessControlException, RepositoryException
removeAccessControlEntry in interface AccessControlListAccessControlExceptionRepositoryExceptionAccessControlList.removeAccessControlEntry(AccessControlEntry)public String[] getRestrictionNames()
getRestrictionNames in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListJackrabbitAccessControlList.getRestrictionNames()public int getRestrictionType(String restrictionName)
getRestrictionType in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListJackrabbitAccessControlList.getRestrictionType(String)public boolean isMultiValueRestriction(String restrictionName) throws RepositoryException
isMultiValueRestriction in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListRepositoryExceptionpublic boolean isEmpty()
isEmpty in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListJackrabbitAccessControlList.isEmpty()public int size()
size in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListJackrabbitAccessControlList.size()public boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow) throws AccessControlException
addEntry in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListAccessControlExceptionJackrabbitAccessControlList.addEntry(Principal, Privilege[], boolean)public boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions) throws AccessControlException
addEntry in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListAccessControlExceptionJackrabbitAccessControlList.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 org.apache.jackrabbit.api.security.JackrabbitAccessControlListAccessControlExceptionRepositoryExceptionpublic void orderBefore(AccessControlEntry srcEntry, AccessControlEntry destEntry) throws AccessControlException
orderBefore in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListAccessControlExceptionJackrabbitAccessControlList.orderBefore(AccessControlEntry, AccessControlEntry)public String getPath()
getPath in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicyJackrabbitAccessControlPolicy.getPath()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(Object)Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.