Class ACE

  • All Implemented Interfaces:
    javax.jcr.security.AccessControlEntry, org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry

    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 Detail

      • ACE

        public ACE​(Principal principal,
                   PrivilegeBits privilegeBits,
                   boolean isAllow,
                   Set<Restriction> restrictions,
                   org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
            throws javax.jcr.security.AccessControlException
        Throws:
        javax.jcr.security.AccessControlException
    • Method Detail

      • getPrivilegeBits

        @NotNull
        public @NotNull PrivilegeBits getPrivilegeBits()
      • getRestrictions

        @NotNull
        public @NotNull Set<Restriction> getRestrictions()
      • getPrincipal

        @NotNull
        public @NotNull Principal getPrincipal()
        Specified by:
        getPrincipal in interface javax.jcr.security.AccessControlEntry
      • isAllow

        public boolean isAllow()
        Specified by:
        isAllow in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
      • getRestrictionNames

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

        @Nullable
        public @Nullable javax.jcr.Value getRestriction​(@NotNull
                                                        @NotNull String restrictionName)
                                                 throws javax.jcr.RepositoryException
        Specified by:
        getRestriction in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
        Throws:
        javax.jcr.RepositoryException
      • getRestrictions

        @Nullable
        public @Nullable javax.jcr.Value[] getRestrictions​(@NotNull
                                                           @NotNull String restrictionName)
        Specified by:
        getRestrictions in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object