Package org.apache.jackrabbit.rmi.server
Class ServerRepository
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerRepository
-
- All Implemented Interfaces:
Serializable,Remote,RemoteRepository
@Deprecated public class ServerRepository extends ServerObject implements RemoteRepository
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for the JCR
Repositoryinterface. This class makes a local repository available as an RMI service using theRemoteRepositoryinterface.- See Also:
Repository,RemoteRepository, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerRepository(Repository repository, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given local repository.
-
Method Summary
-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerRepository
public ServerRepository(Repository repository, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given local repository.- Parameters:
repository- local repositoryfactory- remote adapter factory- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
getDescriptor
public String getDescriptor(String name) throws RemoteException
Deprecated.Remote version of theRepository.getDescriptor(String)method.- Specified by:
getDescriptorin interfaceRemoteRepository- Parameters:
name- descriptor key- Returns:
- descriptor value
- Throws:
RemoteException- on RMI errors
-
getDescriptorKeys
public String[] getDescriptorKeys() throws RemoteException
Deprecated.Remote version of theRepository.getDescriptorKeys()method.- Specified by:
getDescriptorKeysin interfaceRemoteRepository- Returns:
- descriptor keys
- Throws:
RemoteException- on RMI errors
-
login
public RemoteSession login() throws RepositoryException, RemoteException
Deprecated.Remote version of theRepository.login(} method.- Specified by:
loginin interfaceRemoteRepository- Returns:
- remote session
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
login
public RemoteSession login(String workspace) throws RepositoryException, RemoteException
Deprecated.Remote version of theRepository.login(String} method.- Specified by:
loginin interfaceRemoteRepository- Parameters:
workspace- workspace name- Returns:
- remote session
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
login
public RemoteSession login(Credentials credentials) throws RepositoryException, RemoteException
Deprecated.Remote version of theRepository.login(Credentials} method.- Specified by:
loginin interfaceRemoteRepository- Parameters:
credentials- client credentials- Returns:
- remote session
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
login
public RemoteSession login(Credentials credentials, String workspace) throws RepositoryException, RemoteException
Deprecated.Remote version of theRepository.login(Credentials,String} method.- Specified by:
loginin interfaceRemoteRepository- Parameters:
credentials- client credentialsworkspace- workspace name- Returns:
- remote session
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getDescriptorValue
public Value getDescriptorValue(String key) throws RemoteException
Deprecated.Remote version of theRepository.getDescriptorValue(String)method.- Specified by:
getDescriptorValuein interfaceRemoteRepository- Returns:
- descriptor value
- Throws:
RemoteException- on RMI errors
-
getDescriptorValues
public Value[] getDescriptorValues(String key) throws RemoteException
Deprecated.Remote version of theRepository.getDescriptorValues(String)method.- Specified by:
getDescriptorValuesin interfaceRemoteRepository- Returns:
- descriptor value array
- Throws:
RemoteException- on RMI errors
-
isSingleValueDescriptor
public boolean isSingleValueDescriptor(String key) throws RemoteException
Deprecated.Remote version of theRepository.isSingleValueDescriptor(String)method.- Specified by:
isSingleValueDescriptorin interfaceRemoteRepository- Returns:
- boolean
- Throws:
RemoteException- on RMI errors
-
isStandardDescriptor
public boolean isStandardDescriptor(String key) throws RemoteException
Deprecated.Remote version of theRepository.isStandardDescriptor(String)method.- Specified by:
isStandardDescriptorin interfaceRemoteRepository- Returns:
- boolean
- Throws:
RemoteException- on RMI errors
-
-