public class ClientAccessControlManager extends ClientObject implements javax.jcr.security.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 |
---|---|
javax.jcr.security.AccessControlPolicyIterator |
getApplicablePolicies(String absPath) |
javax.jcr.security.AccessControlPolicy[] |
getEffectivePolicies(String absPath) |
javax.jcr.security.AccessControlPolicy[] |
getPolicies(String absPath) |
javax.jcr.security.Privilege[] |
getPrivileges(String absPath) |
javax.jcr.security.Privilege[] |
getSupportedPrivileges(String absPath) |
boolean |
hasPrivileges(String absPath,
javax.jcr.security.Privilege[] privileges) |
javax.jcr.security.Privilege |
privilegeFromName(String privilegeName) |
void |
removePolicy(String absPath,
javax.jcr.security.AccessControlPolicy policy) |
void |
setPolicy(String absPath,
javax.jcr.security.AccessControlPolicy policy) |
getFactory, getItem, getNode, getNodeTypeArray
public ClientAccessControlManager(RemoteAccessControlManager racm, LocalAdapterFactory factory)
public javax.jcr.security.AccessControlPolicyIterator getApplicablePolicies(String absPath) throws javax.jcr.RepositoryException
getApplicablePolicies
in interface javax.jcr.security.AccessControlManager
javax.jcr.RepositoryException
public javax.jcr.security.AccessControlPolicy[] getEffectivePolicies(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
getEffectivePolicies
in interface javax.jcr.security.AccessControlManager
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
public javax.jcr.security.AccessControlPolicy[] getPolicies(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
getPolicies
in interface javax.jcr.security.AccessControlManager
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
public javax.jcr.security.Privilege[] getPrivileges(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getPrivileges
in interface javax.jcr.security.AccessControlManager
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public javax.jcr.security.Privilege[] getSupportedPrivileges(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getSupportedPrivileges
in interface javax.jcr.security.AccessControlManager
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public boolean hasPrivileges(String absPath, javax.jcr.security.Privilege[] privileges) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
hasPrivileges
in interface javax.jcr.security.AccessControlManager
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public javax.jcr.security.Privilege privilegeFromName(String privilegeName) throws javax.jcr.security.AccessControlException, javax.jcr.RepositoryException
privilegeFromName
in interface javax.jcr.security.AccessControlManager
javax.jcr.security.AccessControlException
javax.jcr.RepositoryException
public void removePolicy(String absPath, javax.jcr.security.AccessControlPolicy policy) throws javax.jcr.UnsupportedRepositoryOperationException
removePolicy
in interface javax.jcr.security.AccessControlManager
javax.jcr.UnsupportedRepositoryOperationException
- This method is not
implemented yetpublic void setPolicy(String absPath, javax.jcr.security.AccessControlPolicy policy) throws javax.jcr.UnsupportedRepositoryOperationException
setPolicy
in interface javax.jcr.security.AccessControlManager
javax.jcr.UnsupportedRepositoryOperationException
- This method is not
implemented yetCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.