All Known Implementing Classes:
AccessControlManagerImpl

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

    Modifier and Type
    Method
    Description
    boolean
    defines(@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy)
    Determines if the implementing AccessManager defines the specified accessControlPolicy at the given absPath.
  • Method Details

    • defines

      boolean defines(@Nullable @Nullable String absPath, @NotNull @NotNull 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.