|
||||||||||
| 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(Principal principal,
Privilege[] privileges)
Construct an access control entry for the given principal and privileges. |
protected |
AccessControlEntryImpl(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions,
ValueFactory valueFactory)
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()
|
int |
getPrivilegeBits()
|
Privilege[] |
getPrivileges()
|
Value |
getRestriction(String restrictionName)
|
String[] |
getRestrictionNames()
|
int |
hashCode()
|
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)
throws AccessControlException
principal - Principal for this access control entry.privileges - Privileges for this access control entry.
AccessControlException - if either principal or privileges are invalid.
protected AccessControlEntryImpl(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions,
ValueFactory valueFactory)
throws AccessControlException
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).valueFactory - the value factory.
AccessControlException - if either principal or privileges are invalid.| Method Detail |
|---|
public int getPrivilegeBits()
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 JackrabbitAccessControlEntryJackrabbitAccessControlEntry.isAllow()public String[] getRestrictionNames()
getRestrictionNames in interface JackrabbitAccessControlEntryJackrabbitAccessControlEntry.getRestrictionNames()public Value getRestriction(String restrictionName)
getRestriction in interface JackrabbitAccessControlEntryJackrabbitAccessControlEntry.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 | |||||||||