Remote adapter for the JCR Workspace
interface.
This class makes a local workspace available as an RMI service using the
RemoteWorkspace
interface.
@Deprecated public class ServerWorkspace extends ServerObject implements RemoteWorkspace
Workspace
,
RemoteWorkspace
,
Serialized Formref
Constructor and Description |
---|
ServerWorkspace(Workspace workspace,
RemoteAdapterFactory factory)
Deprecated.
Creates a remote adapter for the given local workspace.
|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerWorkspace(Workspace workspace, RemoteAdapterFactory factory) throws RemoteException
workspace
- local workspacefactory
- remote adapter factoryRemoteException
- on RMI errorspublic String getName() throws RemoteException
Workspace.getName()
method.getName
in interface RemoteWorkspace
RemoteException
- on RMI errorspublic void copy(String from, String to) throws RepositoryException, RemoteException
Workspace.copy(String,String)
method.copy
in interface RemoteWorkspace
from
- source pathto
- destination pathRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void copy(String workspace, String from, String to) throws RepositoryException, RemoteException
Workspace.copy(String,String,String)
method.copy
in interface RemoteWorkspace
workspace
- source workspacefrom
- source pathto
- destination pathRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void clone(String workspace, String from, String to, boolean removeExisting) throws RepositoryException, RemoteException
Workspace.clone(String,String,String,boolean)
method.clone
in interface RemoteWorkspace
workspace
- source workspacefrom
- source pathto
- destination pathremoveExisting
- flag to remove existing itemsRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void move(String from, String to) throws RepositoryException, RemoteException
Workspace.move(String,String)
method.move
in interface RemoteWorkspace
from
- source pathto
- destination pathRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNodeTypeManager getNodeTypeManager() throws RepositoryException, RemoteException
Workspace.getNodeTypeManager()
method.getNodeTypeManager
in interface RemoteWorkspace
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNamespaceRegistry getNamespaceRegistry() throws RepositoryException, RemoteException
Workspace.getNamespaceRegistry()
method.getNamespaceRegistry
in interface RemoteWorkspace
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteQueryManager getQueryManager() throws RepositoryException, RemoteException
Workspace.getQueryManager()
method.getQueryManager
in interface RemoteWorkspace
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteObservationManager getObservationManager() throws RepositoryException, RemoteException
Workspace.getObservationManager()
method.getObservationManager
in interface RemoteWorkspace
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String[] getAccessibleWorkspaceNames() throws RepositoryException, RemoteException
Workspace.getAccessibleWorkspaceNames()
method.getAccessibleWorkspaceNames
in interface RemoteWorkspace
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void importXML(String path, byte[] xml, int uuidBehaviour) throws IOException, RepositoryException, RemoteException
Workspace.importXML(String,InputStream,int)
method.importXML
in interface RemoteWorkspace
path
- node pathxml
- imported XML documentuuidBehaviour
- uuid behaviour flagIOException
- on IO errorsRemoteException
- on RMI errorsRepositoryException
- on repository errorspublic void createWorkspace(String name, String source) throws RepositoryException, RemoteException
createWorkspace
in interface RemoteWorkspace
RepositoryException
RemoteException
public void deleteWorkspace(String name) throws RepositoryException, RemoteException
deleteWorkspace
in interface RemoteWorkspace
RepositoryException
RemoteException
public RemoteLockManager getLockManager() throws RepositoryException, RemoteException
getLockManager
in interface RemoteWorkspace
RepositoryException
RemoteException
public RemoteVersionManager getVersionManager() throws RepositoryException, RemoteException
getVersionManager
in interface RemoteWorkspace
RepositoryException
RemoteException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.