public class ServerWorkspace extends ServerObject implements RemoteWorkspace
Workspace
interface.
This class makes a local workspace available as an RMI service using the
RemoteWorkspace
interface.Workspace
,
RemoteWorkspace
,
Serialized Formref
Constructor and Description |
---|
ServerWorkspace(javax.jcr.Workspace workspace,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local workspace.
|
Modifier and Type | Method and Description |
---|---|
void |
clone(String workspace,
String from,
String to,
boolean removeExisting)
Remote version of the
Workspace.clone(String,String,String,boolean)
method. |
void |
copy(String from,
String to)
Remote version of the
Workspace.copy(String,String)
method. |
void |
copy(String workspace,
String from,
String to)
Remote version of the
Workspace.copy(String,String,String)
method. |
void |
createWorkspace(String name,
String source) |
void |
deleteWorkspace(String name) |
String[] |
getAccessibleWorkspaceNames()
Remote version of the
Workspace.getAccessibleWorkspaceNames()
method. |
RemoteLockManager |
getLockManager() |
String |
getName()
Remote version of the
Workspace.getName() method. |
RemoteNamespaceRegistry |
getNamespaceRegistry()
Remote version of the
Workspace.getNamespaceRegistry()
method. |
RemoteNodeTypeManager |
getNodeTypeManager()
Remote version of the
Workspace.getNodeTypeManager()
method. |
RemoteObservationManager |
getObservationManager()
Remote version of the
Workspace.getObservationManager()
method. |
RemoteQueryManager |
getQueryManager()
Remote version of the
Workspace.getQueryManager()
method. |
RemoteVersionManager |
getVersionManager() |
void |
importXML(String path,
byte[] xml,
int uuidBehaviour)
Remote version of the
Workspace.importXML(String,InputStream,int)
method. |
void |
move(String from,
String to)
Remote version of the
Workspace.move(String,String)
method. |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerWorkspace(javax.jcr.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 javax.jcr.RepositoryException, RemoteException
Workspace.copy(String,String)
method.copy
in interface RemoteWorkspace
from
- source pathto
- destination pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void copy(String workspace, String from, String to) throws javax.jcr.RepositoryException, RemoteException
Workspace.copy(String,String,String)
method.copy
in interface RemoteWorkspace
workspace
- source workspacefrom
- source pathto
- destination pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void clone(String workspace, String from, String to, boolean removeExisting) throws javax.jcr.RepositoryException, RemoteException
Workspace.clone(String,String,String,boolean)
method.clone
in interface RemoteWorkspace
workspace
- source workspacefrom
- source pathto
- destination pathremoveExisting
- flag to remove existing itemsjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void move(String from, String to) throws javax.jcr.RepositoryException, RemoteException
Workspace.move(String,String)
method.move
in interface RemoteWorkspace
from
- source pathto
- destination pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNodeTypeManager getNodeTypeManager() throws javax.jcr.RepositoryException, RemoteException
Workspace.getNodeTypeManager()
method.getNodeTypeManager
in interface RemoteWorkspace
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNamespaceRegistry getNamespaceRegistry() throws javax.jcr.RepositoryException, RemoteException
Workspace.getNamespaceRegistry()
method.getNamespaceRegistry
in interface RemoteWorkspace
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteQueryManager getQueryManager() throws javax.jcr.RepositoryException, RemoteException
Workspace.getQueryManager()
method.getQueryManager
in interface RemoteWorkspace
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteObservationManager getObservationManager() throws javax.jcr.RepositoryException, RemoteException
Workspace.getObservationManager()
method.getObservationManager
in interface RemoteWorkspace
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String[] getAccessibleWorkspaceNames() throws javax.jcr.RepositoryException, RemoteException
Workspace.getAccessibleWorkspaceNames()
method.getAccessibleWorkspaceNames
in interface RemoteWorkspace
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void importXML(String path, byte[] xml, int uuidBehaviour) throws IOException, javax.jcr.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 errorsjavax.jcr.RepositoryException
- on repository errorspublic void createWorkspace(String name, String source) throws javax.jcr.RepositoryException, RemoteException
createWorkspace
in interface RemoteWorkspace
javax.jcr.RepositoryException
RemoteException
public void deleteWorkspace(String name) throws javax.jcr.RepositoryException, RemoteException
deleteWorkspace
in interface RemoteWorkspace
javax.jcr.RepositoryException
RemoteException
public RemoteLockManager getLockManager() throws javax.jcr.RepositoryException, RemoteException
getLockManager
in interface RemoteWorkspace
javax.jcr.RepositoryException
RemoteException
public RemoteVersionManager getVersionManager() throws javax.jcr.RepositoryException, RemoteException
getVersionManager
in interface RemoteWorkspace
javax.jcr.RepositoryException
RemoteException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.