Interface PolicyOwner
-
- All Known Implementing Classes:
AccessControlManagerImpl
public interface PolicyOwnerInterface to improve pluggability of theAccessControlManager, namely the interaction of multiple managers within a single repository. It provides a single methoddefines(String, javax.jcr.security.AccessControlPolicy)that allows to determine the responsible manager uponsetPolicyandremovePolicy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandefines(@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy)Determines if the implementingAccessManagerdefines the specifiedaccessControlPolicyat the givenabsPath.
-
-
-
Method Detail
-
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.
-
-