Class ACE
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authorization.accesscontrol.ACE
-
- All Implemented Interfaces:
AccessControlEntry,org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
@ProviderType 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(@Nullable Principal principal, @Nullable PrivilegeBits privilegeBits, boolean isAllow, @Nullable Set<Restriction> restrictions, @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)Creates a new access control entry.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)@NotNull PrincipalgetPrincipal()@NotNull PrivilegeBitsgetPrivilegeBits()protected abstract @NotNull PrivilegeBitsProvidergetPrivilegeBitsProvider()@NotNull org.apache.jackrabbit.api.security.authorization.PrivilegeCollectiongetPrivilegeCollection()@Nullable ValuegetRestriction(@NotNull String restrictionName)@NotNull String[]getRestrictionNames()@NotNull Set<Restriction>getRestrictions()@Nullable Value[]getRestrictions(@NotNull String restrictionName)inthashCode()booleanisAllow()-
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(@Nullable @Nullable Principal principal, @Nullable @Nullable PrivilegeBits privilegeBits, boolean isAllow, @Nullable @Nullable Set<Restriction> restrictions, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws AccessControlExceptionCreates a new access control entry.- Parameters:
principal- The principal associated with this entry.privilegeBits- The privilege bits defined for this entry.isAllow-trueif the entry is granting privileges.restrictions- A optional set of restrictions.namePathMapper- The name-path mapper- Throws:
AccessControlException- If the givenprincipalorprivilegeBitsarenullor ifprivilegeBitsareempty.
-
-
Method Detail
-
getPrivilegeBits
@NotNull public @NotNull PrivilegeBits getPrivilegeBits()
-
getRestrictions
@NotNull public @NotNull Set<Restriction> getRestrictions()
-
getPrivilegeBitsProvider
@NotNull protected abstract @NotNull PrivilegeBitsProvider getPrivilegeBitsProvider()
-
getPrincipal
@NotNull public @NotNull Principal getPrincipal()
- Specified by:
getPrincipalin interfaceAccessControlEntry
-
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 Value getRestriction(@NotNull @NotNull String restrictionName) throws RepositoryException
- Specified by:
getRestrictionin interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry- Throws:
RepositoryException
-
getRestrictions
@Nullable public @Nullable Value[] getRestrictions(@NotNull @NotNull String restrictionName)
- Specified by:
getRestrictionsin interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
getPrivilegeCollection
@NotNull public @NotNull org.apache.jackrabbit.api.security.authorization.PrivilegeCollection getPrivilegeCollection()
- Specified by:
getPrivilegeCollectionin interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
-