Class 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 java.lang.Object
    implements org.apache.jackrabbit.api.security.JackrabbitAccessControlList
    Abstract base implementation of the JackrabbitAccessControlList interface.
    • Constructor Detail

      • AbstractAccessControlList

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

      • getOakPath

        @Nullable
        public @Nullable java.lang.String getOakPath()
      • getNamePathMapper

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

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

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

        @Nullable
        public @Nullable java.lang.String getPath()
        Specified by:
        getPath in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy
      • 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 java.lang.String[] getRestrictionNames()
        Specified by:
        getRestrictionNames in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
      • getRestrictionType

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

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

        public boolean addEntry​(@NotNull
                                @NotNull java.security.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 java.security.Principal principal,
                                @NotNull
                                @NotNull Privilege[] privileges,
                                boolean isAllow,
                                @Nullable
                                @Nullable java.util.Map<java.lang.String,​Value> restrictions)
                         throws RepositoryException
        Specified by:
        addEntry in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlList
        Throws:
        RepositoryException