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