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(forRemoval=true) public class ClientWorkspace extends ClientObject implements Workspace
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.Local adapter for the JCR-RMI
RemoteWorkspace
interface. This class makes a remote workspace locally available using the JCRWorkspace
interface.- 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, for removal: This API element is subject to removal in a future version.Creates a client adapter for the given remote workspace.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clone(String workspace, String src, String dst, boolean removeExisting)
Deprecated, for removal: This API element is subject to removal in a future version.void
copy(String from, String to)
Deprecated, for removal: This API element is subject to removal in a future version.void
copy(String workspace, String from, String to)
Deprecated, for removal: This API element is subject to removal in a future version.void
createWorkspace(String name)
Deprecated, for removal: This API element is subject to removal in a future version.void
createWorkspace(String name, String srcWorkspace)
Deprecated, for removal: This API element is subject to removal in a future version.void
deleteWorkspace(String name)
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getAccessibleWorkspaceNames()
Deprecated, for removal: This API element is subject to removal in a future version.ContentHandler
getImportContentHandler(String path, int mode)
Deprecated, for removal: This API element is subject to removal in a future version.LockManager
getLockManager()
Deprecated, for removal: This API element is subject to removal in a future version.String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.NamespaceRegistry
getNamespaceRegistry()
Deprecated, for removal: This API element is subject to removal in a future version.NodeTypeManager
getNodeTypeManager()
Deprecated, for removal: This API element is subject to removal in a future version.ObservationManager
getObservationManager()
Deprecated, for removal: This API element is subject to removal in a future version.QueryManager
getQueryManager()
Deprecated, for removal: This API element is subject to removal in a future version.Session
getSession()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the current session without contacting the remote workspace.VersionManager
getVersionManager()
Deprecated, for removal: This API element is subject to removal in a future version.void
importXML(String path, InputStream xml, int uuidBehaviour)
Deprecated, for removal: This API element is subject to removal in a future version.void
move(String from, String to)
Deprecated, for removal: This API element is subject to removal in a future version.void
restore(Version[] versions, boolean removeExisting)
Deprecated, for removal: This API element is subject to removal in a future version.-
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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Returns the current session without contacting the remote workspace.- Specified by:
getSession
in interfaceWorkspace
-
getName
public String getName()
Deprecated, for removal: This API element is subject to removal in a future version.
-
copy
public void copy(String from, String to) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
copy
in interfaceWorkspace
- Throws:
RepositoryException
-
copy
public void copy(String workspace, String from, String to) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
copy
in interfaceWorkspace
- Throws:
RepositoryException
-
move
public void move(String from, String to) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
move
in interfaceWorkspace
- Throws:
RepositoryException
-
getQueryManager
public QueryManager getQueryManager() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getQueryManager
in interfaceWorkspace
- Throws:
RepositoryException
-
getNamespaceRegistry
public NamespaceRegistry getNamespaceRegistry() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNamespaceRegistry
in interfaceWorkspace
- Throws:
RepositoryException
-
getNodeTypeManager
public NodeTypeManager getNodeTypeManager() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNodeTypeManager
in interfaceWorkspace
- Throws:
RepositoryException
-
getObservationManager
public ObservationManager getObservationManager() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getObservationManager
in interfaceWorkspace
- Throws:
RepositoryException
-
clone
public void clone(String workspace, String src, String dst, boolean removeExisting) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
clone
in interfaceWorkspace
- Throws:
RepositoryException
-
getAccessibleWorkspaceNames
public String[] getAccessibleWorkspaceNames() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAccessibleWorkspaceNames
in interfaceWorkspace
- Throws:
RepositoryException
-
getImportContentHandler
public ContentHandler getImportContentHandler(String path, int mode) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getImportContentHandler
in interfaceWorkspace
- Throws:
RepositoryException
-
importXML
public void importXML(String path, InputStream xml, int uuidBehaviour) throws IOException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
importXML
in interfaceWorkspace
- Throws:
IOException
RepositoryException
-
restore
public void restore(Version[] versions, boolean removeExisting) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
restore
in interfaceWorkspace
- Throws:
RepositoryException
-
createWorkspace
public void createWorkspace(String name) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createWorkspace
in interfaceWorkspace
- Throws:
RepositoryException
-
createWorkspace
public void createWorkspace(String name, String srcWorkspace) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createWorkspace
in interfaceWorkspace
- Throws:
RepositoryException
-
deleteWorkspace
public void deleteWorkspace(String name) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
deleteWorkspace
in interfaceWorkspace
- Throws:
RepositoryException
-
getLockManager
public LockManager getLockManager() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLockManager
in interfaceWorkspace
- Throws:
RepositoryException
-
getVersionManager
public VersionManager getVersionManager() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getVersionManager
in interfaceWorkspace
- Throws:
RepositoryException
-
-