Class WhiteboardRestrictionProvider

  • All Implemented Interfaces:
    org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider

    public class WhiteboardRestrictionProvider
    extends org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker<org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider>
    implements org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider
    Dynamic RestrictionProvider based on the available whiteboard services.
    • Field Summary

      • Fields inherited from interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider

        EMPTY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction createRestriction​(@Nullable java.lang.String oakPath, @NotNull java.lang.String oakName, @NotNull Value value)  
      @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction createRestriction​(@Nullable java.lang.String oakPath, @NotNull java.lang.String oakName, @NotNull Value... values)  
      @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern getPattern​(@Nullable java.lang.String oakPath, @NotNull java.util.Set<org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction> restrictions)  
      @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern getPattern​(@Nullable java.lang.String oakPath, @NotNull org.apache.jackrabbit.oak.api.Tree tree)  
      @NotNull java.util.Set<org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinition> getSupportedRestrictions​(@Nullable java.lang.String oakPath)  
      @NotNull java.util.Set<org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction> readRestrictions​(@Nullable java.lang.String oakPath, @NotNull org.apache.jackrabbit.oak.api.Tree aceTree)  
      void validateRestrictions​(@Nullable java.lang.String oakPath, @NotNull org.apache.jackrabbit.oak.api.Tree aceTree)  
      void writeRestrictions​(@Nullable java.lang.String oakPath, @NotNull org.apache.jackrabbit.oak.api.Tree aceTree, @NotNull java.util.Set<org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction> restrictions)  
      • Methods inherited from class org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker

        getServices, start, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WhiteboardRestrictionProvider

        public WhiteboardRestrictionProvider()
    • Method Detail

      • getSupportedRestrictions

        @NotNull
        public @NotNull java.util.Set<org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinition> getSupportedRestrictions​(@Nullable
                                                                                                                                                       @Nullable java.lang.String oakPath)
        Specified by:
        getSupportedRestrictions in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider
      • createRestriction

        @NotNull
        public @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction createRestriction​(@Nullable
                                                                                                                       @Nullable java.lang.String oakPath,
                                                                                                                       @NotNull
                                                                                                                       @NotNull java.lang.String oakName,
                                                                                                                       @NotNull
                                                                                                                       @NotNull Value value)
                                                                                                                throws RepositoryException
        Specified by:
        createRestriction in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider
        Throws:
        RepositoryException
      • createRestriction

        @NotNull
        public @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction createRestriction​(@Nullable
                                                                                                                       @Nullable java.lang.String oakPath,
                                                                                                                       @NotNull
                                                                                                                       @NotNull java.lang.String oakName,
                                                                                                                       @NotNull
                                                                                                                       @NotNull Value... values)
                                                                                                                throws RepositoryException
        Specified by:
        createRestriction in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider
        Throws:
        RepositoryException
      • readRestrictions

        @NotNull
        public @NotNull java.util.Set<org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction> readRestrictions​(@Nullable
                                                                                                                                     @Nullable java.lang.String oakPath,
                                                                                                                                     @NotNull
                                                                                                                                     @NotNull org.apache.jackrabbit.oak.api.Tree aceTree)
        Specified by:
        readRestrictions in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider
      • writeRestrictions

        public void writeRestrictions​(@Nullable
                                      @Nullable java.lang.String oakPath,
                                      @NotNull
                                      @NotNull org.apache.jackrabbit.oak.api.Tree aceTree,
                                      @NotNull
                                      @NotNull java.util.Set<org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction> restrictions)
                               throws RepositoryException
        Specified by:
        writeRestrictions in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider
        Throws:
        RepositoryException
      • validateRestrictions

        public void validateRestrictions​(@Nullable
                                         @Nullable java.lang.String oakPath,
                                         @NotNull
                                         @NotNull org.apache.jackrabbit.oak.api.Tree aceTree)
                                  throws RepositoryException
        Specified by:
        validateRestrictions in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider
        Throws:
        RepositoryException
      • getPattern

        @NotNull
        public @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern getPattern​(@Nullable
                                                                                                                       @Nullable java.lang.String oakPath,
                                                                                                                       @NotNull
                                                                                                                       @NotNull org.apache.jackrabbit.oak.api.Tree tree)
        Specified by:
        getPattern in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider
      • getPattern

        @NotNull
        public @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern getPattern​(@Nullable
                                                                                                                       @Nullable java.lang.String oakPath,
                                                                                                                       @NotNull
                                                                                                                       @NotNull java.util.Set<org.apache.jackrabbit.oak.spi.security.authorization.restriction.Restriction> restrictions)
        Specified by:
        getPattern in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider