@Component public class VersionServiceImpl extends AbstractService implements org.fcrepo.kernel.services.VersionService
org.modeshape.jcr.api.JcrTools.BasicOperation, org.modeshape.jcr.api.JcrTools.BrowseContent, org.modeshape.jcr.api.JcrTools.CountNodes, org.modeshape.jcr.api.JcrTools.NodeOperation, org.modeshape.jcr.api.JcrTools.Operation, org.modeshape.jcr.api.JcrTools.PrintNodes, org.modeshape.jcr.api.JcrTools.Variable| Modifier and Type | Field and Description |
|---|---|
protected static String |
AUTO_VERSION |
protected static String |
VERSION_POLICY |
protected static String |
VERSIONABLE |
repo| Constructor and Description |
|---|
VersionServiceImpl() |
| 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.
|
void |
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) |
void |
revertToVersion(javax.jcr.Workspace workspace,
String absPath,
String label) |
void |
setTxService(org.fcrepo.kernel.services.TransactionService txService) |
exists, setRepositoryfindOrCreateChild, findOrCreateChild, findOrCreateNode, findOrCreateNode, findOrCreateNode, findOrCreateNode, getNode, getReadable, getStringValue, importContent, importContent, importContent, importContent, importContent, importContent, importContent, isDebug, onEachNode, onEachNodeBelow, print, printNode, printQuery, printQuery, printQuery, printQuery, printSubgraph, printSubgraph, printSubgraph, registerNodeTypes, removeAllChildren, removeAllChildren, repeatedlyWithSession, resourceUrl, uploadFile, uploadFile, uploadFile, uploadFileAndBlock, uploadFileAndBlock, uploadFileAndBlock, uploadFilesAndBlock, var, vars, withSessionprotected static final String VERSIONABLE
protected static final String VERSION_POLICY
protected static final String AUTO_VERSION
public void nodeUpdated(javax.jcr.Session session,
String absPath)
throws javax.jcr.RepositoryException
nodeUpdated(javax.jcr.Node) will save the overhead of a
redundant node lookup.nodeUpdated in interface org.fcrepo.kernel.services.VersionServicesession - absPath - the absolute path to the node that was created or
modifiedjavax.jcr.RepositoryExceptionpublic void nodeUpdated(javax.jcr.Node n)
throws javax.jcr.RepositoryException
nodeUpdated in interface org.fcrepo.kernel.services.VersionServicen - the node that was updatedjavax.jcr.RepositoryExceptionpublic void createVersion(javax.jcr.Workspace workspace,
Collection<String> paths)
throws javax.jcr.RepositoryException
createVersion in interface org.fcrepo.kernel.services.VersionServiceworkspace - the workspace in which the node residespaths - absolute paths to the nodes within the workspacejavax.jcr.RepositoryExceptionpublic void revertToVersion(javax.jcr.Workspace workspace,
String absPath,
String label)
throws javax.jcr.RepositoryException
revertToVersion in interface org.fcrepo.kernel.services.VersionServicejavax.jcr.RepositoryExceptionpublic void removeVersion(javax.jcr.Workspace workspace,
String absPath,
String label)
throws javax.jcr.RepositoryException
removeVersion in interface org.fcrepo.kernel.services.VersionServicejavax.jcr.RepositoryExceptionpublic void checkpoint(javax.jcr.Node node)
throws javax.jcr.RepositoryException
checkpoint in interface org.fcrepo.kernel.services.VersionServicenode - the node for whom a new version is
to be mintedjavax.jcr.RepositoryExceptionpublic void setTxService(org.fcrepo.kernel.services.TransactionService txService)
setTxService in interface org.fcrepo.kernel.services.VersionServicetxService - the txService to setCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.