Remote adapter for the JCR Repository
interface. This class makes a local repository available as an RMI service
using the
RemoteRepository
interface.
@Deprecated public class ServerRepository extends ServerObject implements RemoteRepository
Repository
,
RemoteRepository
,
Serialized Formref
Constructor and Description |
---|
ServerRepository(Repository repository,
RemoteAdapterFactory factory)
Deprecated.
Creates a remote adapter for the given local repository.
|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerRepository(Repository repository, RemoteAdapterFactory factory) throws RemoteException
repository
- local repositoryfactory
- remote adapter factoryRemoteException
- on RMI errorspublic String getDescriptor(String name) throws RemoteException
Repository.getDescriptor(String)
method.getDescriptor
in interface RemoteRepository
name
- descriptor keyRemoteException
- on RMI errorspublic String[] getDescriptorKeys() throws RemoteException
Repository.getDescriptorKeys()
method.getDescriptorKeys
in interface RemoteRepository
RemoteException
- on RMI errorspublic RemoteSession login() throws RepositoryException, RemoteException
Repository.login(
} method.login
in interface RemoteRepository
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteSession login(String workspace) throws RepositoryException, RemoteException
Repository.login(String
}
method.login
in interface RemoteRepository
workspace
- workspace nameRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteSession login(Credentials credentials) throws RepositoryException, RemoteException
Repository.login(Credentials
}
method.login
in interface RemoteRepository
credentials
- client credentialsRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteSession login(Credentials credentials, String workspace) throws RepositoryException, RemoteException
Repository.login(Credentials,String
}
method.login
in interface RemoteRepository
credentials
- client credentialsworkspace
- workspace nameRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic Value getDescriptorValue(String key) throws RemoteException
Repository.getDescriptorValue(String)
method.getDescriptorValue
in interface RemoteRepository
RemoteException
- on RMI errorspublic Value[] getDescriptorValues(String key) throws RemoteException
Repository.getDescriptorValues(String)
method.getDescriptorValues
in interface RemoteRepository
RemoteException
- on RMI errorspublic boolean isSingleValueDescriptor(String key) throws RemoteException
Repository.isSingleValueDescriptor(String)
method.isSingleValueDescriptor
in interface RemoteRepository
RemoteException
- on RMI errorspublic boolean isStandardDescriptor(String key) throws RemoteException
Repository.isStandardDescriptor(String)
method.isStandardDescriptor
in interface RemoteRepository
RemoteException
- on RMI errorsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.