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(forRemoval=true) public class ServerRepository extends ServerObject implements RemoteRepository
Deprecated, for removal: This API element is subject to removal in a future version.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
Repository
interface. This class makes a local repository available as an RMI service using theRemoteRepository
interface.- 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, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given local repository.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getDescriptor(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.getDescriptor(String)
method.String[]
getDescriptorKeys()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.getDescriptorKeys()
method.Value
getDescriptorValue(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.getDescriptorValue(String)
method.Value[]
getDescriptorValues(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.getDescriptorValues(String)
method.boolean
isSingleValueDescriptor(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.isSingleValueDescriptor(String)
method.boolean
isStandardDescriptor(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.isStandardDescriptor(String)
method.RemoteSession
login()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.login(
} method.RemoteSession
login(String workspace)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.login(String
} method.RemoteSession
login(Credentials credentials)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.login(Credentials
} method.RemoteSession
login(Credentials credentials, String workspace)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.login(Credentials,String
} method.-
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, 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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Remote version of theRepository.getDescriptor(String)
method.- Specified by:
getDescriptor
in interfaceRemoteRepository
- Parameters:
name
- descriptor key- Returns:
- descriptor value
- Throws:
RemoteException
- on RMI errors
-
getDescriptorKeys
public String[] getDescriptorKeys() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.getDescriptorKeys()
method.- Specified by:
getDescriptorKeys
in interfaceRemoteRepository
- Returns:
- descriptor keys
- Throws:
RemoteException
- on RMI errors
-
login
public RemoteSession login() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.login(
} method.- Specified by:
login
in interfaceRemoteRepository
- Returns:
- remote session
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
login
public RemoteSession login(String workspace) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.login(String
} method.- Specified by:
login
in 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, for removal: This API element is subject to removal in a future version.Remote version of theRepository.login(Credentials
} method.- Specified by:
login
in 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, for removal: This API element is subject to removal in a future version.Remote version of theRepository.login(Credentials,String
} method.- Specified by:
login
in 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, for removal: This API element is subject to removal in a future version.Remote version of theRepository.getDescriptorValue(String)
method.- Specified by:
getDescriptorValue
in interfaceRemoteRepository
- Returns:
- descriptor value
- Throws:
RemoteException
- on RMI errors
-
getDescriptorValues
public Value[] getDescriptorValues(String key) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.getDescriptorValues(String)
method.- Specified by:
getDescriptorValues
in interfaceRemoteRepository
- Returns:
- descriptor value array
- Throws:
RemoteException
- on RMI errors
-
isSingleValueDescriptor
public boolean isSingleValueDescriptor(String key) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.isSingleValueDescriptor(String)
method.- Specified by:
isSingleValueDescriptor
in interfaceRemoteRepository
- Returns:
- boolean
- Throws:
RemoteException
- on RMI errors
-
isStandardDescriptor
public boolean isStandardDescriptor(String key) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theRepository.isStandardDescriptor(String)
method.- Specified by:
isStandardDescriptor
in interfaceRemoteRepository
- Returns:
- boolean
- Throws:
RemoteException
- on RMI errors
-
-