Class ACE
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authorization.accesscontrol.ACE
-
- All Implemented Interfaces:
javax.jcr.security.AccessControlEntry,org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
public abstract class ACE extends Object implements org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
Default implementation of theJackrabbitAccessControlEntryinterface. 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 booleanequals(Object obj)@NotNull PrincipalgetPrincipal()@NotNull PrivilegeBitsgetPrivilegeBits()@Nullable javax.jcr.ValuegetRestriction(@NotNull String restrictionName)@NotNull String[]getRestrictionNames()@NotNull Set<Restriction>getRestrictions()@Nullable javax.jcr.Value[]getRestrictions(@NotNull String restrictionName)inthashCode()booleanisAllow()
-
-
-
Constructor Detail
-
ACE
public ACE(Principal principal, PrivilegeBits privilegeBits, boolean isAllow, Set<Restriction> restrictions, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws javax.jcr.security.AccessControlException
- Throws:
javax.jcr.security.AccessControlException
-
-
Method Detail
-
getPrivilegeBits
@NotNull public @NotNull PrivilegeBits getPrivilegeBits()
-
getRestrictions
@NotNull public @NotNull Set<Restriction> getRestrictions()
-
getPrincipal
@NotNull public @NotNull Principal getPrincipal()
- Specified by:
getPrincipalin interfacejavax.jcr.security.AccessControlEntry
-
isAllow
public boolean isAllow()
- Specified by:
isAllowin interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
getRestrictionNames
@NotNull public @NotNull String[] getRestrictionNames()
- Specified by:
getRestrictionNamesin interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
getRestriction
@Nullable public @Nullable javax.jcr.Value getRestriction(@NotNull @NotNull String restrictionName) throws javax.jcr.RepositoryException- Specified by:
getRestrictionin interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry- Throws:
javax.jcr.RepositoryException
-
getRestrictions
@Nullable public @Nullable javax.jcr.Value[] getRestrictions(@NotNull @NotNull String restrictionName)- Specified by:
getRestrictionsin interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
-