| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint(javax.jcr.Node node)
Creates a version checkpoint for the given node if versioning is enabled
for that node type.
|
Collection<String> |
createVersion(javax.jcr.Workspace workspace,
Collection<String> paths)
Explicitly creates a version for the nodes at each path provided.
|
void |
nodeUpdated(javax.jcr.Node n)
Notifies the version manager that the given node was updated so that if
automatic versioning is set for that node, a version checkpoint will be
made.
|
void |
nodeUpdated(javax.jcr.Session session,
String absPath)
Notifies the version manager that the node at a given path was updated so
that if automatic versioning is set for that node, a version checkpoint
will be made.
|
void |
removeVersion(javax.jcr.Workspace workspace,
String absPath,
String label)
Remove a version of a node.
|
void |
revertToVersion(javax.jcr.Workspace workspace,
String absPath,
String label)
Reverts the node to the version identified by the label.
|
void |
setTxService(TransactionService txService) |
exists, setRepositoryvoid nodeUpdated(javax.jcr.Session session,
String absPath)
throws javax.jcr.RepositoryException
nodeUpdated(javax.jcr.Node) will save the overhead of a
redundant node lookup.session - absPath - the absolute path to the node that was created or modifiedjavax.jcr.RepositoryExceptionvoid nodeUpdated(javax.jcr.Node n)
throws javax.jcr.RepositoryException
n - the node that was updatedjavax.jcr.RepositoryExceptionCollection<String> createVersion(javax.jcr.Workspace workspace, Collection<String> paths) throws javax.jcr.RepositoryException
workspace - the workspace in which the node residespaths - absolute paths to the nodes within the workspacejavax.jcr.RepositoryExceptionvoid revertToVersion(javax.jcr.Workspace workspace,
String absPath,
String label)
throws javax.jcr.RepositoryException
workspace - the workspace in which the node residesabsPath - the path to the node whose version is to be revertedlabel - identifies the historic versionjavax.jcr.RepositoryExceptionvoid removeVersion(javax.jcr.Workspace workspace,
String absPath,
String label)
throws javax.jcr.RepositoryException
workspace - the workspace in which the node residesabsPath - the path to the node whose version is to be removedlabel - identifies the historic version by label or idjavax.jcr.RepositoryExceptionvoid checkpoint(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the node for whom a new version is to be mintedjavax.jcr.RepositoryExceptionvoid setTxService(TransactionService txService)
txService - the txService to setCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.