|
||||||||||
| 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(java.security.Principal principal,
Privilege[] privileges)
Construct an access control entry for the given principal and privileges. |
protected |
AccessControlEntryImpl(java.security.Principal principal,
Privilege[] privileges,
boolean isAllow,
java.util.Map restrictions)
Construct an access control entry for the given principal and privileges. |
| Method Summary | |
|---|---|
protected int |
buildHashCode()
Build the hash code. |
boolean |
equals(java.lang.Object obj)
Returns true if the principal and all privileges are equal / the same. |
java.security.Principal |
getPrincipal()
Returns the principal associated with this access control entry. |
int |
getPrivilegeBits()
|
Privilege[] |
getPrivileges()
Returns the privileges associated with this access control entry. |
javax.jcr.Value |
getRestriction(java.lang.String restrictionName)
Return the value of the restriction with the specified name or null if no such restriction exists. |
java.lang.String[] |
getRestrictionNames()
Return the names of the restrictions present with this access control entry. |
int |
hashCode()
|
boolean |
isAllow()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AccessControlEntryImpl(java.security.Principal principal,
Privilege[] privileges)
throws AccessControlException
principal - privileges -
AccessControlException
protected AccessControlEntryImpl(java.security.Principal principal,
Privilege[] privileges,
boolean isAllow,
java.util.Map restrictions)
throws AccessControlException
principal - privileges - isAllow - restrictions -
AccessControlException| Method Detail |
|---|
protected int buildHashCode()
public java.security.Principal getPrincipal()
AccessControlEntry
getPrincipal in interface AccessControlEntryPrincipal.AccessControlEntry.getPrincipal()public Privilege[] getPrivileges()
AccessControlEntry
getPrivileges in interface AccessControlEntryPrivileges.AccessControlEntry.getPrivileges()public boolean isAllow()
isAllow in interface JackrabbitAccessControlEntryPrivileges for the principal;
false otherwise.JackrabbitAccessControlEntry.isAllow()public int getPrivilegeBits()
getPrivilegeBits in interface JackrabbitAccessControlEntryJackrabbitAccessControlEntry.getPrivilegeBits()public java.lang.String[] getRestrictionNames()
JackrabbitAccessControlEntry
getRestrictionNames in interface JackrabbitAccessControlEntryJackrabbitAccessControlEntry.getRestrictionNames()public javax.jcr.Value getRestriction(java.lang.String restrictionName)
JackrabbitAccessControlEntrynull if no such restriction exists.
getRestriction in interface JackrabbitAccessControlEntrynull if no such restriction existsJackrabbitAccessControlEntry.getRestriction(String)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj -
Object.equals(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||