Class ACE
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authorization.accesscontrol.ACE
-
- All Implemented Interfaces:
AccessControlEntry
,org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
public abstract class ACE extends Object implements org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
Default implementation of theJackrabbitAccessControlEntry
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 Summary
Constructors Constructor Description ACE(Principal principal, PrivilegeBits privilegeBits, boolean isAllow, Set<Restriction> restrictions, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
@NotNull Principal
getPrincipal()
@NotNull PrivilegeBits
getPrivilegeBits()
@Nullable Value
getRestriction(@NotNull String restrictionName)
@NotNull String[]
getRestrictionNames()
@NotNull Set<Restriction>
getRestrictions()
@Nullable Value[]
getRestrictions(@NotNull String restrictionName)
int
hashCode()
boolean
isAllow()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.security.AccessControlEntry
getPrivileges
-
-
-
-
Constructor Detail
-
ACE
public ACE(Principal principal, PrivilegeBits privilegeBits, boolean isAllow, Set<Restriction> restrictions, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws AccessControlException
- Throws:
AccessControlException
-
-
Method Detail
-
getPrivilegeBits
@NotNull public @NotNull PrivilegeBits getPrivilegeBits()
-
getRestrictions
@NotNull public @NotNull Set<Restriction> getRestrictions()
-
getPrincipal
@NotNull public @NotNull Principal getPrincipal()
- Specified by:
getPrincipal
in interfaceAccessControlEntry
-
isAllow
public boolean isAllow()
- Specified by:
isAllow
in interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
getRestrictionNames
@NotNull public @NotNull String[] getRestrictionNames()
- Specified by:
getRestrictionNames
in interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
getRestriction
@Nullable public @Nullable Value getRestriction(@NotNull @NotNull String restrictionName) throws RepositoryException
- Specified by:
getRestriction
in interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
- Throws:
RepositoryException
-
getRestrictions
@Nullable public @Nullable Value[] getRestrictions(@NotNull @NotNull String restrictionName)
- Specified by:
getRestrictions
in interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
-