Interface VersionManager
-
- All Known Implementing Classes:
VersionManagerImpl
public interface VersionManagerVersionManager...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel, boolean moveLabel)NodeEntrycheckin(NodeState nodeState)voidcheckIsCheckedOut(NodeState nodeState)voidcheckout(NodeState nodeState)voidcheckout(NodeState nodeState, NodeId activityId)NodeEntrycheckpoint(NodeState nodeState)NodeEntrycheckpoint(NodeState nodeState, NodeId activityId)NodeEntrycreateActivity(String title)NodeEntrycreateConfiguration(NodeState nodeState)NodeEntrygetVersionableNodeEntry(NodeState versionState)NodeEntrygetVersionHistoryEntry(NodeState versionableState)booleanisCheckedOut(NodeState nodeState)Iterator<NodeId>merge(NodeState nodeState, String workspaceName, boolean bestEffort)Iterator<NodeId>merge(NodeState nodeState, String workspaceName, boolean bestEffort, boolean isShallow)Iterator<NodeId>mergeActivity(NodeState activityState)voidremoveActivity(NodeState activityState)voidremoveVersion(NodeState versionHistoryState, NodeState versionState)voidremoveVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel)voidresolveMergeConflict(NodeState nodeState, NodeState versionState, boolean done)voidrestore(NodeState[] versionStates, boolean removeExisting)voidrestore(NodeState nodeState, Path relativePath, NodeState versionState, boolean removeExisting)
-
-
-
Method Detail
-
checkin
NodeEntry checkin(NodeState nodeState) throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException
- Parameters:
nodeState-- Returns:
NodeEntryof newly created version- Throws:
VersionExceptionUnsupportedRepositoryOperationExceptionInvalidItemStateExceptionLockExceptionRepositoryException- See Also:
Node.checkin()
-
checkout
void checkout(NodeState nodeState) throws UnsupportedRepositoryOperationException, LockException, RepositoryException
- Parameters:
nodeState-- Throws:
UnsupportedRepositoryOperationExceptionLockExceptionRepositoryException- See Also:
Node.checkout()
-
checkout
void checkout(NodeState nodeState, NodeId activityId) throws RepositoryException
- Parameters:
nodeState-activityId-- Throws:
RepositoryException
-
checkpoint
NodeEntry checkpoint(NodeState nodeState) throws RepositoryException
- Parameters:
nodeState-- Throws:
RepositoryException- See Also:
VersionManager.checkpoint(String)
-
checkpoint
NodeEntry checkpoint(NodeState nodeState, NodeId activityId) throws RepositoryException
- Parameters:
nodeState-- Throws:
RepositoryException- See Also:
VersionManager.checkpoint(String)
-
isCheckedOut
boolean isCheckedOut(NodeState nodeState) throws RepositoryException
- Parameters:
nodeState-- Returns:
- Throws:
RepositoryException- See Also:
Node.isCheckedOut()
-
checkIsCheckedOut
void checkIsCheckedOut(NodeState nodeState) throws VersionException, RepositoryException
- Parameters:
nodeState-- Throws:
VersionException- If theNoderepresented by the givenNodeStateis checkedin.RepositoryException- If another error occurs.- See Also:
Node.isCheckedOut()
-
removeVersion
void removeVersion(NodeState versionHistoryState, NodeState versionState) throws ReferentialIntegrityException, AccessDeniedException, UnsupportedRepositoryOperationException, VersionException, RepositoryException
- Parameters:
versionHistoryState-versionState-- Throws:
ReferentialIntegrityExceptionAccessDeniedExceptionUnsupportedRepositoryOperationExceptionVersionExceptionRepositoryException- See Also:
VersionHistory.removeVersion(String)
-
addVersionLabel
void addVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel, boolean moveLabel) throws VersionException, RepositoryException
- Parameters:
versionHistoryState-versionState-qLabel-moveLabel-- Throws:
VersionExceptionRepositoryException- See Also:
VersionHistory.addVersionLabel(String, String, boolean)
-
removeVersionLabel
void removeVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel) throws VersionException, RepositoryException
- Parameters:
versionHistoryState-versionState-qLabel-- Throws:
VersionExceptionRepositoryException- See Also:
VersionHistory.removeVersionLabel(String)
-
restore
void restore(NodeState nodeState, Path relativePath, NodeState versionState, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
- Parameters:
nodeState-relativePath-versionState-removeExisting-- Throws:
VersionExceptionItemExistsExceptionUnsupportedRepositoryOperationExceptionLockExceptionInvalidItemStateExceptionRepositoryException- See Also:
Node.restore(String, boolean),Node.restore(Version, boolean),Node.restore(Version, String, boolean),Node.restoreByLabel(String, boolean)
-
restore
void restore(NodeState[] versionStates, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
- Parameters:
versionStates-removeExisting-- Throws:
ItemExistsExceptionUnsupportedRepositoryOperationExceptionVersionExceptionLockExceptionInvalidItemStateExceptionRepositoryException- See Also:
Workspace.restore(Version[], boolean)
-
merge
Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
- Parameters:
nodeState-workspaceName-bestEffort-- Returns:
- An Iterator over
NodeIds of allNodes that failed to be merged and need manual resolution by the user of the API. - Throws:
NoSuchWorkspaceExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryException- See Also:
resolveMergeConflict(NodeState,NodeState,boolean),Node.merge(String, boolean)
-
merge
Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort, boolean isShallow) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
- Parameters:
nodeState-workspaceName-bestEffort-isShallow-- Returns:
- An Iterator over
NodeIds of allNodes that failed to be merged and need manual resolution by the user of the API. - Throws:
NoSuchWorkspaceExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryException- See Also:
resolveMergeConflict(NodeState,NodeState,boolean),Node.merge(String, boolean)
-
resolveMergeConflict
void resolveMergeConflict(NodeState nodeState, NodeState versionState, boolean done) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
- Parameters:
nodeState-versionState-done-- Throws:
VersionExceptionInvalidItemStateExceptionUnsupportedRepositoryOperationExceptionRepositoryException- See Also:
Node.cancelMerge(Version),Node.doneMerge(Version)
-
createConfiguration
NodeEntry createConfiguration(NodeState nodeState) throws UnsupportedRepositoryOperationException, RepositoryException
- Parameters:
nodeState-- Returns:
- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException
-
createActivity
NodeEntry createActivity(String title) throws UnsupportedRepositoryOperationException, RepositoryException
- Parameters:
title-- Returns:
- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException
-
removeActivity
void removeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
- Parameters:
activityState-- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException
-
mergeActivity
Iterator<NodeId> mergeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
- Parameters:
activityState-- Returns:
- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException
-
getVersionableNodeEntry
NodeEntry getVersionableNodeEntry(NodeState versionState) throws RepositoryException
- Parameters:
versionState-- Returns:
- Throws:
RepositoryException
-
getVersionHistoryEntry
NodeEntry getVersionHistoryEntry(NodeState versionableState) throws RepositoryException
- Parameters:
versionableState-- Returns:
- Throws:
RepositoryException
-
-