Interface PolicyOwner
- 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 TypeMethodDescriptionboolean
defines
(@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy) Determines if the implementingAccessManager
defines the specifiedaccessControlPolicy
at the givenabsPath
.
-
Method Details
-
defines
boolean defines(@Nullable @Nullable String absPath, @NotNull @NotNull AccessControlPolicy accessControlPolicy) Determines if the implementingAccessManager
defines the specifiedaccessControlPolicy
at the givenabsPath
. If this method returnstrue
it is expected that the given policy is valid to beset
orremoved
with the manager.- Parameters:
absPath
- An absolute path.accessControlPolicy
- The access control policy to be tested.- Returns:
true
If theAccessControlManager
implementing this interface can handle the specifiedaccessControlPolicy
at the givenpath
.
-