Class WorkspaceImpl
java.lang.Object
org.apache.jackrabbit.oak.jcr.session.WorkspaceImpl
- All Implemented Interfaces:
Workspace
,JackrabbitWorkspace
TODO document
-
Field Summary
Fields inherited from interface javax.jcr.Workspace
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
createWorkspace
(String name) Creates a workspace with the given name.void
createWorkspace
(String name, String srcWorkspace) void
createWorkspace
(String workspaceName, InputSource workspaceTemplate) Creates a workspace with the given name and a workspace configuration template.void
deleteWorkspace
(String name) String[]
getImportContentHandler
(String parentAbsPath, int uuidBehavior) getName()
Returns the privilege manager.@NotNull Session
void
importXML
(String parentAbsPath, InputStream in, int uuidBehavior) @NotNull VersionManagerImpl
void
void
-
Constructor Details
-
WorkspaceImpl
-
-
Method Details
-
getSession
- Specified by:
getSession
in interfaceWorkspace
-
getName
-
copy
- Specified by:
copy
in interfaceWorkspace
- Throws:
RepositoryException
-
copy
public void copy(String srcWorkspace, String srcAbsPath, String destAbsPath) throws RepositoryException - Specified by:
copy
in interfaceWorkspace
- Throws:
RepositoryException
-
clone
public void clone(String srcWorkspace, String srcAbsPath, String destAbsPath, boolean removeExisting) throws RepositoryException - Specified by:
clone
in interfaceWorkspace
- Throws:
RepositoryException
-
move
- Specified by:
move
in interfaceWorkspace
- Throws:
RepositoryException
-
restore
- Specified by:
restore
in interfaceWorkspace
- Throws:
RepositoryException
-
getLockManager
- Specified by:
getLockManager
in interfaceWorkspace
- Throws:
UnsupportedRepositoryOperationException
-
getQueryManager
- Specified by:
getQueryManager
in interfaceWorkspace
- Throws:
RepositoryException
-
getNamespaceRegistry
- Specified by:
getNamespaceRegistry
in interfaceWorkspace
-
getNodeTypeManager
- Specified by:
getNodeTypeManager
in interfaceWorkspace
-
getObservationManager
- Specified by:
getObservationManager
in interfaceWorkspace
- Throws:
RepositoryException
-
getVersionManager
- Specified by:
getVersionManager
in interfaceWorkspace
- Throws:
RepositoryException
-
getAccessibleWorkspaceNames
- Specified by:
getAccessibleWorkspaceNames
in interfaceWorkspace
- Throws:
RepositoryException
-
getImportContentHandler
public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws RepositoryException - Specified by:
getImportContentHandler
in interfaceWorkspace
- Throws:
RepositoryException
-
importXML
public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, RepositoryException - Specified by:
importXML
in interfaceWorkspace
- Throws:
IOException
RepositoryException
-
createWorkspace
Description copied from interface:JackrabbitWorkspace
Creates a workspace with the given name.- Specified by:
createWorkspace
in interfaceJackrabbitWorkspace
- Specified by:
createWorkspace
in interfaceWorkspace
- Parameters:
name
- name of the new workspace- Throws:
AccessDeniedException
- if the current session is not allowed to create the workspaceRepositoryException
- if a workspace with the given name already exists or if another error occurs- See Also:
-
createWorkspace
- Specified by:
createWorkspace
in interfaceWorkspace
- Throws:
RepositoryException
-
deleteWorkspace
- Specified by:
deleteWorkspace
in interfaceWorkspace
- Throws:
RepositoryException
-
createWorkspace
public void createWorkspace(String workspaceName, InputSource workspaceTemplate) throws RepositoryException Description copied from interface:JackrabbitWorkspace
Creates a workspace with the given name and a workspace configuration template.- Specified by:
createWorkspace
in interfaceJackrabbitWorkspace
- Parameters:
workspaceName
- name of the new workspaceworkspaceTemplate
- the configuration template of the new workspace- Throws:
AccessDeniedException
- if the current session is not allowed to create the workspaceRepositoryException
- if a workspace with the given name already exists or if another error occurs- See Also:
-
getPrivilegeManager
Description copied from interface:JackrabbitWorkspace
Returns the privilege manager.- Specified by:
getPrivilegeManager
in interfaceJackrabbitWorkspace
- Returns:
- the privilege manager.
- Throws:
RepositoryException
- If an error occurs.- See Also:
-
internalGetVersionManager
-