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,
Map<String,Object> infoMap)
Gets or creates the version history for the given
versionable node. |
void |
removeVersionLabel(String historyRelPath,
String label)
Removes a version label from the jcr:versionLabels node of the referenced
version history.
|
void |
restore(NodeBuilder versionable,
String versionUUID,
VersionSelector selector) |
getBaseVersion, getInstance, getVersion, getVersionable, getVersionHistory, getVersionHistoryPath, isCheckedOut, isVersionStoreTreepublic ReadWriteVersionManager(NodeBuilder versionStorageNode, NodeBuilder workspaceRoot)
public NodeBuilder getOrCreateVersionHistory(NodeBuilder versionable, Map<String,Object> infoMap) throws CommitFailedException
versionable node.versionable - the versionable node.infoMap - The additional information as provided by CommitInfo.getInfo()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, String versionUUID, VersionSelector selector) throws CommitFailedException
CommitFailedExceptionpublic void removeVersionLabel(String historyRelPath, 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 - 2017 Adobe Systems Incorporated. All Rights Reserved"