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 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 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() |
getClass, notify, notifyAll, toString, wait, wait, wait
getPrivileges
public ACE(java.security.Principal principal, PrivilegeBits privilegeBits, boolean isAllow, java.util.Set<Restriction> restrictions, NamePathMapper namePathMapper) throws AccessControlException
AccessControlException
@NotNull public @NotNull PrivilegeBits getPrivilegeBits()
@NotNull public @NotNull java.util.Set<Restriction> getRestrictions()
@NotNull public @NotNull java.security.Principal getPrincipal()
getPrincipal
in interface AccessControlEntry
public boolean isAllow()
isAllow
in interface JackrabbitAccessControlEntry
Privilege
s for the principal;
false otherwise.@NotNull public @NotNull java.lang.String[] getRestrictionNames()
JackrabbitAccessControlEntry
getRestrictionNames
in interface JackrabbitAccessControlEntry
@Nullable public @Nullable Value getRestriction(@NotNull @NotNull 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.ValueFormatException
- If the restriction with the specified name
contains multiple values.RepositoryException
- if an error occurs.JackrabbitAccessControlEntry.getRestrictions(String)
@Nullable public @Nullable Value[] getRestrictions(@NotNull @NotNull java.lang.String restrictionName)
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.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 - 2023 Adobe. All Rights Reserved