public interface VersionManager
VersionManager...| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(NodeState versionHistoryState,
NodeState versionState,
Name qLabel,
boolean moveLabel) |
NodeEntry |
checkin(NodeState nodeState) |
void |
checkIsCheckedOut(NodeState nodeState) |
void |
checkout(NodeState nodeState) |
void |
checkout(NodeState nodeState,
NodeId activityId) |
NodeEntry |
checkpoint(NodeState nodeState) |
NodeEntry |
checkpoint(NodeState nodeState,
NodeId activityId) |
NodeEntry |
createActivity(String title) |
NodeEntry |
createConfiguration(NodeState nodeState) |
NodeEntry |
getVersionableNodeEntry(NodeState versionState) |
NodeEntry |
getVersionHistoryEntry(NodeState versionableState) |
boolean |
isCheckedOut(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) |
void |
removeActivity(NodeState activityState) |
void |
removeVersion(NodeState versionHistoryState,
NodeState versionState) |
void |
removeVersionLabel(NodeState versionHistoryState,
NodeState versionState,
Name qLabel) |
void |
resolveMergeConflict(NodeState nodeState,
NodeState versionState,
boolean done) |
void |
restore(NodeState[] versionStates,
boolean removeExisting) |
void |
restore(NodeState nodeState,
Path relativePath,
NodeState versionState,
boolean removeExisting) |
NodeEntry checkin(NodeState nodeState) throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException
nodeState - NodeEntry of newly created versionVersionExceptionUnsupportedRepositoryOperationExceptionInvalidItemStateExceptionLockExceptionRepositoryExceptionNode.checkin()void checkout(NodeState nodeState) throws UnsupportedRepositoryOperationException, LockException, RepositoryException
nodeState - UnsupportedRepositoryOperationExceptionLockExceptionRepositoryExceptionNode.checkout()void checkout(NodeState nodeState, NodeId activityId) throws RepositoryException
nodeState - activityId - RepositoryExceptionNodeEntry checkpoint(NodeState nodeState) throws RepositoryException
nodeState - RepositoryExceptionVersionManager.checkpoint(String)NodeEntry checkpoint(NodeState nodeState, NodeId activityId) throws RepositoryException
nodeState - RepositoryExceptionVersionManager.checkpoint(String)boolean isCheckedOut(NodeState nodeState) throws RepositoryException
nodeState - RepositoryExceptionNode.isCheckedOut()void checkIsCheckedOut(NodeState nodeState) throws VersionException, RepositoryException
nodeState - VersionException - If the Node represented by the given
NodeState is checkedin.RepositoryException - If another error occurs.Node.isCheckedOut()void removeVersion(NodeState versionHistoryState, NodeState versionState) throws ReferentialIntegrityException, AccessDeniedException, UnsupportedRepositoryOperationException, VersionException, RepositoryException
versionHistoryState - versionState - ReferentialIntegrityExceptionAccessDeniedExceptionUnsupportedRepositoryOperationExceptionVersionExceptionRepositoryExceptionVersionHistory.removeVersion(String)void addVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel, boolean moveLabel) throws VersionException, RepositoryException
versionHistoryState - versionState - qLabel - moveLabel - VersionExceptionRepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)void removeVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel) throws VersionException, RepositoryException
versionHistoryState - versionState - qLabel - VersionExceptionRepositoryExceptionVersionHistory.removeVersionLabel(String)void restore(NodeState nodeState, Path relativePath, NodeState versionState, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
nodeState - relativePath - versionState - removeExisting - VersionExceptionItemExistsExceptionUnsupportedRepositoryOperationExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionNode.restore(String, boolean),
Node.restore(Version, boolean),
Node.restore(Version, String, boolean),
Node.restoreByLabel(String, boolean)void restore(NodeState[] versionStates, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
versionStates - removeExisting - ItemExistsExceptionUnsupportedRepositoryOperationExceptionVersionExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionWorkspace.restore(Version[], boolean)Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
nodeState - workspaceName - bestEffort - NodeIds of all Nodes
that failed to be merged and need manual resolution by the user of the API.NoSuchWorkspaceExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionresolveMergeConflict(NodeState,NodeState,boolean),
Node.merge(String, boolean)Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort, boolean isShallow) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
nodeState - workspaceName - bestEffort - isShallow - NodeIds of all Nodes
that failed to be merged and need manual resolution by the user of the API.NoSuchWorkspaceExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionresolveMergeConflict(NodeState,NodeState,boolean),
Node.merge(String, boolean)void resolveMergeConflict(NodeState nodeState, NodeState versionState, boolean done) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
nodeState - versionState - done - VersionExceptionInvalidItemStateExceptionUnsupportedRepositoryOperationExceptionRepositoryExceptionNode.cancelMerge(Version),
Node.doneMerge(Version)NodeEntry createConfiguration(NodeState nodeState) throws UnsupportedRepositoryOperationException, RepositoryException
nodeState - UnsupportedRepositoryOperationExceptionRepositoryExceptionNodeEntry createActivity(String title) throws UnsupportedRepositoryOperationException, RepositoryException
title - UnsupportedRepositoryOperationExceptionRepositoryExceptionvoid removeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
activityState - UnsupportedRepositoryOperationExceptionRepositoryExceptionIterator<NodeId> mergeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
activityState - UnsupportedRepositoryOperationExceptionRepositoryExceptionNodeEntry getVersionableNodeEntry(NodeState versionState) throws RepositoryException
versionState - RepositoryExceptionNodeEntry getVersionHistoryEntry(NodeState versionableState) throws RepositoryException
versionableState - RepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.