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) |
@NotNull java.security.Principal |
getPrincipal() |
@NotNull PrivilegeBits |
getPrivilegeBits() |
@Nullable javax.jcr.Value |
getRestriction(@NotNull java.lang.String restrictionName)
Return the value of the restriction with the specified name or
null if no such restriction exists. |
@NotNull java.lang.String[] |
getRestrictionNames()
Return the names of the restrictions present with this access control entry.
|
@NotNull java.util.Set<Restriction> |
getRestrictions() |
@Nullable javax.jcr.Value[] |
getRestrictions(@NotNull 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 javax.jcr.security.AccessControlException
javax.jcr.security.AccessControlException@NotNull public @NotNull PrivilegeBits getPrivilegeBits()
@NotNull public @NotNull java.util.Set<Restriction> getRestrictions()
@NotNull public @NotNull java.security.Principal getPrincipal()
getPrincipal in interface javax.jcr.security.AccessControlEntrypublic boolean isAllow()
isAllow in interface JackrabbitAccessControlEntryPrivileges for the principal;
false otherwise.@NotNull public @NotNull java.lang.String[] getRestrictionNames()
JackrabbitAccessControlEntrygetRestrictionNames in interface JackrabbitAccessControlEntry@Nullable
public @Nullable javax.jcr.Value getRestriction(@NotNull
@NotNull java.lang.String restrictionName)
throws javax.jcr.RepositoryException
JackrabbitAccessControlEntrynull if no such restriction exists. In case the restriction
with the specified name contains multiple value this method will call
ValueFormatException.getRestriction in interface JackrabbitAccessControlEntryrestrictionName - The of the restriction as obtained through
JackrabbitAccessControlEntry.getRestrictionNames().null if no such restriction exists.javax.jcr.ValueFormatException - If the restriction with the specified name
contains multiple values.javax.jcr.RepositoryException - if an error occurs.JackrabbitAccessControlEntry.getRestrictions(String)@Nullable
public @Nullable javax.jcr.Value[] getRestrictions(@NotNull
@NotNull java.lang.String restrictionName)
JackrabbitAccessControlEntrynull 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 JackrabbitAccessControlEntryrestrictionName - The of the restriction as obtained through
JackrabbitAccessControlEntry.getRestrictionNames().null if no such restriction exists. The array may contain
zero, one or multiple values.JackrabbitAccessControlEntry.getRestriction(String)public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2010 - 2025 Adobe. All Rights Reserved