Class AccessControlManagerDelegator
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.delegate.AccessControlManagerDelegator
-
- All Implemented Interfaces:
AccessControlManager
public class AccessControlManagerDelegator extends Object implements AccessControlManager
This implementation ofAccessControlManager
delegates back to a delegatee wrapping each call into aSessionOperation
closure.
-
-
Constructor Summary
Constructors Constructor Description AccessControlManagerDelegator(@NotNull SessionDelegate delegate, @NotNull AccessControlManager acManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlPolicyIterator
getApplicablePolicies(String absPath)
AccessControlPolicy[]
getEffectivePolicies(String absPath)
AccessControlPolicy[]
getPolicies(String absPath)
Privilege[]
getPrivileges(String absPath)
Privilege[]
getSupportedPrivileges(String absPath)
boolean
hasPrivileges(String absPath, Privilege[] privileges)
Privilege
privilegeFromName(String privilegeName)
void
removePolicy(String absPath, AccessControlPolicy policy)
void
setPolicy(String absPath, AccessControlPolicy policy)
-
-
-
Constructor Detail
-
AccessControlManagerDelegator
public AccessControlManagerDelegator(@NotNull @NotNull SessionDelegate delegate, @NotNull @NotNull AccessControlManager acManager)
-
-
Method Detail
-
getSupportedPrivileges
public Privilege[] getSupportedPrivileges(String absPath) throws RepositoryException
- Specified by:
getSupportedPrivileges
in interfaceAccessControlManager
- Throws:
RepositoryException
-
privilegeFromName
public Privilege privilegeFromName(String privilegeName) throws RepositoryException
- Specified by:
privilegeFromName
in interfaceAccessControlManager
- Throws:
RepositoryException
-
hasPrivileges
public boolean hasPrivileges(String absPath, Privilege[] privileges) throws RepositoryException
- Specified by:
hasPrivileges
in interfaceAccessControlManager
- Throws:
RepositoryException
-
getPrivileges
public Privilege[] getPrivileges(String absPath) throws RepositoryException
- Specified by:
getPrivileges
in interfaceAccessControlManager
- Throws:
RepositoryException
-
getPolicies
public AccessControlPolicy[] getPolicies(String absPath) throws RepositoryException
- Specified by:
getPolicies
in interfaceAccessControlManager
- Throws:
RepositoryException
-
getEffectivePolicies
public AccessControlPolicy[] getEffectivePolicies(String absPath) throws RepositoryException
- Specified by:
getEffectivePolicies
in interfaceAccessControlManager
- Throws:
RepositoryException
-
getApplicablePolicies
public AccessControlPolicyIterator getApplicablePolicies(String absPath) throws RepositoryException
- Specified by:
getApplicablePolicies
in interfaceAccessControlManager
- Throws:
RepositoryException
-
setPolicy
public void setPolicy(String absPath, AccessControlPolicy policy) throws RepositoryException
- Specified by:
setPolicy
in interfaceAccessControlManager
- Throws:
RepositoryException
-
removePolicy
public void removePolicy(String absPath, AccessControlPolicy policy) throws RepositoryException
- Specified by:
removePolicy
in interfaceAccessControlManager
- Throws:
RepositoryException
-
-