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 protectedJcrVersionManager(SessionImpl session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelMerge(String absPath, Version version)Versioncheckin(String absPath)voidcheckout(String absPath)Versioncheckpoint(String absPath)NodecreateActivity(String title)NodecreateConfiguration(String absPath)voiddoneMerge(String absPath, Version version)NodegetActivity()VersiongetBaseVersion(String absPath)VersionHistorygetVersionHistory(String absPath)booleanisCheckedOut(String absPath)NodeIteratormerge(String absPath, String srcWorkspace, boolean bestEffort)NodeIteratormerge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow)NodeIteratormerge(Node activityNode)voidremoveActivity(Node activityNode)voidrestore(String absPath, String versionName, boolean removeExisting)voidrestore(String absPath, Version version, boolean removeExisting)voidrestore(Version[] versions, boolean removeExisting)voidrestore(Version version, boolean removeExisting)voidrestoreByLabel(String absPath, String versionLabel, boolean removeExisting)NodesetActivity(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:
checkinin interfaceVersionManager- Throws:
VersionExceptionUnsupportedRepositoryOperationExceptionInvalidItemStateExceptionLockExceptionRepositoryException- See Also:
VersionManager.checkin(String)
-
checkout
public void checkout(String absPath) throws UnsupportedRepositoryOperationException, LockException, RepositoryException
- Specified by:
checkoutin interfaceVersionManager- Throws:
UnsupportedRepositoryOperationExceptionLockExceptionRepositoryException- See Also:
VersionManager.checkout(String)
-
checkpoint
public Version checkpoint(String absPath) throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException
- Specified by:
checkpointin interfaceVersionManager- Throws:
VersionExceptionUnsupportedRepositoryOperationExceptionInvalidItemStateExceptionLockExceptionRepositoryException- See Also:
VersionManager.checkpoint(String)
-
isCheckedOut
public boolean isCheckedOut(String absPath) throws RepositoryException
- Specified by:
isCheckedOutin interfaceVersionManager- Throws:
RepositoryException- See Also:
VersionManager.isCheckedOut(String)
-
getVersionHistory
public VersionHistory getVersionHistory(String absPath) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
getVersionHistoryin interfaceVersionManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.getVersionHistory(String)
-
getBaseVersion
public Version getBaseVersion(String absPath) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
getBaseVersionin interfaceVersionManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.getBaseVersion(String)
-
restore
public void restore(Version[] versions, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
restorein interfaceVersionManager- Throws:
ItemExistsExceptionUnsupportedRepositoryOperationExceptionVersionExceptionLockExceptionInvalidItemStateExceptionRepositoryException- 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:
restorein interfaceVersionManager- Throws:
VersionExceptionItemExistsExceptionUnsupportedRepositoryOperationExceptionLockExceptionInvalidItemStateExceptionRepositoryException- See Also:
VersionManager.restore(String, String, boolean)
-
restore
public void restore(Version version, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, RepositoryException
- Specified by:
restorein interfaceVersionManager- Throws:
VersionExceptionItemExistsExceptionUnsupportedRepositoryOperationExceptionLockExceptionRepositoryException- 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:
restorein interfaceVersionManager- Throws:
PathNotFoundExceptionItemExistsExceptionVersionExceptionConstraintViolationExceptionUnsupportedRepositoryOperationExceptionLockExceptionInvalidItemStateExceptionRepositoryException- 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:
mergein interfaceVersionManager- Throws:
NoSuchWorkspaceExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryException- 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:
mergein interfaceVersionManager- Throws:
NoSuchWorkspaceExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryException- See Also:
VersionManager.merge(String, String, boolean, boolean)
-
doneMerge
public void doneMerge(String absPath, Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
doneMergein interfaceVersionManager- Throws:
VersionExceptionInvalidItemStateExceptionUnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.doneMerge(String, Version)
-
cancelMerge
public void cancelMerge(String absPath, Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
cancelMergein interfaceVersionManager- Throws:
VersionExceptionInvalidItemStateExceptionUnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.cancelMerge(String, Version)
-
createConfiguration
public Node createConfiguration(String absPath) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
createConfigurationin interfaceVersionManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.createConfiguration(String)
-
setActivity
public Node setActivity(Node activity) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
setActivityin interfaceVersionManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.setActivity(Node)
-
getActivity
public Node getActivity() throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
getActivityin interfaceVersionManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.getActivity()
-
createActivity
public Node createActivity(String title) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
createActivityin interfaceVersionManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.createActivity(String)
-
removeActivity
public void removeActivity(Node activityNode) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
removeActivityin interfaceVersionManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
VersionManager.removeActivity(Node)
-
merge
public NodeIterator merge(Node activityNode) throws VersionException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
mergein interfaceVersionManager- Throws:
VersionExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryException- See Also:
VersionManager.merge(Node)
-
-