public class ReadWriteVersionManager extends ReadOnlyVersionManager
ReadOnlyVersionManager with methods to modify the
version store.| Constructor and Description |
|---|
ReadWriteVersionManager(NodeBuilder versionStorageNode,
NodeBuilder workspaceRoot) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkin(NodeBuilder versionable) |
void |
checkout(NodeBuilder versionable) |
NodeBuilder |
getOrCreateVersionHistory(NodeBuilder versionable,
java.util.Map<java.lang.String,java.lang.Object> infoMap)
Gets or creates the version history for the given
versionable node. |
void |
removeVersionLabel(java.lang.String historyRelPath,
java.lang.String label)
Removes a version label from the jcr:versionLabels node of the referenced
version history.
|
void |
restore(NodeBuilder versionable,
java.lang.String versionUUID,
VersionSelector selector) |
getBaseVersion, getInstance, getVersion, getVersionable, getVersionHistory, getVersionHistoryPath, isCheckedOut, isVersionStoreTreepublic ReadWriteVersionManager(NodeBuilder versionStorageNode, NodeBuilder workspaceRoot)
public NodeBuilder getOrCreateVersionHistory(NodeBuilder versionable, java.util.Map<java.lang.String,java.lang.Object> infoMap) throws CommitFailedException
versionable node.versionable - the versionable node.infoMap - The additional information as provided by CommitInfo.getInfo()java.lang.IllegalArgumentException - if the given node does not have a
jcr:uuid property.CommitFailedExceptionpublic void checkout(NodeBuilder versionable)
public void checkin(NodeBuilder versionable) throws CommitFailedException
CommitFailedExceptionpublic void restore(NodeBuilder versionable, java.lang.String versionUUID, VersionSelector selector) throws CommitFailedException
CommitFailedExceptionpublic void removeVersionLabel(java.lang.String historyRelPath,
java.lang.String label)
throws CommitFailedException
historyRelPath - relative path from the jcr:versionStorage node to
the version history node.label - the version label.CommitFailedException - if there is no such version history or if
there is no label with the given name."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"