public class ClientAccessControlManager extends ClientObject implements AccessControlManager
RemoteAccessControlManager
interface. This class makes a remote
AccessControlManager locally available using the JCR
AccessControlManager
interface.AccessControlManager
,
RemoteAccessControlManager
Constructor and Description |
---|
ClientAccessControlManager(RemoteAccessControlManager racm,
LocalAdapterFactory factory) |
Modifier and Type | Method and 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) |
getFactory, getItem, getNode, getNodeTypeArray
public ClientAccessControlManager(RemoteAccessControlManager racm, LocalAdapterFactory factory)
public AccessControlPolicyIterator getApplicablePolicies(String absPath) throws RepositoryException
getApplicablePolicies
in interface AccessControlManager
RepositoryException
public AccessControlPolicy[] getEffectivePolicies(String absPath) throws PathNotFoundException, AccessDeniedException, RepositoryException
getEffectivePolicies
in interface AccessControlManager
PathNotFoundException
AccessDeniedException
RepositoryException
public AccessControlPolicy[] getPolicies(String absPath) throws PathNotFoundException, AccessDeniedException, RepositoryException
getPolicies
in interface AccessControlManager
PathNotFoundException
AccessDeniedException
RepositoryException
public Privilege[] getPrivileges(String absPath) throws PathNotFoundException, RepositoryException
getPrivileges
in interface AccessControlManager
PathNotFoundException
RepositoryException
public Privilege[] getSupportedPrivileges(String absPath) throws PathNotFoundException, RepositoryException
getSupportedPrivileges
in interface AccessControlManager
PathNotFoundException
RepositoryException
public boolean hasPrivileges(String absPath, Privilege[] privileges) throws PathNotFoundException, RepositoryException
hasPrivileges
in interface AccessControlManager
PathNotFoundException
RepositoryException
public Privilege privilegeFromName(String privilegeName) throws AccessControlException, RepositoryException
privilegeFromName
in interface AccessControlManager
AccessControlException
RepositoryException
public void removePolicy(String absPath, AccessControlPolicy policy) throws UnsupportedRepositoryOperationException
removePolicy
in interface AccessControlManager
UnsupportedRepositoryOperationException
- This method is not
implemented yetpublic void setPolicy(String absPath, AccessControlPolicy policy) throws UnsupportedRepositoryOperationException
setPolicy
in interface AccessControlManager
UnsupportedRepositoryOperationException
- This method is not
implemented yetCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.