public class WorkspaceImpl extends Object implements JackrabbitWorkspace
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 |
---|
WorkspaceImpl(SessionContext sessionContext) |
public WorkspaceImpl(SessionContext sessionContext)
@Nonnull public Session getSession()
getSession
in interface Workspace
public void copy(String srcAbsPath, String destAbsPath) throws RepositoryException
copy
in interface Workspace
RepositoryException
public void copy(String srcWorkspace, String srcAbsPath, String destAbsPath) throws RepositoryException
copy
in interface Workspace
RepositoryException
public void clone(String srcWorkspace, String srcAbsPath, String destAbsPath, boolean removeExisting) throws RepositoryException
clone
in interface Workspace
RepositoryException
public void move(String srcAbsPath, String destAbsPath) throws RepositoryException
move
in interface Workspace
RepositoryException
public void restore(Version[] versions, boolean removeExisting) throws RepositoryException
restore
in interface Workspace
RepositoryException
public LockManagerImpl getLockManager() throws UnsupportedRepositoryOperationException
getLockManager
in interface Workspace
UnsupportedRepositoryOperationException
public QueryManager getQueryManager() throws RepositoryException
getQueryManager
in interface Workspace
RepositoryException
public NamespaceRegistry getNamespaceRegistry()
getNamespaceRegistry
in interface Workspace
public org.apache.jackrabbit.oak.plugins.nodetype.write.ReadWriteNodeTypeManager getNodeTypeManager()
getNodeTypeManager
in interface Workspace
public ObservationManager getObservationManager() throws RepositoryException
getObservationManager
in interface Workspace
RepositoryException
public VersionManager getVersionManager() throws RepositoryException
getVersionManager
in interface Workspace
RepositoryException
public String[] getAccessibleWorkspaceNames() throws RepositoryException
getAccessibleWorkspaceNames
in interface Workspace
RepositoryException
public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws RepositoryException
getImportContentHandler
in interface Workspace
RepositoryException
public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, RepositoryException
importXML
in interface Workspace
IOException
RepositoryException
public void createWorkspace(String name) throws RepositoryException
createWorkspace
in interface Workspace
createWorkspace
in interface JackrabbitWorkspace
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 void createWorkspace(String workspaceName, InputSource workspaceTemplate) throws RepositoryException
createWorkspace
in interface JackrabbitWorkspace
RepositoryException
public PrivilegeManager getPrivilegeManager() throws RepositoryException
getPrivilegeManager
in interface JackrabbitWorkspace
RepositoryException
JackrabbitWorkspace.getPrivilegeManager()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.