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 VersionManager
NodeEntry
of newly created versionVersionException
UnsupportedRepositoryOperationException
InvalidItemStateException
LockException
RepositoryException
Node.checkin()
public void checkout(NodeState nodeState) throws RepositoryException
checkout
in interface VersionManager
UnsupportedRepositoryOperationException
LockException
RepositoryException
Node.checkout()
public void checkout(NodeState nodeState, NodeId activityId) throws RepositoryException
checkout
in interface VersionManager
RepositoryException
public NodeEntry checkpoint(NodeState nodeState) throws RepositoryException
checkpoint
in interface VersionManager
RepositoryException
VersionManager.checkpoint(String)
public NodeEntry checkpoint(NodeState nodeState, NodeId activityId) throws RepositoryException
checkpoint
in interface VersionManager
RepositoryException
VersionManager.checkpoint(String)
public boolean isCheckedOut(NodeState nodeState) throws RepositoryException
true
is returned.isCheckedOut
in interface VersionManager
nodeState
- RepositoryException
Node.isCheckedOut()
public void checkIsCheckedOut(NodeState nodeState) throws VersionException, RepositoryException
checkIsCheckedOut
in interface VersionManager
VersionException
- 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 VersionManager
ReferentialIntegrityException
AccessDeniedException
UnsupportedRepositoryOperationException
VersionException
RepositoryException
VersionHistory.removeVersion(String)
public void addVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel, boolean moveLabel) throws RepositoryException
addVersionLabel
in interface VersionManager
VersionException
RepositoryException
VersionHistory.addVersionLabel(String, String, boolean)
public void removeVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel) throws RepositoryException
removeVersionLabel
in interface VersionManager
VersionException
RepositoryException
VersionHistory.removeVersionLabel(String)
public void restore(NodeState nodeState, Path relativePath, NodeState versionState, boolean removeExisting) throws RepositoryException
restore
in interface VersionManager
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
Node.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 VersionManager
ItemExistsException
UnsupportedRepositoryOperationException
VersionException
LockException
InvalidItemStateException
RepositoryException
Workspace.restore(Version[], boolean)
public Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort) throws RepositoryException
merge
in interface VersionManager
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
VersionManager.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 VersionManager
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
VersionManager.resolveMergeConflict(NodeState,NodeState,boolean)
,
Node.merge(String, boolean)
public void resolveMergeConflict(NodeState nodeState, NodeState versionState, boolean done) throws RepositoryException
resolveMergeConflict
in interface VersionManager
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
Node.cancelMerge(Version)
,
Node.doneMerge(Version)
public NodeEntry createConfiguration(NodeState nodeState) throws UnsupportedRepositoryOperationException, RepositoryException
createConfiguration
in interface VersionManager
UnsupportedRepositoryOperationException
RepositoryException
public NodeEntry createActivity(String title) throws UnsupportedRepositoryOperationException, RepositoryException
createActivity
in interface VersionManager
UnsupportedRepositoryOperationException
RepositoryException
public void removeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
removeActivity
in interface VersionManager
UnsupportedRepositoryOperationException
RepositoryException
public Iterator<NodeId> mergeActivity(NodeState activityState) throws UnsupportedRepositoryOperationException, RepositoryException
mergeActivity
in interface VersionManager
UnsupportedRepositoryOperationException
RepositoryException
public NodeEntry getVersionableNodeEntry(NodeState versionState) throws RepositoryException
getVersionableNodeEntry
in interface VersionManager
RepositoryException
public NodeEntry getVersionHistoryEntry(NodeState versionableState) throws RepositoryException
getVersionHistoryEntry
in interface VersionManager
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.