org.apache.jackrabbit.rmi.client.security
Class ClientAccessControlManager

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.security.ClientAccessControlManager
All Implemented Interfaces:
AccessControlManager

public class ClientAccessControlManager
extends ClientObject
implements AccessControlManager

Local adapter for the JCR-RMI RemoteAccessControlManager interface. This class makes a remote AccessControlManager locally available using the JCR AccessControlManager interface.

See Also:
AccessControlManager, RemoteAccessControlManager

Constructor Summary
ClientAccessControlManager(RemoteAccessControlManager racm, LocalAdapterFactory factory)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientAccessControlManager

public ClientAccessControlManager(RemoteAccessControlManager racm,
                                  LocalAdapterFactory factory)
Method Detail

getApplicablePolicies

public AccessControlPolicyIterator getApplicablePolicies(String absPath)
                                                  throws RepositoryException

Specified by:
getApplicablePolicies in interface AccessControlManager
Throws:
RepositoryException

getEffectivePolicies

public AccessControlPolicy[] getEffectivePolicies(String absPath)
                                           throws PathNotFoundException,
                                                  AccessDeniedException,
                                                  RepositoryException

Specified by:
getEffectivePolicies in interface AccessControlManager
Throws:
PathNotFoundException
AccessDeniedException
RepositoryException

getPolicies

public AccessControlPolicy[] getPolicies(String absPath)
                                  throws PathNotFoundException,
                                         AccessDeniedException,
                                         RepositoryException

Specified by:
getPolicies in interface AccessControlManager
Throws:
PathNotFoundException
AccessDeniedException
RepositoryException

getPrivileges

public Privilege[] getPrivileges(String absPath)
                          throws PathNotFoundException,
                                 RepositoryException

Specified by:
getPrivileges in interface AccessControlManager
Throws:
PathNotFoundException
RepositoryException

getSupportedPrivileges

public Privilege[] getSupportedPrivileges(String absPath)
                                   throws PathNotFoundException,
                                          RepositoryException

Specified by:
getSupportedPrivileges in interface AccessControlManager
Throws:
PathNotFoundException
RepositoryException

hasPrivileges

public boolean hasPrivileges(String absPath,
                             Privilege[] privileges)
                      throws PathNotFoundException,
                             RepositoryException

Specified by:
hasPrivileges in interface AccessControlManager
Throws:
PathNotFoundException
RepositoryException

privilegeFromName

public Privilege privilegeFromName(String privilegeName)
                            throws AccessControlException,
                                   RepositoryException

Specified by:
privilegeFromName in interface AccessControlManager
Throws:
AccessControlException
RepositoryException

removePolicy

public void removePolicy(String absPath,
                         AccessControlPolicy policy)
                  throws UnsupportedRepositoryOperationException
Specified by:
removePolicy in interface AccessControlManager
Throws:
UnsupportedRepositoryOperationException - This method is not implemented yet

setPolicy

public void setPolicy(String absPath,
                      AccessControlPolicy policy)
               throws UnsupportedRepositoryOperationException
Specified by:
setPolicy in interface AccessControlManager
Throws:
UnsupportedRepositoryOperationException - This method is not implemented yet


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.