|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.exoplatform.services.jcr.rmi.impl.server.ServerObject
org.exoplatform.services.jcr.rmi.impl.server.ServerWorkspace
public class ServerWorkspace
Remote adapter for the JCR Workspace interface. This class makes a local
workspace available as an RMI service using the RemoteWorkspace
interface.
Workspace,
RemoteWorkspace,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
ServerWorkspace(javax.jcr.Workspace workspace,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local workspace. |
|
| Method Summary | |
|---|---|
void |
clone(java.lang.String workspace,
java.lang.String from,
java.lang.String to,
boolean removeExisting)
Remote version of the Workspace.clone(String,String,String,boolean) method. |
void |
copy(java.lang.String from,
java.lang.String to)
Remote version of the Workspace.copy(String,String) method. |
void |
copy(java.lang.String workspace,
java.lang.String from,
java.lang.String to)
Remote version of the Workspace.copy(String,String,String) method. |
java.lang.String[] |
getAccessibleWorkspaceNames()
Remote version of the Workspace.getAccessibleWorkspaceNames() method. |
java.lang.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. |
void |
importXML(java.lang.String path,
byte[] xml,
int uuidBehaviour)
Remote version of the Workspace.importXML(String,InputStream,int) method. |
void |
move(java.lang.String from,
java.lang.String to)
Remote version of the Workspace.move(String,String) method. |
void |
restore(java.lang.String[] versionUuids,
boolean removeExisting)
* Remote version of the Workspace.restore(String[] versionuuids, boolean removeExisting) method. |
| Methods inherited from class org.exoplatform.services.jcr.rmi.impl.server.ServerObject |
|---|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerWorkspace(javax.jcr.Workspace workspace,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
workspace - local workspacefactory - remote adapter factory
java.rmi.RemoteException - on RMI errors| Method Detail |
|---|
public java.lang.String getName()
throws java.rmi.RemoteException
Workspace.getName() method.
getName in interface RemoteWorkspacejava.rmi.RemoteException - on RMI errors
public void copy(java.lang.String from,
java.lang.String to)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.copy(String,String) method.
copy in interface RemoteWorkspacefrom - source pathto - destination path
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void copy(java.lang.String workspace,
java.lang.String from,
java.lang.String to)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.copy(String,String,String) method.
copy in interface RemoteWorkspaceworkspace - source workspacefrom - source pathto - destination path
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void clone(java.lang.String workspace,
java.lang.String from,
java.lang.String to,
boolean removeExisting)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.clone(String,String,String,boolean) method.
clone in interface RemoteWorkspaceworkspace - source workspacefrom - source pathto - destination pathremoveExisting - flag to remove existing items
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void move(java.lang.String from,
java.lang.String to)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.move(String,String) method.
move in interface RemoteWorkspacefrom - source pathto - destination path
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public RemoteNodeTypeManager getNodeTypeManager()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.getNodeTypeManager() method.
getNodeTypeManager in interface RemoteWorkspacejavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public RemoteNamespaceRegistry getNamespaceRegistry()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.getNamespaceRegistry() method.
getNamespaceRegistry in interface RemoteWorkspacejavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public RemoteQueryManager getQueryManager()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.getQueryManager()
method.
getQueryManager in interface RemoteWorkspacejavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public RemoteObservationManager getObservationManager()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.getObservationManager() method.
getObservationManager in interface RemoteWorkspacejavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public java.lang.String[] getAccessibleWorkspaceNames()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.getAccessibleWorkspaceNames() method.
getAccessibleWorkspaceNames in interface RemoteWorkspacejavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void importXML(java.lang.String path,
byte[] xml,
int uuidBehaviour)
throws java.io.IOException,
javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.importXML(String,InputStream,int) method.
importXML in interface RemoteWorkspacepath - node pathxml - imported XML documentuuidBehaviour - uuid behaviour flag
java.io.IOException - on IO errors
java.rmi.RemoteException - on RMI errors
javax.jcr.RepositoryException - on repository errors
public void restore(java.lang.String[] versionUuids,
boolean removeExisting)
throws javax.jcr.ItemExistsException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.InvalidItemStateException,
javax.jcr.RepositoryException,
java.rmi.RemoteException
Workspace.restore(String[] versionuuids, boolean removeExisting) method.
restore in interface RemoteWorkspaceremoveExisting - governs what happens on UUID collision.
javax.jcr.ItemExistsException - if removeExisting is false and a UUID collision occurs with
a node being restored.
javax.jcr.UnsupportedRepositoryOperationException - if one or more of the nodes to be restored is not versionable.
javax.jcr.version.VersionException - if the set of versions to be restored is such that the original path location of one
or more of the versions cannot be determined or if the restore would
change the state of a existing verisonable node that is currently checked-in or if a
root version (jcr:rootVersion) is among those being restored.
javax.jcr.lock.LockException - if a lock prevents the restore.
javax.jcr.InvalidItemStateException - if this Session (not necessarily this Node) has pending
unsaved changes.
javax.jcr.RepositoryException - if another error occurs.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||