|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.authorization.AccessControlEntryImpl
public abstract class AccessControlEntryImpl
Simple, immutable implementation of the
AccessControlEntry
and the JackrabbitAccessControlEntry interfaces.
| Constructor Summary | |
|---|---|
protected |
AccessControlEntryImpl(AccessControlEntryImpl base,
Privilege[] privileges,
boolean isAllow)
|
protected |
AccessControlEntryImpl(AccessControlEntryImpl base,
PrivilegeBits privilegeBits,
boolean isAllow)
|
protected |
AccessControlEntryImpl(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions)
Construct an access control entry for the given principal and privileges. |
protected |
AccessControlEntryImpl(Principal principal,
PrivilegeBits privilegesBits,
boolean isAllow,
Map<String,Value> restrictions)
Construct an access control entry for the given principal and privileges. |
| Method Summary | |
|---|---|
protected int |
buildHashCode()
Build the hash code. |
boolean |
equals(Object obj)
|
Principal |
getPrincipal()
|
PrivilegeBits |
getPrivilegeBits()
|
protected abstract PrivilegeManagerImpl |
getPrivilegeManager()
|
Privilege[] |
getPrivileges()
|
protected abstract org.apache.jackrabbit.spi.commons.conversion.NameResolver |
getResolver()
|
Value |
getRestriction(org.apache.jackrabbit.spi.Name restrictionName)
|
Value |
getRestriction(String restrictionName)
|
String[] |
getRestrictionNames()
|
Map<org.apache.jackrabbit.spi.Name,Value> |
getRestrictions()
Returns the restrictions defined for this entry. |
protected abstract ValueFactory |
getValueFactory()
|
int |
hashCode()
|
boolean |
hasRestrictions()
Returns true if this ACE defines any restriction. |
boolean |
isAllow()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AccessControlEntryImpl(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions)
throws AccessControlException,
RepositoryException
principal - Principal for this access control entry.privileges - Privileges for this access control entry.isAllow - true if this ACE grants the specified
privileges to the specified principal; false otherwise.restrictions - A map of restriction name (String) to restriction
(Value). See JackrabbitAccessControlList.getRestrictionNames()
and JackrabbitAccessControlList.getRestrictionType(String).
AccessControlException - if either principal or privileges are invalid.
RepositoryException - if another error occurs.
protected AccessControlEntryImpl(Principal principal,
PrivilegeBits privilegesBits,
boolean isAllow,
Map<String,Value> restrictions)
throws RepositoryException
principal - Principal for this access control entry.privilegesBits - Privileges for this access control entry.isAllow - true if this ACE grants the specified
privileges to the specified principal; false otherwise.restrictions - A map of restriction name (String) to restriction
(Value). See JackrabbitAccessControlList.getRestrictionNames()
and JackrabbitAccessControlList.getRestrictionType(String).
RepositoryException - if another error occurs.
protected AccessControlEntryImpl(AccessControlEntryImpl base,
PrivilegeBits privilegeBits,
boolean isAllow)
throws AccessControlException,
RepositoryException
base - privilegeBits - isAllow -
AccessControlException
RepositoryException
protected AccessControlEntryImpl(AccessControlEntryImpl base,
Privilege[] privileges,
boolean isAllow)
throws AccessControlException,
RepositoryException
base - privileges - isAllow -
AccessControlException
RepositoryException| Method Detail |
|---|
public PrivilegeBits getPrivilegeBits()
public boolean hasRestrictions()
true if this ACE defines any restriction.
true if this ACE defines any restriction;
false otherwise.public Map<org.apache.jackrabbit.spi.Name,Value> getRestrictions()
public Value getRestriction(org.apache.jackrabbit.spi.Name restrictionName)
restrictionName -
null.protected abstract org.apache.jackrabbit.spi.commons.conversion.NameResolver getResolver()
protected abstract ValueFactory getValueFactory()
protected abstract PrivilegeManagerImpl getPrivilegeManager()
protected int buildHashCode()
public Principal getPrincipal()
getPrincipal in interface AccessControlEntryAccessControlEntry.getPrincipal()public Privilege[] getPrivileges()
getPrivileges in interface AccessControlEntryAccessControlEntry.getPrivileges()public boolean isAllow()
isAllow in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntryJackrabbitAccessControlEntry.isAllow()
public String[] getRestrictionNames()
throws NamespaceException
getRestrictionNames in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntryNamespaceExceptionJackrabbitAccessControlEntry.getRestrictionNames()
public Value getRestriction(String restrictionName)
throws RepositoryException
getRestriction in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntryRepositoryExceptionJackrabbitAccessControlEntry.getRestriction(String)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 | |||||||||