@Component public class VersionServiceImpl extends AbstractService implements VersionService
jcrTools
Constructor and Description |
---|
VersionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String |
createVersion(javax.jcr.Session session,
String absPath,
String label)
Explicitly creates a version for the nodes at each path provided.
|
void |
removeVersion(javax.jcr.Session session,
String absPath,
String label)
Remove a version of a node.
|
void |
revertToVersion(javax.jcr.Session session,
String absPath,
String label)
Reverts the node to the version identified by the label.
|
exists, findNode, findOrCreateNode, tagHierarchyWithPairtreeMixin
public VersionServiceImpl()
public String createVersion(javax.jcr.Session session, String absPath, String label)
VersionService
createVersion
in interface VersionService
session
- the session in which the node residesabsPath
- absolute paths to the nodelabel
- a label to be applied to the new versionpublic void revertToVersion(javax.jcr.Session session, String absPath, String label)
VersionService
revertToVersion
in interface VersionService
session
- the session in which the node residesabsPath
- the path to the node whose version is to be revertedlabel
- identifies the historic versionpublic void removeVersion(javax.jcr.Session session, String absPath, String label)
VersionService
removeVersion
in interface VersionService
session
- the session in which the node residesabsPath
- the path to the node whose version is to be removedlabel
- identifies the historic version by label or idCopyright © 2013–2016 DuraSpace, Inc.. All rights reserved.