Package org.apache.jackrabbit.rmi.client
Class ClientWorkspace
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientWorkspace
-
- All Implemented Interfaces:
Workspace
@Deprecated public class ClientWorkspace extends ClientObject implements Workspace
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemoteWorkspaceinterface. This class makes a remote workspace locally available using the JCRWorkspaceinterface.- See Also:
Workspace,RemoteWorkspace
-
-
Field Summary
-
Fields inherited from interface javax.jcr.Workspace
NAME_ACTIVITIES_NODE, NAME_CONFIGURATIONS_NODE, NAME_JCR_XMLCHARACTERS, NAME_JCR_XMLTEXT, NAME_NODE_TYPES_NODE, NAME_SYSTEM_NODE, NAME_UNFILED_NODE, NAME_VERSION_STORAGE_NODE, NAME_WORKSPACE_ROOT, PATH_ACTIVITIES_NODE, PATH_CONFIGURATIONS_NODE, PATH_NODE_TYPES_NODE, PATH_SYSTEM_NODE, PATH_UNFILED_NODE, PATH_VERSION_STORAGE_NODE, PATH_WORKSPACE_ROOT, RELPATH_JCR_XMLCHARACTERS
-
-
Constructor Summary
Constructors Constructor Description ClientWorkspace(Session session, RemoteWorkspace remote, LocalAdapterFactory factory)Deprecated.Creates a client adapter for the given remote workspace.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclone(String workspace, String src, String dst, boolean removeExisting)Deprecated.voidcopy(String from, String to)Deprecated.voidcopy(String workspace, String from, String to)Deprecated.voidcreateWorkspace(String name)Deprecated.voidcreateWorkspace(String name, String srcWorkspace)Deprecated.voiddeleteWorkspace(String name)Deprecated.String[]getAccessibleWorkspaceNames()Deprecated.ContentHandlergetImportContentHandler(String path, int mode)Deprecated.LockManagergetLockManager()Deprecated.StringgetName()Deprecated.NamespaceRegistrygetNamespaceRegistry()Deprecated.NodeTypeManagergetNodeTypeManager()Deprecated.ObservationManagergetObservationManager()Deprecated.QueryManagergetQueryManager()Deprecated.SessiongetSession()Deprecated.Returns the current session without contacting the remote workspace.VersionManagergetVersionManager()Deprecated.voidimportXML(String path, InputStream xml, int uuidBehaviour)Deprecated.voidmove(String from, String to)Deprecated.voidrestore(Version[] versions, boolean removeExisting)Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
-
-
-
Constructor Detail
-
ClientWorkspace
public ClientWorkspace(Session session, RemoteWorkspace remote, LocalAdapterFactory factory)
Deprecated.Creates a client adapter for the given remote workspace.- Parameters:
session- current sessionremote- remote workspacefactory- local adapter factory
-
-
Method Detail
-
getSession
public Session getSession()
Deprecated.Returns the current session without contacting the remote workspace.- Specified by:
getSessionin interfaceWorkspace
-
copy
public void copy(String from, String to) throws RepositoryException
Deprecated.- Specified by:
copyin interfaceWorkspace- Throws:
RepositoryException
-
copy
public void copy(String workspace, String from, String to) throws RepositoryException
Deprecated.- Specified by:
copyin interfaceWorkspace- Throws:
RepositoryException
-
move
public void move(String from, String to) throws RepositoryException
Deprecated.- Specified by:
movein interfaceWorkspace- Throws:
RepositoryException
-
getQueryManager
public QueryManager getQueryManager() throws RepositoryException
Deprecated.- Specified by:
getQueryManagerin interfaceWorkspace- Throws:
RepositoryException
-
getNamespaceRegistry
public NamespaceRegistry getNamespaceRegistry() throws RepositoryException
Deprecated.- Specified by:
getNamespaceRegistryin interfaceWorkspace- Throws:
RepositoryException
-
getNodeTypeManager
public NodeTypeManager getNodeTypeManager() throws RepositoryException
Deprecated.- Specified by:
getNodeTypeManagerin interfaceWorkspace- Throws:
RepositoryException
-
getObservationManager
public ObservationManager getObservationManager() throws RepositoryException
Deprecated.- Specified by:
getObservationManagerin interfaceWorkspace- Throws:
RepositoryException
-
clone
public void clone(String workspace, String src, String dst, boolean removeExisting) throws RepositoryException
Deprecated.- Specified by:
clonein interfaceWorkspace- Throws:
RepositoryException
-
getAccessibleWorkspaceNames
public String[] getAccessibleWorkspaceNames() throws RepositoryException
Deprecated.- Specified by:
getAccessibleWorkspaceNamesin interfaceWorkspace- Throws:
RepositoryException
-
getImportContentHandler
public ContentHandler getImportContentHandler(String path, int mode) throws RepositoryException
Deprecated.- Specified by:
getImportContentHandlerin interfaceWorkspace- Throws:
RepositoryException
-
importXML
public void importXML(String path, InputStream xml, int uuidBehaviour) throws IOException, RepositoryException
Deprecated.- Specified by:
importXMLin interfaceWorkspace- Throws:
IOExceptionRepositoryException
-
restore
public void restore(Version[] versions, boolean removeExisting) throws RepositoryException
Deprecated.- Specified by:
restorein interfaceWorkspace- Throws:
RepositoryException
-
createWorkspace
public void createWorkspace(String name) throws RepositoryException
Deprecated.- Specified by:
createWorkspacein interfaceWorkspace- Throws:
RepositoryException
-
createWorkspace
public void createWorkspace(String name, String srcWorkspace) throws RepositoryException
Deprecated.- Specified by:
createWorkspacein interfaceWorkspace- Throws:
RepositoryException
-
deleteWorkspace
public void deleteWorkspace(String name) throws RepositoryException
Deprecated.- Specified by:
deleteWorkspacein interfaceWorkspace- Throws:
RepositoryException
-
getLockManager
public LockManager getLockManager() throws RepositoryException
Deprecated.- Specified by:
getLockManagerin interfaceWorkspace- Throws:
RepositoryException
-
getVersionManager
public VersionManager getVersionManager() throws RepositoryException
Deprecated.- Specified by:
getVersionManagerin interfaceWorkspace- Throws:
RepositoryException
-
-