Class RestrictionProviderImpl

    • Constructor Detail

      • RestrictionProviderImpl

        public RestrictionProviderImpl()
    • Method Detail

      • getPattern

        @NotNull
        public @NotNull RestrictionPattern getPattern​(@Nullable
                                                      @Nullable java.lang.String oakPath,
                                                      @NotNull
                                                      @NotNull Tree tree)
        Description copied from interface: RestrictionProvider
        Creates the RestrictionPattern for the restriction information stored with specified tree.
        Parameters:
        oakPath - The path of the access controlled tree or null if the target policies applies to the repository level.
        tree - The tree holding the restriction information.
        Returns:
        A new RestrictionPattern representing the restriction information present with the given tree.
      • getPattern

        @NotNull
        public @NotNull RestrictionPattern getPattern​(@Nullable
                                                      @Nullable java.lang.String oakPath,
                                                      @NotNull
                                                      @NotNull java.util.Set<Restriction> restrictions)
        Description copied from interface: RestrictionProvider
        Creates the RestrictionPattern for the specified restrictions. The implementation should ignore all restrictions present in the specified set that it doesn't support.
        Parameters:
        oakPath - The path of the access controlled tree or null if the target policies applies to the repository level.
        restrictions - the restrictions.
        Returns:
        A new RestrictionPattern representing those restrictions of the specified set that are supported by this implementation.