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 RepositoryException
workspaceName
- name of the new workspaceRepositoryException
- if a workspace with the given name
already exists or if another error occurspublic void createWorkspace(String workspaceName, InputSource configTemplate) throws RepositoryException
workspaceName
- name of the new workspaceconfigTemplate
- the configuration template of the new workspaceRepositoryException
- if a workspace with the given name already
exists or if another error occurspublic SharedItemStateManager getWorkspaceStateManager(String workspaceName) throws NoSuchWorkspaceException, RepositoryException
public ObservationDispatcher getObservationDispatcher(String workspaceName) throws NoSuchWorkspaceException, RepositoryException
public SessionImpl createSession(Subject subject, String workspaceName) throws RepositoryException
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.