public abstract class AccessControlEntryImpl extends Object implements org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
AccessControlEntry
and the JackrabbitAccessControlEntry interfaces.| Modifier | Constructor and Description |
|---|---|
protected |
AccessControlEntryImpl(AccessControlEntryImpl base,
javax.jcr.security.Privilege[] privileges,
boolean isAllow) |
protected |
AccessControlEntryImpl(AccessControlEntryImpl base,
PrivilegeBits privilegeBits,
boolean isAllow) |
protected |
AccessControlEntryImpl(Principal principal,
javax.jcr.security.Privilege[] privileges,
boolean isAllow,
Map<String,javax.jcr.Value> restrictions)
Construct an access control entry for the given principal and privileges.
|
protected |
AccessControlEntryImpl(Principal principal,
PrivilegeBits privilegesBits,
boolean isAllow,
Map<String,javax.jcr.Value> restrictions)
Construct an access control entry for the given principal and privileges.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
buildHashCode()
Build the hash code.
|
boolean |
equals(Object obj) |
Principal |
getPrincipal() |
PrivilegeBits |
getPrivilegeBits() |
protected abstract PrivilegeManagerImpl |
getPrivilegeManager() |
javax.jcr.security.Privilege[] |
getPrivileges() |
protected abstract org.apache.jackrabbit.spi.commons.conversion.NameResolver |
getResolver() |
javax.jcr.Value |
getRestriction(org.apache.jackrabbit.spi.Name restrictionName) |
javax.jcr.Value |
getRestriction(String restrictionName) |
String[] |
getRestrictionNames() |
Map<org.apache.jackrabbit.spi.Name,javax.jcr.Value> |
getRestrictions()
Returns the restrictions defined for this entry.
|
javax.jcr.Value[] |
getRestrictions(String restrictionName) |
protected abstract javax.jcr.ValueFactory |
getValueFactory() |
int |
hashCode() |
boolean |
hasRestrictions()
Returns
true if this ACE defines any restriction. |
boolean |
isAllow() |
protected AccessControlEntryImpl(Principal principal, javax.jcr.security.Privilege[] privileges, boolean isAllow, Map<String,javax.jcr.Value> restrictions) throws javax.jcr.security.AccessControlException, javax.jcr.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).javax.jcr.security.AccessControlException - if either principal or privileges are invalid.javax.jcr.RepositoryException - if another error occurs.protected AccessControlEntryImpl(Principal principal, PrivilegeBits privilegesBits, boolean isAllow, Map<String,javax.jcr.Value> restrictions) throws javax.jcr.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).javax.jcr.RepositoryException - if another error occurs.protected AccessControlEntryImpl(AccessControlEntryImpl base, PrivilegeBits privilegeBits, boolean isAllow) throws javax.jcr.security.AccessControlException, javax.jcr.RepositoryException
base - privilegeBits - isAllow - javax.jcr.security.AccessControlExceptionjavax.jcr.RepositoryExceptionprotected AccessControlEntryImpl(AccessControlEntryImpl base, javax.jcr.security.Privilege[] privileges, boolean isAllow) throws javax.jcr.security.AccessControlException, javax.jcr.RepositoryException
base - privileges - isAllow - javax.jcr.security.AccessControlExceptionjavax.jcr.RepositoryExceptionpublic 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,javax.jcr.Value> getRestrictions()
public javax.jcr.Value getRestriction(org.apache.jackrabbit.spi.Name restrictionName)
restrictionName - null.protected abstract org.apache.jackrabbit.spi.commons.conversion.NameResolver getResolver()
protected abstract javax.jcr.ValueFactory getValueFactory()
protected abstract PrivilegeManagerImpl getPrivilegeManager()
protected int buildHashCode()
public Principal getPrincipal()
getPrincipal in interface javax.jcr.security.AccessControlEntryAccessControlEntry.getPrincipal()public javax.jcr.security.Privilege[] getPrivileges()
getPrivileges in interface javax.jcr.security.AccessControlEntryAccessControlEntry.getPrivileges()public boolean isAllow()
isAllow in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntryJackrabbitAccessControlEntry.isAllow()public String[] getRestrictionNames() throws javax.jcr.NamespaceException
getRestrictionNames in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntryjavax.jcr.NamespaceExceptionJackrabbitAccessControlEntry.getRestrictionNames()public javax.jcr.Value getRestriction(String restrictionName) throws javax.jcr.RepositoryException
getRestriction in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntryjavax.jcr.RepositoryExceptionJackrabbitAccessControlEntry.getRestriction(String)public javax.jcr.Value[] getRestrictions(String restrictionName) throws javax.jcr.RepositoryException
getRestrictions in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntryjavax.jcr.RepositoryExceptionJackrabbitAccessControlEntry.getRestrictions(String)public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(Object)Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.