|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.WorkspaceManager
public class WorkspaceManager
Utility class that decouples SessionImpl
from the internal
workspace handling details of RepositoryImpl
.
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getDefaultWorkspaceName()
public String[] getWorkspaceNames()
public void createWorkspace(String workspaceName) throws RepositoryException
workspaceName
- name of the new workspace
RepositoryException
- 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 workspace
RepositoryException
- if a workspace with the given name already
exists or if another error occurspublic SharedItemStateManager getWorkspaceStateManager(String workspaceName) throws NoSuchWorkspaceException, RepositoryException
NoSuchWorkspaceException
RepositoryException
public ObservationDispatcher getObservationDispatcher(String workspaceName) throws NoSuchWorkspaceException, RepositoryException
NoSuchWorkspaceException
RepositoryException
public SessionImpl createSession(Subject subject, String workspaceName) throws RepositoryException
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |