|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.authorization.UnmodifiableAccessControlList
public class UnmodifiableAccessControlList
An implementation of the AccessControlList interface that only
allows for reading. The write methods
(addAccessControlEntry
and removeAccessControlEntry)
throw an AccessControlException.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
equals(Object obj)
|
AccessControlEntry[] |
getAccessControlEntries()
|
String |
getPath()
|
String[] |
getRestrictionNames()
|
int |
getRestrictionType(String restrictionName)
|
int |
hashCode()
|
boolean |
isEmpty()
|
void |
orderBefore(AccessControlEntry srcEntry,
AccessControlEntry destEntry)
|
void |
removeAccessControlEntry(AccessControlEntry ace)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 UnmodifiableAccessControlList(List<? extends AccessControlEntry> accessControlEntries,
String path,
Map<String,Integer> restrictions)
UnmodifiableAccessControlList
accessControlEntries - path - restrictions - | Method Detail |
|---|
public AccessControlEntry[] getAccessControlEntries()
throws RepositoryException
getAccessControlEntries in interface AccessControlListRepositoryExceptionAccessControlList.getAccessControlEntries()
public boolean addAccessControlEntry(Principal principal,
Privilege[] privileges)
throws AccessControlException,
RepositoryException
addAccessControlEntry in interface AccessControlListAccessControlException
RepositoryExceptionAccessControlList.addAccessControlEntry(Principal, Privilege[])
public void removeAccessControlEntry(AccessControlEntry ace)
throws AccessControlException,
RepositoryException
removeAccessControlEntry in interface AccessControlListAccessControlException
RepositoryExceptionAccessControlList.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 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 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||