public class WorkspaceImpl extends Object implements Workspace, ManagerProvider
WorkspaceImpl
...Modifier and Type | Field and Description |
---|---|
protected SessionImpl |
session
The Session that created this
Workspace object. |
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(String name,
SessionImpl session,
RepositoryConfig config,
SessionInfo sessionInfo) |
protected final SessionImpl session
Workspace
object.public WorkspaceImpl(String name, SessionImpl session, RepositoryConfig config, SessionInfo sessionInfo) throws RepositoryException
RepositoryException
public Session getSession()
getSession
in interface Workspace
Workspace.getSession()
public String getName()
getName
in interface Workspace
Workspace.getName()
public void copy(String srcAbsPath, String destAbsPath) throws ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
copy
in interface Workspace
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
Workspace.copy(String, String)
public void copy(String srcWorkspace, String srcAbsPath, String destAbsPath) throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
copy
in interface Workspace
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
Workspace.copy(String, String, String)
public void clone(String srcWorkspace, String srcAbsPath, String destAbsPath, boolean removeExisting) throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
public void move(String srcAbsPath, String destAbsPath) throws ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
move
in interface Workspace
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
Workspace.move(String, String)
public void restore(Version[] versions, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
restore
in interface Workspace
ItemExistsException
UnsupportedRepositoryOperationException
VersionException
LockException
InvalidItemStateException
RepositoryException
Workspace.restore(Version[], boolean)
public QueryManager getQueryManager() throws RepositoryException
getQueryManager
in interface Workspace
RepositoryException
Workspace.getQueryManager()
public NamespaceRegistry getNamespaceRegistry() throws RepositoryException
getNamespaceRegistry
in interface Workspace
RepositoryException
Workspace.getNamespaceRegistry()
public NodeTypeManager getNodeTypeManager() throws RepositoryException
getNodeTypeManager
in interface Workspace
RepositoryException
Workspace.getNodeTypeManager()
public ObservationManager getObservationManager() throws UnsupportedRepositoryOperationException, RepositoryException
getObservationManager
in interface Workspace
UnsupportedRepositoryOperationException
RepositoryException
Workspace.getObservationManager()
public String[] getAccessibleWorkspaceNames() throws RepositoryException
getAccessibleWorkspaceNames
in interface Workspace
RepositoryException
Workspace.getAccessibleWorkspaceNames()
public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException
getImportContentHandler
in interface Workspace
PathNotFoundException
ConstraintViolationException
VersionException
LockException
RepositoryException
Workspace.getImportContentHandler(String, int)
public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, InvalidSerializedDataException, LockException, RepositoryException
importXML
in interface Workspace
IOException
PathNotFoundException
ItemExistsException
ConstraintViolationException
InvalidSerializedDataException
LockException
RepositoryException
Workspace.importXML(String, InputStream, int)
public void createWorkspace(String name) throws RepositoryException
createWorkspace
in interface Workspace
RepositoryException
Workspace.createWorkspace(String)
public void createWorkspace(String name, String srcWorkspace) throws RepositoryException
createWorkspace
in interface Workspace
RepositoryException
Workspace.createWorkspace(String, String)
public void deleteWorkspace(String name) throws RepositoryException
deleteWorkspace
in interface Workspace
RepositoryException
Workspace.deleteWorkspace(String)
public LockManager getLockManager() throws RepositoryException
getLockManager
in interface Workspace
RepositoryException
Workspace.getLockManager()
public VersionManager getVersionManager() throws RepositoryException
getVersionManager
in interface Workspace
RepositoryException
Workspace.getVersionManager()
public NamePathResolver getNamePathResolver()
getNamePathResolver
in interface ManagerProvider
ManagerProvider.getNamePathResolver()
public NameResolver getNameResolver()
getNameResolver
in interface ManagerProvider
ManagerProvider.getNameResolver()
public PathResolver getPathResolver()
getPathResolver
in interface ManagerProvider
ManagerProvider.getPathResolver()
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface ManagerProvider
ManagerProvider.getNamespaceResolver()
public HierarchyManager getHierarchyManager()
getHierarchyManager
in interface ManagerProvider
ManagerProvider.getHierarchyManager()
public AccessManager getAccessManager()
getAccessManager
in interface ManagerProvider
ManagerProvider.getAccessManager()
public LockStateManager getLockStateManager()
ManagerProvider
LockStateManager
associated with this
ManagerProvider
.getLockStateManager
in interface ManagerProvider
LockStateManager
associated with this
ManagerProvider
ManagerProvider.getLockStateManager()
public VersionManager getVersionStateManager()
ManagerProvider
VersionManager
associated with this
ManagerProvider
.getVersionStateManager
in interface ManagerProvider
VersionManager
associated with this
ManagerProvider
ManagerProvider.getVersionStateManager()
public ItemDefinitionProvider getItemDefinitionProvider()
getItemDefinitionProvider
in interface ManagerProvider
ManagerProvider.getItemDefinitionProvider()
public NodeTypeDefinitionProvider getNodeTypeDefinitionProvider()
getNodeTypeDefinitionProvider
in interface ManagerProvider
ManagerProvider.getNodeTypeDefinitionProvider()
public EffectiveNodeTypeProvider getEffectiveNodeTypeProvider()
getEffectiveNodeTypeProvider
in interface ManagerProvider
ManagerProvider.getEffectiveNodeTypeProvider()
public ValueFactory getJcrValueFactory() throws RepositoryException
ManagerProvider
Session.getValueFactory()
but omits the check, if this repository
is really level 2 compliant. Therefore, this method may be used for
internal functionality only, that require creation and conversion of
JCR values.getJcrValueFactory
in interface ManagerProvider
RepositoryException
ManagerProvider.getJcrValueFactory()
public QValueFactory getQValueFactory() throws RepositoryException
getQValueFactory
in interface ManagerProvider
RepositoryException
ManagerProvider.getQValueFactory()
public AccessControlProvider getAccessControlProvider() throws RepositoryException
getAccessControlProvider
in interface ManagerProvider
RepositoryException
()
protected WorkspaceManager createManager(RepositoryConfig config, SessionInfo sessionInfo) throws RepositoryException
config
- the RepositoryConfigurationsessionInfo
- the SessionInfo used to create this instance.RepositoryException
- If an error occursprotected LockStateManager createLockManager(WorkspaceManager wspManager, ItemManager itemManager)
LockManager
. May be overridden by subclasses.wspManager
- the workspace manager.itemManager
- the item manager.LockStateManager
instance.protected VersionManager createVersionManager(WorkspaceManager wspManager)
VersionManager
. May be overridden by subclasses.wspManager
- the workspace manager.VersionManager
instance.protected ObservationManager createObservationManager(NamePathResolver resolver, NodeTypeRegistry ntRegistry) throws RepositoryException
ObservationManager
. May be overridden by subclasses.resolver
- the namespace resolver.ntRegistry
- the node type registry.ObservationManager
instanceRepositoryException
- If an error occurs.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.