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 javax.jcr.version.VersionException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.InvalidItemStateException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
nodeState
- NodeEntry
of newly created versionjavax.jcr.version.VersionException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.InvalidItemStateException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Node.checkin()
void checkout(NodeState nodeState) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
nodeState
- javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Node.checkout()
void checkout(NodeState nodeState, NodeId activityId) throws javax.jcr.RepositoryException
nodeState
- activityId
- javax.jcr.RepositoryException
NodeEntry checkpoint(NodeState nodeState) throws javax.jcr.RepositoryException
nodeState
- javax.jcr.RepositoryException
VersionManager.checkpoint(String)
NodeEntry checkpoint(NodeState nodeState, NodeId activityId) throws javax.jcr.RepositoryException
nodeState
- javax.jcr.RepositoryException
VersionManager.checkpoint(String)
boolean isCheckedOut(NodeState nodeState) throws javax.jcr.RepositoryException
nodeState
- javax.jcr.RepositoryException
Node.isCheckedOut()
void checkIsCheckedOut(NodeState nodeState) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
nodeState
- javax.jcr.version.VersionException
- If the Node
represented by the given
NodeState
is checkedin.javax.jcr.RepositoryException
- If another error occurs.Node.isCheckedOut()
void removeVersion(NodeState versionHistoryState, NodeState versionState) throws javax.jcr.ReferentialIntegrityException, javax.jcr.AccessDeniedException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
versionHistoryState
- versionState
- javax.jcr.ReferentialIntegrityException
javax.jcr.AccessDeniedException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.removeVersion(String)
void addVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel, boolean moveLabel) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
versionHistoryState
- versionState
- qLabel
- moveLabel
- javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.addVersionLabel(String, String, boolean)
void removeVersionLabel(NodeState versionHistoryState, NodeState versionState, Name qLabel) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
versionHistoryState
- versionState
- qLabel
- javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.removeVersionLabel(String)
void restore(NodeState nodeState, Path relativePath, NodeState versionState, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
nodeState
- relativePath
- versionState
- removeExisting
- javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.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 javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
versionStates
- removeExisting
- javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
Workspace.restore(Version[], boolean)
Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.MergeException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.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.javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.MergeException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
resolveMergeConflict(NodeState,NodeState,boolean)
,
Node.merge(String, boolean)
Iterator<NodeId> merge(NodeState nodeState, String workspaceName, boolean bestEffort, boolean isShallow) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.MergeException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.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.javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.MergeException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
resolveMergeConflict(NodeState,NodeState,boolean)
,
Node.merge(String, boolean)
void resolveMergeConflict(NodeState nodeState, NodeState versionState, boolean done) throws javax.jcr.version.VersionException, javax.jcr.InvalidItemStateException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
nodeState
- versionState
- done
- javax.jcr.version.VersionException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
Node.cancelMerge(Version)
,
Node.doneMerge(Version)
NodeEntry createConfiguration(NodeState nodeState) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
nodeState
- javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
NodeEntry createActivity(String title) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
title
- javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
void removeActivity(NodeState activityState) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
activityState
- javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
Iterator<NodeId> mergeActivity(NodeState activityState) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
activityState
- javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
NodeEntry getVersionableNodeEntry(NodeState versionState) throws javax.jcr.RepositoryException
versionState
- javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.