@Component public class NodeService extends RepositoryService implements FedoraJcrTypes
org.modeshape.jcr.api.JcrTools.BasicOperation, org.modeshape.jcr.api.JcrTools.BrowseContent, org.modeshape.jcr.api.JcrTools.CountNodes, org.modeshape.jcr.api.JcrTools.Operation, org.modeshape.jcr.api.JcrTools.PrintNodes, org.modeshape.jcr.api.JcrTools.VariablerepoCONTENT_DIGEST, CONTENT_SIZE, FCR_CONTENT, FEDORA_BINARY, FEDORA_DATASTREAM, FEDORA_OBJECT, FEDORA_RESOURCE, JCR_CREATED, JCR_CREATEDBY, JCR_LASTMODIFIED, ROOT| Constructor and Description |
|---|
NodeService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteObject(javax.jcr.Session session,
String path)
Delete an existing object from the repository at the given path
|
FedoraResource |
findOrCreateObject(javax.jcr.Session session,
String path)
Find or create a new Fedora resource at the given path
|
FedoraResource |
getObject(javax.jcr.Session session,
String path)
Retrieve an existing Fedora resource at the given path
|
FedoraResource |
getObject(javax.jcr.Session session,
String path,
String versionId)
Get an existing Fedora resource at the given path with the given version
label
|
Set<String> |
getObjectNames(javax.jcr.Session session,
String path) |
Set<String> |
getObjectNames(javax.jcr.Session session,
String path,
String mixin)
Get the list of child nodes at the given path filtered by the given mixin
|
exists, getAllNodeTypes, getNamespaceRegistryGraph, getRepositoryNamespaces, getRepositoryObjectCount, getRepositorySize, searchRepository, setRepositoryfindOrCreateChild, findOrCreateChild, findOrCreateNode, findOrCreateNode, findOrCreateNode, findOrCreateNode, getNode, getReadable, getStringValue, importContent, importContent, importContent, importContent, importContent, importContent, importContent, isDebug, print, printNode, printQuery, printQuery, printQuery, printQuery, printSubgraph, printSubgraph, printSubgraph, registerNodeTypes, removeAllChildren, removeAllChildren, repeatedlyWithSession, resourceUrl, uploadFile, uploadFile, uploadFile, uploadFileAndBlock, uploadFileAndBlock, uploadFileAndBlock, uploadFilesAndBlock, var, vars, withSessionpublic FedoraResource findOrCreateObject(javax.jcr.Session session, String path) throws javax.jcr.RepositoryException
session - a JCR sessionpath - a JCR pathjavax.jcr.RepositoryExceptionpublic FedoraResource getObject(javax.jcr.Session session, String path) throws javax.jcr.RepositoryException
session - a JCR sessionpath - a JCR pathjavax.jcr.RepositoryExceptionpublic FedoraResource getObject(javax.jcr.Session session, String path, String versionId) throws javax.jcr.RepositoryException
session - a JCR sessionpath - a JCR pathversionId - a JCR version labeljavax.jcr.RepositoryExceptionpublic Set<String> getObjectNames(javax.jcr.Session session, String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic Set<String> getObjectNames(javax.jcr.Session session, String path, String mixin) throws javax.jcr.RepositoryException
session - path - mixin - javax.jcr.RepositoryExceptionpublic void deleteObject(javax.jcr.Session session,
String path)
throws javax.jcr.RepositoryException
session - path - javax.jcr.RepositoryExceptionCopyright © 2013 DuraSpace, Inc.. All Rights Reserved.