Interface PolicyOwner
-
- All Known Implementing Classes:
AccessControlManagerImpl
public interface PolicyOwner
Interface 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 uponsetPolicy
andremovePolicy
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
defines(@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy)
Determines if the implementingAccessManager
defines the specifiedaccessControlPolicy
at the givenabsPath
.
-
-
-
Method Detail
-
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
.
-
-