public class WorkspaceManager extends Object
SessionImpl
from the internal
workspace handling details of RepositoryImpl
.Modifier and Type | Method and Description |
---|---|
SessionImpl |
createSession(Subject subject,
String workspaceName) |
void |
createWorkspace(String workspaceName)
Creates a workspace with the given name.
|
void |
createWorkspace(String workspaceName,
InputSource configTemplate)
Creates a workspace with the given name and a workspace configuration
template.
|
String |
getDefaultWorkspaceName()
Returns the name of the default workspace.
|
ObservationDispatcher |
getObservationDispatcher(String workspaceName) |
String[] |
getWorkspaceNames()
Returns the names of all the available workspaces.
|
SharedItemStateManager |
getWorkspaceStateManager(String workspaceName) |
public String getDefaultWorkspaceName()
public String[] getWorkspaceNames()
public void createWorkspace(String workspaceName) throws javax.jcr.RepositoryException
workspaceName
- name of the new workspacejavax.jcr.RepositoryException
- if a workspace with the given name
already exists or if another error occurspublic void createWorkspace(String workspaceName, InputSource configTemplate) throws javax.jcr.RepositoryException
workspaceName
- name of the new workspaceconfigTemplate
- the configuration template of the new workspacejavax.jcr.RepositoryException
- if a workspace with the given name already
exists or if another error occurspublic SharedItemStateManager getWorkspaceStateManager(String workspaceName) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.RepositoryException
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException
public ObservationDispatcher getObservationDispatcher(String workspaceName) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.RepositoryException
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException
public SessionImpl createSession(Subject subject, String workspaceName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.