public class VersionManagerImpl extends Object implements VersionManager
VersionManagerImpl...| Constructor and Description |
|---|
VersionManagerImpl(WorkspaceManager workspaceManager) |
| 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)
Search nearest ancestor that is versionable.
|
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) |
public VersionManagerImpl(WorkspaceManager workspaceManager)
public NodeEntry checkin(NodeState nodeState) throws RepositoryException
checkin in interface VersionManagerNodeEntry of newly created versionVersionExceptionUnsupportedRepositoryOperationExceptionInvalidItemStateExceptionLockExceptionRepositoryExceptionNode.checkin()public void checkout(NodeState nodeState) throws RepositoryException
checkout in interface VersionManagerUnsupportedRepositoryOperationExceptionLockExceptionRepositoryExceptionNode.checkout()public void checkout(NodeState nodeState, NodeId activityId) throws RepositoryException
checkout in interface VersionManagerRepositoryExceptionpublic NodeEntry checkpoint(NodeState nodeState) throws RepositoryException
checkpoint in interface VersionManagerRepositoryExceptionVersionManager.checkpoint(String)public NodeEntry checkpoint(NodeState nodeState, NodeId activityId) throws RepositoryException
checkpoint in interface VersionManagerRepositoryExceptionVersionManager.checkpoint(String)public boolean isCheckedOut(NodeState nodeState) throws RepositoryException
true is returned.isCheckedOut in interface VersionManagernodeState - RepositoryExceptionNode.isCheckedOut()public void checkIsCheckedOut(NodeState nodeState) throws VersionException, RepositoryException
checkIsCheckedOut in interface VersionManagerVersionException - If the Node represented by the given
NodeState is checkedin.RepositoryException - If another error occurs.Node.isCheckedOut()public void removeVersion(NodeState versionHistoryState, NodeState versionState) throws RepositoryException
removeVersion in interface VersionManagerReferentialIntegrityExceptionAccessDeniedExceptionUnsupportedRepositoryOperationExceptionVersionExceptionRepositoryExceptionVersionHistory.removeVersion(String)public void addVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel, boolean moveLabel) throws RepositoryException
addVersionLabel in interface VersionManagerVersionExceptionRepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)public void removeVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel) throws RepositoryException
removeVersionLabel in interface VersionManagerVersionExceptionRepositoryExceptionVersionHistory.removeVersionLabel(String)public void restore(NodeState nodeState, Path relativePath, NodeState versionState, boolean removeExisting) throws RepositoryException
restore in interface VersionManagerVersionExceptionItemExistsExceptionUnsupportedRepositoryOperationExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionNode.restore(String, boolean),
Node.restore(Version, boolean),
Node.restore(Version, String, boolean),
Node.restoreByLabel(String, boolean)public void restore(NodeState[] versionStates, boolean removeExisting) throws RepositoryException
restore in interface VersionManagerItemExistsExceptionUnsupportedRepositoryOperationExceptionVersionExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionWorkspace.restore(Version[], boolean)public Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort) throws RepositoryException
merge in interface VersionManagerNodeIds of all Nodes
that failed to be merged and need manual resolution by the user of the API.NoSuchWorkspaceExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionVersionManager.resolveMergeConflict(NodeState,NodeState,boolean),
Node.merge(String, boolean)public Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort, boolean isShallow) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
merge in interface VersionManagerNodeIds of all Nodes
that failed to be merged and need manual resolution by the user of the API.NoSuchWorkspaceExceptionAccessDeniedExceptionMergeExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionVersionManager.resolveMergeConflict(NodeState,NodeState,boolean),
Node.merge(String, boolean)public void resolveMergeConflict(NodeState nodeState, NodeState versionState, boolean done) throws RepositoryException
resolveMergeConflict in interface VersionManagerVersionExceptionInvalidItemStateExceptionUnsupportedRepositoryOperationExceptionRepositoryExceptionNode.cancelMerge(Version),
Node.doneMerge(Version)public NodeEntry createConfiguration(NodeState nodeState) throws UnsupportedRepositoryOperationException, RepositoryException
createConfiguration in interface VersionManagerUnsupportedRepositoryOperationExceptionRepositoryExceptionpublic NodeEntry createActivity(String title) throws UnsupportedRepositoryOperationException, RepositoryException
createActivity in interface VersionManagerUnsupportedRepositoryOperationExceptionRepositoryExceptionpublic void removeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
removeActivity in interface VersionManagerUnsupportedRepositoryOperationExceptionRepositoryExceptionpublic Iterator<NodeId> mergeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
mergeActivity in interface VersionManagerUnsupportedRepositoryOperationExceptionRepositoryExceptionpublic NodeEntry getVersionableNodeEntry(NodeState versionState) throws RepositoryException
getVersionableNodeEntry in interface VersionManagerRepositoryExceptionpublic NodeEntry getVersionHistoryEntry(NodeState versionableState) throws RepositoryException
getVersionHistoryEntry in interface VersionManagerRepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.