Interface PolicyOwner


  • public interface PolicyOwner
    Interface to improve pluggability of the AccessControlManager, namely the interaction of multiple managers within a single repository. It provides a single method defines(String, javax.jcr.security.AccessControlPolicy) that allows to determine the responsible manager upon setPolicy and removePolicy.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean defines​(@Nullable String absPath, @NotNull javax.jcr.security.AccessControlPolicy accessControlPolicy)
      Determines if the implementing AccessManager defines the specified accessControlPolicy at the given absPath.
    • Method Detail

      • defines

        boolean defines​(@Nullable
                        @Nullable String absPath,
                        @NotNull
                        @NotNull javax.jcr.security.AccessControlPolicy accessControlPolicy)
        Determines if the implementing AccessManager defines the specified accessControlPolicy at the given absPath. If this method returns true it is expected that the given policy is valid to be set or removed with the manager.
        Parameters:
        absPath - An absolute path.
        accessControlPolicy - The access control policy to be tested.
        Returns:
        true If the AccessControlManager implementing this interface can handle the specified accessControlPolicy at the given path.