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 TypeMethodDescriptionbooleandefines(@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy) Determines if the implementingAccessManagerdefines the specifiedaccessControlPolicyat the givenabsPath.
-
Method Details
-
defines
boolean defines(@Nullable @Nullable String absPath, @NotNull @NotNull AccessControlPolicy accessControlPolicy) Determines if the implementingAccessManagerdefines the specifiedaccessControlPolicyat the givenabsPath. If this method returnstrueit is expected that the given policy is valid to besetorremovedwith the manager.- Parameters:
absPath- An absolute path.accessControlPolicy- The access control policy to be tested.- Returns:
trueIf theAccessControlManagerimplementing this interface can handle the specifiedaccessControlPolicyat the givenpath.
-