Package org.apache.jackrabbit.jcr2spi
Class JcrVersionManager
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.JcrVersionManager
-
- All Implemented Interfaces:
VersionManager
public class JcrVersionManager extends Object implements VersionManager
VersionManagerImpl
...
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JcrVersionManager(SessionImpl session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelMerge(String absPath, Version version)
Version
checkin(String absPath)
void
checkout(String absPath)
Version
checkpoint(String absPath)
Node
createActivity(String title)
Node
createConfiguration(String absPath)
void
doneMerge(String absPath, Version version)
Node
getActivity()
Version
getBaseVersion(String absPath)
VersionHistory
getVersionHistory(String absPath)
boolean
isCheckedOut(String absPath)
NodeIterator
merge(String absPath, String srcWorkspace, boolean bestEffort)
NodeIterator
merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow)
NodeIterator
merge(Node activityNode)
void
removeActivity(Node activityNode)
void
restore(String absPath, String versionName, boolean removeExisting)
void
restore(String absPath, Version version, boolean removeExisting)
void
restore(Version[] versions, boolean removeExisting)
void
restore(Version version, boolean removeExisting)
void
restoreByLabel(String absPath, String versionLabel, boolean removeExisting)
Node
setActivity(Node activity)
-
-
-
Constructor Detail
-
JcrVersionManager
protected JcrVersionManager(SessionImpl session)
-
-
Method Detail
-
checkin
public Version checkin(String absPath) throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException
- Specified by:
checkin
in interfaceVersionManager
- Throws:
VersionException
UnsupportedRepositoryOperationException
InvalidItemStateException
LockException
RepositoryException
- See Also:
VersionManager.checkin(String)
-
checkout
public void checkout(String absPath) throws UnsupportedRepositoryOperationException, LockException, RepositoryException
- Specified by:
checkout
in interfaceVersionManager
- Throws:
UnsupportedRepositoryOperationException
LockException
RepositoryException
- See Also:
VersionManager.checkout(String)
-
checkpoint
public Version checkpoint(String absPath) throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException
- Specified by:
checkpoint
in interfaceVersionManager
- Throws:
VersionException
UnsupportedRepositoryOperationException
InvalidItemStateException
LockException
RepositoryException
- See Also:
VersionManager.checkpoint(String)
-
isCheckedOut
public boolean isCheckedOut(String absPath) throws RepositoryException
- Specified by:
isCheckedOut
in interfaceVersionManager
- Throws:
RepositoryException
- See Also:
VersionManager.isCheckedOut(String)
-
getVersionHistory
public VersionHistory getVersionHistory(String absPath) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
getVersionHistory
in interfaceVersionManager
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.getVersionHistory(String)
-
getBaseVersion
public Version getBaseVersion(String absPath) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
getBaseVersion
in interfaceVersionManager
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.getBaseVersion(String)
-
restore
public void restore(Version[] versions, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
restore
in interfaceVersionManager
- Throws:
ItemExistsException
UnsupportedRepositoryOperationException
VersionException
LockException
InvalidItemStateException
RepositoryException
- See Also:
VersionManager.restore(Version[], boolean)
-
restore
public void restore(String absPath, String versionName, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
restore
in interfaceVersionManager
- Throws:
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
- See Also:
VersionManager.restore(String, String, boolean)
-
restore
public void restore(Version version, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, RepositoryException
- Specified by:
restore
in interfaceVersionManager
- Throws:
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
RepositoryException
- See Also:
VersionManager.restore(Version, boolean)
-
restore
public void restore(String absPath, Version version, boolean removeExisting) throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
restore
in interfaceVersionManager
- Throws:
PathNotFoundException
ItemExistsException
VersionException
ConstraintViolationException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
- See Also:
VersionManager.restore(String, Version, boolean)
-
restoreByLabel
public void restoreByLabel(String absPath, String versionLabel, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
-
merge
public NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
merge
in interfaceVersionManager
- Throws:
NoSuchWorkspaceException
AccessDeniedException
MergeException
LockException
InvalidItemStateException
RepositoryException
- See Also:
VersionManager.merge(String, String, boolean)
-
merge
public NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
merge
in interfaceVersionManager
- Throws:
NoSuchWorkspaceException
AccessDeniedException
MergeException
LockException
InvalidItemStateException
RepositoryException
- See Also:
VersionManager.merge(String, String, boolean, boolean)
-
doneMerge
public void doneMerge(String absPath, Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
doneMerge
in interfaceVersionManager
- Throws:
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.doneMerge(String, Version)
-
cancelMerge
public void cancelMerge(String absPath, Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
cancelMerge
in interfaceVersionManager
- Throws:
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.cancelMerge(String, Version)
-
createConfiguration
public Node createConfiguration(String absPath) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
createConfiguration
in interfaceVersionManager
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.createConfiguration(String)
-
setActivity
public Node setActivity(Node activity) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
setActivity
in interfaceVersionManager
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.setActivity(Node)
-
getActivity
public Node getActivity() throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
getActivity
in interfaceVersionManager
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.getActivity()
-
createActivity
public Node createActivity(String title) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
createActivity
in interfaceVersionManager
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.createActivity(String)
-
removeActivity
public void removeActivity(Node activityNode) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
removeActivity
in interfaceVersionManager
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
VersionManager.removeActivity(Node)
-
merge
public NodeIterator merge(Node activityNode) throws VersionException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
merge
in interfaceVersionManager
- Throws:
VersionException
AccessDeniedException
MergeException
LockException
InvalidItemStateException
RepositoryException
- See Also:
VersionManager.merge(Node)
-
-