public abstract class ACE extends java.lang.Object implements JackrabbitAccessControlEntry
JackrabbitAccessControlEntry
interface.
It asserts that the basic contract is fulfilled but does perform any additional
validation on the principal, the privileges or the specified restrictions.Constructor and Description |
---|
ACE(java.security.Principal principal,
PrivilegeBits privilegeBits,
boolean isAllow,
java.util.Set<Restriction> restrictions,
NamePathMapper namePathMapper) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.security.Principal |
getPrincipal() |
PrivilegeBits |
getPrivilegeBits() |
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.
|
java.util.Set<Restriction> |
getRestrictions() |
Value[] |
getRestrictions(java.lang.String restrictionName)
Return the values of the restriction with the specified name or
null if no such restriction exists. |
int |
hashCode() |
boolean |
isAllow() |
public ACE(java.security.Principal principal, PrivilegeBits privilegeBits, boolean isAllow, java.util.Set<Restriction> restrictions, NamePathMapper namePathMapper) throws AccessControlException
AccessControlException
public PrivilegeBits getPrivilegeBits()
public java.util.Set<Restriction> getRestrictions()
public java.security.Principal getPrincipal()
public boolean isAllow()
isAllow
in interface JackrabbitAccessControlEntry
Privilege
s for the principal;
false otherwise.public java.lang.String[] getRestrictionNames() throws RepositoryException
JackrabbitAccessControlEntry
getRestrictionNames
in interface JackrabbitAccessControlEntry
RepositoryException
- if an error occurs.public Value getRestriction(java.lang.String restrictionName) throws RepositoryException
JackrabbitAccessControlEntry
null
if no such restriction exists. In case the restriction
with the specified name contains multiple value this method will call
ValueFormatException
.getRestriction
in interface JackrabbitAccessControlEntry
restrictionName
- The of the restriction as obtained through
JackrabbitAccessControlEntry.getRestrictionNames()
.null
if no such restriction exists.RepositoryException
- if an error occurs.JackrabbitAccessControlEntry.getRestrictions(String)
public Value[] getRestrictions(java.lang.String restrictionName) throws RepositoryException
JackrabbitAccessControlEntry
null
if no such restriction exists. For restrictions that
contain just a single value this method is expected to return an array
with a single element even if the underlying implementation stored the
restriction in single-value JCR property.getRestrictions
in interface JackrabbitAccessControlEntry
restrictionName
- The of the restriction as obtained through
JackrabbitAccessControlEntry.getRestrictionNames()
.null
if no such restriction exists. The array may contain
zero, one or multiple values.RepositoryException
- if an error occurs.JackrabbitAccessControlEntry.getRestriction(String)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"