org.apache.jackrabbit.rmi.client
Class ClientRepository

java.lang.Object
  extended byorg.apache.jackrabbit.rmi.client.ClientObject
      extended byorg.apache.jackrabbit.rmi.client.ClientRepository
All Implemented Interfaces:
Repository

public class ClientRepository
extends ClientObject
implements Repository

Local adapter for the JCR-RMI RemoteRepository inteface. This class makes a remote repository locally available using the JCR Repository interface.

Author:
Jukka Zitting
See Also:
Repository, RemoteRepository

Field Summary
 
Fields inherited from interface javax.jcr.Repository
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC
 
Constructor Summary
ClientRepository(RemoteRepository remote, LocalAdapterFactory factory)
          Creates a client adapter for the given remote repository.
 
Method Summary
 String getDescriptor(String name)
          
 String[] getDescriptorKeys()
          
 Session login()
          
 Session login(Credentials credentials)
          
 Session login(Credentials credentials, String workspace)
          
 Session login(String workspace)
          
 
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

ClientRepository

public ClientRepository(RemoteRepository remote,
                        LocalAdapterFactory factory)
Creates a client adapter for the given remote repository.

Parameters:
remote - remote repository
factory - local adapter factory
Method Detail

getDescriptor

public String getDescriptor(String name)

Specified by:
getDescriptor in interface Repository

getDescriptorKeys

public String[] getDescriptorKeys()

Specified by:
getDescriptorKeys in interface Repository

login

public Session login()
              throws RepositoryException

Specified by:
login in interface Repository
Throws:
RepositoryException

login

public Session login(String workspace)
              throws RepositoryException

Specified by:
login in interface Repository
Throws:
RepositoryException

login

public Session login(Credentials credentials)
              throws RepositoryException

Specified by:
login in interface Repository
Throws:
RepositoryException

login

public Session login(Credentials credentials,
                     String workspace)
              throws RepositoryException

Specified by:
login in interface Repository
Throws:
RepositoryException


Copyright © 2004-2006 . All Rights Reserved.