public class ClientWorkspace extends ClientObject implements 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(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) |
LockManager |
getLockManager() |
String |
getName() |
NamespaceRegistry |
getNamespaceRegistry() |
NodeTypeManager |
getNodeTypeManager() |
ObservationManager |
getObservationManager() |
QueryManager |
getQueryManager() |
Session |
getSession()
Returns the current session without contacting the remote workspace.
|
VersionManager |
getVersionManager() |
void |
importXML(String path,
InputStream xml,
int uuidBehaviour) |
void |
move(String from,
String to) |
void |
restore(Version[] versions,
boolean removeExisting) |
getFactory, getItem, getNode, getNodeTypeArray
public ClientWorkspace(Session session, RemoteWorkspace remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote workspacefactory
- local adapter factorypublic Session getSession()
getSession
in interface Workspace
public void copy(String from, String to) throws RepositoryException
copy
in interface Workspace
RepositoryException
public void copy(String workspace, String from, String to) throws RepositoryException
copy
in interface Workspace
RepositoryException
public void move(String from, String to) throws RepositoryException
move
in interface Workspace
RepositoryException
public QueryManager getQueryManager() throws RepositoryException
getQueryManager
in interface Workspace
RepositoryException
public NamespaceRegistry getNamespaceRegistry() throws RepositoryException
getNamespaceRegistry
in interface Workspace
RepositoryException
public NodeTypeManager getNodeTypeManager() throws RepositoryException
getNodeTypeManager
in interface Workspace
RepositoryException
public ObservationManager getObservationManager() throws RepositoryException
getObservationManager
in interface Workspace
RepositoryException
public void clone(String workspace, String src, String dst, boolean removeExisting) throws RepositoryException
clone
in interface Workspace
RepositoryException
public String[] getAccessibleWorkspaceNames() throws RepositoryException
getAccessibleWorkspaceNames
in interface Workspace
RepositoryException
public ContentHandler getImportContentHandler(String path, int mode) throws RepositoryException
getImportContentHandler
in interface Workspace
RepositoryException
public void importXML(String path, InputStream xml, int uuidBehaviour) throws IOException, RepositoryException
importXML
in interface Workspace
IOException
RepositoryException
public void restore(Version[] versions, boolean removeExisting) throws RepositoryException
restore
in interface Workspace
RepositoryException
public void createWorkspace(String name) throws RepositoryException
createWorkspace
in interface Workspace
RepositoryException
public void createWorkspace(String name, String srcWorkspace) throws RepositoryException
createWorkspace
in interface Workspace
RepositoryException
public void deleteWorkspace(String name) throws RepositoryException
deleteWorkspace
in interface Workspace
RepositoryException
public LockManager getLockManager() throws RepositoryException
getLockManager
in interface Workspace
RepositoryException
public VersionManager getVersionManager() throws RepositoryException
getVersionManager
in interface Workspace
RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.