java.lang.Object
org.apache.jackrabbit.oak.spi.security.authorization.accesscontrol.AbstractAccessControlList
All Implemented Interfaces:
AccessControlList, AccessControlPolicy, org.apache.jackrabbit.api.security.JackrabbitAccessControlList, org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy
Direct Known Subclasses:
ImmutableACL

public abstract class AbstractAccessControlList extends Object implements org.apache.jackrabbit.api.security.JackrabbitAccessControlList
Abstract base implementation of the JackrabbitAccessControlList interface.
  • Constructor Details

    • AbstractAccessControlList

      public AbstractAccessControlList(@Nullable @Nullable String oakPath, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
  • Method Details

    • getOakPath

      @Nullable public @Nullable String getOakPath()
    • getNamePathMapper

      @NotNull public @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper getNamePathMapper()
    • getEntries

      @NotNull public abstract @NotNull List<? extends org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry> getEntries()
    • getRestrictionProvider

      @NotNull public abstract @NotNull RestrictionProvider getRestrictionProvider()
    • getPath

      @Nullable public @Nullable String getPath()
      Specified by:
      getPath in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy
    • getAccessControlEntries

      public AccessControlEntry[] getAccessControlEntries()
      Specified by:
      getAccessControlEntries in interface AccessControlList
    • addAccessControlEntry

      public boolean addAccessControlEntry(Principal principal, Privilege[] privileges) throws RepositoryException
      Specified by:
      addAccessControlEntry in interface AccessControlList
      Throws:
      RepositoryException
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
    • size

      public int size()
      Specified by:
      size in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
    • getRestrictionNames

      @NotNull public @NotNull String[] getRestrictionNames()
      Specified by:
      getRestrictionNames in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
    • getRestrictionType

      public int getRestrictionType(@NotNull @NotNull String restrictionName)
      Specified by:
      getRestrictionType in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
    • isMultiValueRestriction

      public boolean isMultiValueRestriction(@NotNull @NotNull String restrictionName)
      Specified by:
      isMultiValueRestriction in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
    • addEntry

      public boolean addEntry(@NotNull @NotNull Principal principal, @NotNull @NotNull Privilege[] privileges, boolean isAllow) throws RepositoryException
      Specified by:
      addEntry in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
      Throws:
      RepositoryException
    • addEntry

      public boolean addEntry(@NotNull @NotNull Principal principal, @NotNull @NotNull Privilege[] privileges, boolean isAllow, @Nullable @Nullable Map<String,Value> restrictions) throws RepositoryException
      Specified by:
      addEntry in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
      Throws:
      RepositoryException