public abstract class SafeClientRepository extends ClientObject
RemoteRepository
interface. This class uses an abstract factory method for loading
(and reloading) the remote repository instance that is made locally
available through the JCR Repository interface. If the remote
reference breaks (a RemoteException is thrown by a remote call), then
this adapter attempts to reload the remote reference once before failing.javax.jcr.Repository,
RemoteRepository| Constructor and Description |
|---|
SafeClientRepository(LocalAdapterFactory factory)
Creates a client adapter for the given remote repository.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescriptor(java.lang.String name) |
java.lang.String[] |
getDescriptorKeys() |
Value |
getDescriptorValue(java.lang.String key) |
Value[] |
getDescriptorValues(java.lang.String key) |
protected abstract RemoteRepository |
getRemoteRepository()
Abstract factory class for getting the remote repository.
|
protected RemoteRepository |
getRemoteRepository(boolean initialize)
Method to obtain the remote remote repository.
|
boolean |
isSingleValueDescriptor(java.lang.String key) |
boolean |
isStandardDescriptor(java.lang.String key) |
Session |
login() |
Session |
login(Credentials credentials) |
Session |
login(Credentials credentials,
java.lang.String workspace) |
Session |
login(java.lang.String workspace) |
getFactory, getItem, getNode, getNodeTypeArraypublic SafeClientRepository(LocalAdapterFactory factory)
factory - local adapter factoryprotected abstract RemoteRepository getRemoteRepository() throws java.rmi.RemoteException
java.rmi.RemoteException - if the remote repository could not be accessedprotected RemoteRepository getRemoteRepository(boolean initialize) throws java.rmi.RemoteException
BrokenRemoteRepository
will be created.java.rmi.RemoteException - if the remote repository could not be accessedpublic java.lang.String getDescriptor(java.lang.String name)
public java.lang.String[] getDescriptorKeys()
public Session login(Credentials credentials,
java.lang.String workspace)
throws RepositoryException
RepositoryExceptionpublic Session login(java.lang.String workspace)
throws RepositoryException
RepositoryExceptionpublic Session login(Credentials credentials)
throws RepositoryException
RepositoryExceptionpublic Session login()
throws RepositoryException
RepositoryExceptionpublic Value getDescriptorValue(java.lang.String key)
public Value[] getDescriptorValues(java.lang.String key)
public boolean isSingleValueDescriptor(java.lang.String key)
public boolean isStandardDescriptor(java.lang.String key)