Interface FilterProvider

  • All Known Implementing Classes:
    FilterProviderImpl

    @ProviderType
    public interface FilterProvider
    Interface that allows to define the principals for which principal based access control management and permission evaluation can be executed. For any other principals this module would never take effect.
    • Method Detail

      • handlesPath

        boolean handlesPath​(@NotNull
                            @NotNull String oakPath)
        Reveals if the given implementation is able to handle access control at the tree defined by the given oakPath.
        Parameters:
        oakPath - The absolute oak path to be tested.
        Returns:
        true if the given path is supported by this implememntation, false otherwise.
      • getFilterRoot

        @NotNull
        @NotNull String getFilterRoot()
        Returns the root path handled by the filer. In case multiple paths are supported this method returns the common ancestor path.
        Returns:
        An absolute oak path.
      • getFilter

        @NotNull
        @NotNull Filter getFilter​(@NotNull
                                  @NotNull SecurityProvider securityProvider,
                                  @NotNull
                                  @NotNull Root root,
                                  @NotNull
                                  @NotNull NamePathMapper namePathMapper)
        Returns a Filter for the given parameters.
        Parameters:
        securityProvider - The security provider.
        root - The reading/editing root.
        namePathMapper - The name path mapper.
        Returns:
        A new filter associated with the given parameters.