@Component public class VersionService extends RepositoryService
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 |
repoCONTENT_DIGEST, CONTENT_SIZE, FCR_CONTENT, FEDORA_BINARY, FEDORA_DATASTREAM, FEDORA_OBJECT, FEDORA_RESOURCE, FROZEN_MIXIN_TYPES, FROZEN_NODE, JCR_CREATED, JCR_CREATEDBY, JCR_LASTMODIFIED, PREMIS_FILE_NAME, ROOT| Constructor and Description |
|---|
VersionService() |
| 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.
|
backupRepository, exists, getAllNodeTypes, getNamespaceRegistryDataset, getNamespaceRegistryStream, getNodeTypes, getRepositoryNamespaces, getRepositoryObjectCount, getRepositorySize, registerNodeTypes, restoreRepository, searchRepository, 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.session - absPath - the absolute path to the node that was created or
modifiedjavax.jcr.RepositoryExceptionpublic void nodeUpdated(javax.jcr.Node n)
throws javax.jcr.RepositoryException
n - the node that was updatedjavax.jcr.RepositoryExceptionpublic void 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.RepositoryExceptionpublic void checkpoint(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the node for whom a new version is
to be mintedjavax.jcr.RepositoryExceptionCopyright © 2013 DuraSpace, Inc.. All Rights Reserved.