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 versionVersionException
UnsupportedRepositoryOperationException
InvalidItemStateException
LockException
RepositoryException
Node.checkin()
void checkout(NodeState nodeState) throws UnsupportedRepositoryOperationException, LockException, RepositoryException
nodeState
- UnsupportedRepositoryOperationException
LockException
RepositoryException
Node.checkout()
void checkout(NodeState nodeState, NodeId activityId) throws RepositoryException
nodeState
- activityId
- RepositoryException
NodeEntry checkpoint(NodeState nodeState) throws RepositoryException
nodeState
- RepositoryException
VersionManager.checkpoint(String)
NodeEntry checkpoint(NodeState nodeState, NodeId activityId) throws RepositoryException
nodeState
- RepositoryException
VersionManager.checkpoint(String)
boolean isCheckedOut(NodeState nodeState) throws RepositoryException
nodeState
- RepositoryException
Node.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
- ReferentialIntegrityException
AccessDeniedException
UnsupportedRepositoryOperationException
VersionException
RepositoryException
VersionHistory.removeVersion(String)
void addVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel, boolean moveLabel) throws VersionException, RepositoryException
versionHistoryState
- versionState
- qLabel
- moveLabel
- VersionException
RepositoryException
VersionHistory.addVersionLabel(String, String, boolean)
void removeVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel) throws VersionException, RepositoryException
versionHistoryState
- versionState
- qLabel
- VersionException
RepositoryException
VersionHistory.removeVersionLabel(String)
void restore(NodeState nodeState, Path relativePath, NodeState versionState, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
nodeState
- relativePath
- versionState
- removeExisting
- VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
Node.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
- ItemExistsException
UnsupportedRepositoryOperationException
VersionException
LockException
InvalidItemStateException
RepositoryException
Workspace.restore(Version[], boolean)
Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException
nodeState
- workspaceName
- bestEffort
- NodeId
s of all Node
s
that failed to be merged and need manual resolution by the user of the API.NoSuchWorkspaceException
AccessDeniedException
MergeException
LockException
InvalidItemStateException
RepositoryException
resolveMergeConflict(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
- NodeId
s of all Node
s
that failed to be merged and need manual resolution by the user of the API.NoSuchWorkspaceException
AccessDeniedException
MergeException
LockException
InvalidItemStateException
RepositoryException
resolveMergeConflict(NodeState,NodeState,boolean)
,
Node.merge(String, boolean)
void resolveMergeConflict(NodeState nodeState, NodeState versionState, boolean done) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
nodeState
- versionState
- done
- VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
Node.cancelMerge(Version)
,
Node.doneMerge(Version)
NodeEntry createConfiguration(NodeState nodeState) throws UnsupportedRepositoryOperationException, RepositoryException
nodeState
- UnsupportedRepositoryOperationException
RepositoryException
NodeEntry createActivity(String title) throws UnsupportedRepositoryOperationException, RepositoryException
title
- UnsupportedRepositoryOperationException
RepositoryException
void removeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
activityState
- UnsupportedRepositoryOperationException
RepositoryException
Iterator<NodeId> mergeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
activityState
- UnsupportedRepositoryOperationException
RepositoryException
NodeEntry getVersionableNodeEntry(NodeState versionState) throws RepositoryException
versionState
- RepositoryException
NodeEntry getVersionHistoryEntry(NodeState versionableState) throws RepositoryException
versionableState
- RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.