Class ImmutableACL

  • All Implemented Interfaces:
    AccessControlList, AccessControlPolicy, org.apache.jackrabbit.api.security.JackrabbitAccessControlList, org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy

    public class ImmutableACL
    extends AbstractAccessControlList
    An implementation of the JackrabbitAccessControlList interface that only allows for reading. The write methods throw an AccessControlException.
    • Constructor Detail

      • ImmutableACL

        public ImmutableACL​(@Nullable
                            @Nullable java.lang.String oakPath,
                            @NotNull
                            @NotNull java.util.List<? extends org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry> entries,
                            @NotNull
                            @NotNull RestrictionProvider restrictionProvider,
                            @NotNull
                            @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
        Construct a new ImmutableACL
        Parameters:
        oakPath - The Oak path of this policy or null.
        entries - The access control entries contained in this policy.
        restrictionProvider - The restriction provider.
        namePathMapper - The NamePathMapper used for conversion.
      • ImmutableACL

        public ImmutableACL​(@NotNull
                            @NotNull AbstractAccessControlList accessControlList)
        Construct a new ImmutableACL from the given AbstractAccessControlList.
        Parameters:
        accessControlList - The base list