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 the
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 Summary
ConstructorsConstructorDescriptionACE(@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
Modifier and TypeMethodDescriptionboolean@NotNull Principal@NotNull PrivilegeBitsprotected abstract @NotNull PrivilegeBitsProvider@NotNull org.apache.jackrabbit.api.security.authorization.PrivilegeCollection@Nullable ValuegetRestriction(@NotNull String restrictionName) @NotNull String[]@NotNull Set<Restriction>@Nullable Value[]getRestrictions(@NotNull String restrictionName) inthashCode()booleanisAllow()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.jcr.security.AccessControlEntry
getPrivileges
-
Constructor Details
-
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 AccessControlException Creates 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 Details
-
getPrivilegeBits
-
getRestrictions
-
getPrivilegeBitsProvider
-
getPrincipal
- Specified by:
getPrincipalin interfaceAccessControlEntry
-
isAllow
public boolean isAllow()- Specified by:
isAllowin interfaceorg.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
-
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
- 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
-
hashCode
public int hashCode() -
equals
-