public class ClientWorkspace extends ClientObject implements javax.jcr.Workspace
RemoteWorkspace
interface. This class makes a remote workspace locally available using
the JCR Workspace
interface.Workspace
,
RemoteWorkspace
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 and Description |
---|
ClientWorkspace(javax.jcr.Session session,
RemoteWorkspace remote,
LocalAdapterFactory factory)
Creates a client adapter for the given remote workspace.
|
Modifier and Type | Method and Description |
---|---|
void |
clone(String workspace,
String src,
String dst,
boolean removeExisting) |
void |
copy(String from,
String to) |
void |
copy(String workspace,
String from,
String to) |
void |
createWorkspace(String name) |
void |
createWorkspace(String name,
String srcWorkspace) |
void |
deleteWorkspace(String name) |
String[] |
getAccessibleWorkspaceNames() |
ContentHandler |
getImportContentHandler(String path,
int mode) |
javax.jcr.lock.LockManager |
getLockManager() |
String |
getName() |
javax.jcr.NamespaceRegistry |
getNamespaceRegistry() |
javax.jcr.nodetype.NodeTypeManager |
getNodeTypeManager() |
javax.jcr.observation.ObservationManager |
getObservationManager() |
javax.jcr.query.QueryManager |
getQueryManager() |
javax.jcr.Session |
getSession()
Returns the current session without contacting the remote workspace.
|
javax.jcr.version.VersionManager |
getVersionManager() |
void |
importXML(String path,
InputStream xml,
int uuidBehaviour) |
void |
move(String from,
String to) |
void |
restore(javax.jcr.version.Version[] versions,
boolean removeExisting) |
getFactory, getItem, getNode, getNodeTypeArray
public ClientWorkspace(javax.jcr.Session session, RemoteWorkspace remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote workspacefactory
- local adapter factorypublic javax.jcr.Session getSession()
getSession
in interface javax.jcr.Workspace
public String getName()
getName
in interface javax.jcr.Workspace
public void copy(String from, String to) throws javax.jcr.RepositoryException
copy
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public void copy(String workspace, String from, String to) throws javax.jcr.RepositoryException
copy
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public void move(String from, String to) throws javax.jcr.RepositoryException
move
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public javax.jcr.query.QueryManager getQueryManager() throws javax.jcr.RepositoryException
getQueryManager
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public javax.jcr.NamespaceRegistry getNamespaceRegistry() throws javax.jcr.RepositoryException
getNamespaceRegistry
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public javax.jcr.nodetype.NodeTypeManager getNodeTypeManager() throws javax.jcr.RepositoryException
getNodeTypeManager
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public javax.jcr.observation.ObservationManager getObservationManager() throws javax.jcr.RepositoryException
getObservationManager
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public void clone(String workspace, String src, String dst, boolean removeExisting) throws javax.jcr.RepositoryException
clone
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public String[] getAccessibleWorkspaceNames() throws javax.jcr.RepositoryException
getAccessibleWorkspaceNames
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public ContentHandler getImportContentHandler(String path, int mode) throws javax.jcr.RepositoryException
getImportContentHandler
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public void importXML(String path, InputStream xml, int uuidBehaviour) throws IOException, javax.jcr.RepositoryException
importXML
in interface javax.jcr.Workspace
IOException
javax.jcr.RepositoryException
public void restore(javax.jcr.version.Version[] versions, boolean removeExisting) throws javax.jcr.RepositoryException
restore
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public void createWorkspace(String name) throws javax.jcr.RepositoryException
createWorkspace
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public void createWorkspace(String name, String srcWorkspace) throws javax.jcr.RepositoryException
createWorkspace
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public void deleteWorkspace(String name) throws javax.jcr.RepositoryException
deleteWorkspace
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public javax.jcr.lock.LockManager getLockManager() throws javax.jcr.RepositoryException
getLockManager
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
public javax.jcr.version.VersionManager getVersionManager() throws javax.jcr.RepositoryException
getVersionManager
in interface javax.jcr.Workspace
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.