org.exoplatform.services.jcr.rmi.api.client
Class ClientRepository
java.lang.Object
org.exoplatform.services.jcr.rmi.api.client.ClientObject
org.exoplatform.services.jcr.rmi.api.client.ClientRepository
- All Implemented Interfaces:
- javax.jcr.Repository
public class ClientRepository
- extends ClientObject
- implements javax.jcr.Repository
Local adapter for the JCR-RMI
RemoteRepository inteface.
This class makes a remote repository locally available using the JCR Repository interface.
- See Also:
Repository,
RemoteRepository
| 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 |
|
Method Summary |
java.lang.String |
getDescriptor(java.lang.String name)
|
java.lang.String[] |
getDescriptorKeys()
|
javax.jcr.Session |
login()
|
javax.jcr.Session |
login(javax.jcr.Credentials credentials)
|
javax.jcr.Session |
login(javax.jcr.Credentials credentials,
java.lang.String workspace)
|
javax.jcr.Session |
login(java.lang.String workspace)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientRepository
public ClientRepository(RemoteRepository remote,
LocalAdapterFactory factory)
- Creates a client adapter for the given remote repository.
- Parameters:
remote - remote repositoryfactory - local adapter factory
getDescriptor
public java.lang.String getDescriptor(java.lang.String name)
-
- Specified by:
getDescriptor in interface javax.jcr.Repository
getDescriptorKeys
public java.lang.String[] getDescriptorKeys()
-
- Specified by:
getDescriptorKeys in interface javax.jcr.Repository
login
public javax.jcr.Session login()
throws javax.jcr.RepositoryException
-
- Specified by:
login in interface javax.jcr.Repository
- Throws:
javax.jcr.RepositoryException
login
public javax.jcr.Session login(java.lang.String workspace)
throws javax.jcr.RepositoryException
-
- Specified by:
login in interface javax.jcr.Repository
- Throws:
javax.jcr.RepositoryException
login
public javax.jcr.Session login(javax.jcr.Credentials credentials)
throws javax.jcr.RepositoryException
-
- Specified by:
login in interface javax.jcr.Repository
- Throws:
javax.jcr.RepositoryException
login
public javax.jcr.Session login(javax.jcr.Credentials credentials,
java.lang.String workspace)
throws javax.jcr.RepositoryException
-
- Specified by:
login in interface javax.jcr.Repository
- Throws:
javax.jcr.RepositoryException
Copyright © 2012 eXo Platform SAS. All Rights Reserved.