|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.WorkspaceImpl
A WorkspaceImpl
...
Field Summary | |
protected HierarchyManagerImpl |
hierMgr
The hierarchy mgr that reflects persistent state only (i.e. |
protected LockManager |
lockMgr
The LockManager for this Workspace |
protected ObservationManagerImpl |
obsMgr
The ObservationManager instance for this session. |
protected QueryManagerImpl |
queryManager
The QueryManager for this Workspace . |
protected RepositoryImpl |
rep
The repository that created this workspace instance |
protected SessionImpl |
session
the session that was used to acquire this Workspace |
protected TransactionalItemStateManager |
stateMgr
The persistent state mgr associated with the workspace represented by this Workspace instance. |
protected WorkspaceConfig |
wspConfig
The configuration of this Workspace |
Constructor Summary | |
protected |
WorkspaceImpl(WorkspaceConfig wspConfig,
SharedItemStateManager stateMgr,
RepositoryImpl rep,
SessionImpl session)
Protected constructor. |
Method Summary | |
void |
clone(String srcWorkspace,
String srcAbsPath,
String destAbsPath,
boolean removeExisting)
|
void |
copy(String srcAbsPath,
String destAbsPath)
|
void |
copy(String srcWorkspace,
String srcAbsPath,
String destAbsPath)
|
void |
createWorkspace(String workspaceName)
Creates a workspace with the given name. |
String[] |
getAccessibleWorkspaceNames()
|
WorkspaceConfig |
getConfig()
Returns the configuration of this workspace. |
HierarchyManager |
getHierarchyManager()
The hierarchy manager that reflects workspace state only (i.e. |
ContentHandler |
getImportContentHandler(String parentAbsPath,
int uuidBehavior)
|
TransactionalItemStateManager |
getItemStateManager()
Returns the item state manager associated with the workspace represented by this WorkspaceImpl instance. |
LockManager |
getLockManager()
Return the lock manager for this workspace. |
String |
getName()
|
NamespaceRegistry |
getNamespaceRegistry()
|
NodeTypeManager |
getNodeTypeManager()
|
ObservationManager |
getObservationManager()
|
QueryManager |
getQueryManager()
|
Session |
getSession()
|
void |
importXML(String parentAbsPath,
InputStream in,
int uuidBehavior)
|
void |
move(String srcAbsPath,
String destAbsPath)
|
void |
restore(Version[] versions,
boolean removeExisting)
|
void |
sanityCheck()
Performs a sanity check on this workspace and the associated session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final WorkspaceConfig wspConfig
Workspace
protected final RepositoryImpl rep
protected final TransactionalItemStateManager stateMgr
Workspace
instance.
protected final HierarchyManagerImpl hierMgr
protected ObservationManagerImpl obsMgr
ObservationManager
instance for this session.
protected QueryManagerImpl queryManager
QueryManager
for this Workspace
.
protected final SessionImpl session
Workspace
protected LockManager lockMgr
LockManager
for this Workspace
Constructor Detail |
protected WorkspaceImpl(WorkspaceConfig wspConfig, SharedItemStateManager stateMgr, RepositoryImpl rep, SessionImpl session)
wspConfig
- The workspace configurationstateMgr
- The shared item state managerrep
- The repositorysession
- The sessionMethod Detail |
public HierarchyManager getHierarchyManager()
public TransactionalItemStateManager getItemStateManager()
WorkspaceImpl
instance.
public void sanityCheck() throws RepositoryException
RepositoryException
- if this workspace has been rendered invalid
for some reasonpublic void createWorkspace(String workspaceName) throws AccessDeniedException, RepositoryException
workspaceName
- name of the new workspace
AccessDeniedException
- if the current session is not allowed to
create the workspace
RepositoryException
- if a workspace with the given name
already exists or if another error occursgetAccessibleWorkspaceNames()
public WorkspaceConfig getConfig()
public LockManager getLockManager() throws RepositoryException
RepositoryException
- if an error occurspublic String getName()
getName
in interface Workspace
public Session getSession()
getSession
in interface Workspace
public NamespaceRegistry getNamespaceRegistry() throws RepositoryException
getNamespaceRegistry
in interface Workspace
RepositoryException
public NodeTypeManager getNodeTypeManager() throws RepositoryException
getNodeTypeManager
in interface Workspace
RepositoryException
public void clone(String srcWorkspace, String srcAbsPath, String destAbsPath, boolean removeExisting) throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
clone
in interface Workspace
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
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
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
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
public ObservationManager getObservationManager() throws UnsupportedRepositoryOperationException, RepositoryException
getObservationManager
in interface Workspace
UnsupportedRepositoryOperationException
RepositoryException
public QueryManager getQueryManager() throws RepositoryException
getQueryManager
in interface Workspace
RepositoryException
public void restore(Version[] versions, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
restore
in interface Workspace
ItemExistsException
UnsupportedRepositoryOperationException
VersionException
LockException
InvalidItemStateException
RepositoryException
public String[] getAccessibleWorkspaceNames() throws RepositoryException
getAccessibleWorkspaceNames
in interface Workspace
RepositoryException
public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException
getImportContentHandler
in interface Workspace
PathNotFoundException
ConstraintViolationException
VersionException
LockException
RepositoryException
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |