|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.priha.core.WorkspaceImpl
public class WorkspaceImpl
Implements a JCR Workspace. This class mostly functions as a facade for ProviderManager, which takes care of the actual repository management.
Constructor Summary | |
---|---|
WorkspaceImpl(SessionImpl session,
java.lang.String name,
ProviderManager mgr)
Create a new Workspace instance. |
Method Summary | |
---|---|
void |
clone(java.lang.String srcWorkspace,
java.lang.String srcAbsPath,
java.lang.String destAbsPath,
boolean removeExisting)
|
protected void |
copy(SessionImpl srcSession,
java.lang.String srcAbsPath,
java.lang.String destAbsPath,
boolean preserveUUIDs)
Performs the actual copy, but does not save. |
void |
copy(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
|
void |
copy(java.lang.String srcWorkspace,
java.lang.String srcAbsPath,
java.lang.String destAbsPath)
|
PropertyImpl |
createPropertyImpl(Path path)
Creates a new property implementation without a property definition. |
java.lang.String[] |
getAccessibleWorkspaceNames()
|
org.xml.sax.ContentHandler |
getImportContentHandler(java.lang.String parentAbsPath,
int uuidBehavior)
|
java.lang.String |
getName()
|
NamespaceRegistryImpl |
getNamespaceRegistry()
|
QNodeTypeManager.Impl |
getNodeTypeManager()
|
ObservationManagerImpl.Impl |
getObservationManager()
Unsupported at the moment. |
PrihaQueryManager |
getQueryManager()
|
SessionImpl |
getSession()
|
void |
importXML(java.lang.String parentAbsPath,
java.io.InputStream in,
int uuidBehavior)
|
protected boolean |
isCheckedIn(NodeImpl n)
Checks if the node or any of its parents are checked in. |
void |
logout()
Performs a logout; to be called by SessionImpl only. |
void |
move(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
Implemented simply by starting a new Session, which then performs the copy, and then calling save() on it. |
boolean |
nodeExists(Path path)
Checks directly from the repository if an item exists. |
void |
restore(Version[] versions,
boolean removeExisting)
Unsupported at the moment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkspaceImpl(SessionImpl session, java.lang.String name, ProviderManager mgr) throws RepositoryException
session
- The SessionImpl to which this Workspace is tied toname
- The name of the Workspacemgr
- The ProviderManager instance which owns the repository.
RepositoryException
- If a NodeTypeManager cannot be instantiated.Method Detail |
---|
public PropertyImpl createPropertyImpl(Path path) throws RepositoryException
path
-
RepositoryException
public void clone(java.lang.String srcWorkspace, java.lang.String srcAbsPath, java.lang.String destAbsPath, boolean removeExisting) throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
public void copy(java.lang.String srcAbsPath, java.lang.String destAbsPath) throws ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
public void copy(java.lang.String srcWorkspace, java.lang.String srcAbsPath, java.lang.String destAbsPath) throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
protected boolean isCheckedIn(NodeImpl n) throws RepositoryException
n
-
RepositoryException
protected void copy(SessionImpl srcSession, java.lang.String srcAbsPath, java.lang.String destAbsPath, boolean preserveUUIDs) throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
srcSession
- srcAbsPath
- destAbsPath
-
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
public java.lang.String[] getAccessibleWorkspaceNames() throws RepositoryException
RepositoryException
public org.xml.sax.ContentHandler getImportContentHandler(java.lang.String parentAbsPath, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, AccessDeniedException, RepositoryException
PathNotFoundException
ConstraintViolationException
VersionException
LockException
AccessDeniedException
RepositoryException
public java.lang.String getName()
public NamespaceRegistryImpl getNamespaceRegistry() throws RepositoryException
RepositoryException
public QNodeTypeManager.Impl getNodeTypeManager() throws RepositoryException
RepositoryException
public ObservationManagerImpl.Impl getObservationManager() throws UnsupportedRepositoryOperationException, RepositoryException
UnsupportedRepositoryOperationException
RepositoryException
public PrihaQueryManager getQueryManager() throws RepositoryException
RepositoryException
public SessionImpl getSession()
public void importXML(java.lang.String parentAbsPath, java.io.InputStream in, int uuidBehavior) throws java.io.IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, InvalidSerializedDataException, LockException, AccessDeniedException, RepositoryException
java.io.IOException
PathNotFoundException
ItemExistsException
ConstraintViolationException
InvalidSerializedDataException
LockException
AccessDeniedException
RepositoryException
public void move(java.lang.String srcAbsPath, java.lang.String destAbsPath) throws ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
public void restore(Version[] versions, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
ItemExistsException
UnsupportedRepositoryOperationException
VersionException
LockException
InvalidItemStateException
RepositoryException
public void logout()
public boolean nodeExists(Path path) throws RepositoryException
path
-
InvalidPathException
RepositoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |