@Component public class RepositoryService extends org.modeshape.jcr.api.JcrTools 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.Variable| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Repository |
repo |
CONTENT_DIGEST, CONTENT_SIZE, FCR_CONTENT, FEDORA_BINARY, FEDORA_DATASTREAM, FEDORA_OBJECT, FEDORA_RESOURCE, JCR_CREATED, JCR_CREATEDBY, JCR_LASTMODIFIED, ROOT| Constructor and Description |
|---|
RepositoryService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(javax.jcr.Session session,
String path)
Test whether a node exists in the JCR store
|
javax.jcr.nodetype.NodeTypeIterator |
getAllNodeTypes(javax.jcr.Session session)
Get the full list of node types in the repository
|
com.hp.hpl.jena.query.Dataset |
getNamespaceRegistryGraph(javax.jcr.Session session)
Serialize the JCR namespace information as an RDF Dataset
|
static Map<String,String> |
getRepositoryNamespaces(javax.jcr.Session session)
Get a map of JCR prefixes to their URI namespaces
|
Long |
getRepositoryObjectCount()
Calculate the number of objects in the repository
|
Long |
getRepositorySize()
Calculate the total size of all the binary properties in the repository
|
com.hp.hpl.jena.query.Dataset |
searchRepository(GraphSubjects subjectFactory,
com.hp.hpl.jena.rdf.model.Resource searchSubject,
javax.jcr.Session session,
String terms,
int limit,
long offset)
Perform a full-text search on the whole repository and return the
information as an RDF Dataset
|
void |
setRepository(javax.jcr.Repository repository)
Set the repository to back this RepositoryService
|
findOrCreateChild, 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 boolean exists(javax.jcr.Session session,
String path)
throws javax.jcr.RepositoryException
path - javax.jcr.RepositoryExceptionpublic Long getRepositorySize()
public Long getRepositoryObjectCount()
public javax.jcr.nodetype.NodeTypeIterator getAllNodeTypes(javax.jcr.Session session)
throws javax.jcr.RepositoryException
session - javax.jcr.RepositoryExceptionpublic static Map<String,String> getRepositoryNamespaces(javax.jcr.Session session) throws javax.jcr.RepositoryException
session - javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.query.Dataset getNamespaceRegistryGraph(javax.jcr.Session session)
throws javax.jcr.RepositoryException
session - javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.query.Dataset searchRepository(GraphSubjects subjectFactory, com.hp.hpl.jena.rdf.model.Resource searchSubject, javax.jcr.Session session, String terms, int limit, long offset) throws javax.jcr.RepositoryException
subjectFactory - searchSubject - RDF resource to use as the subject of the searchsession - terms - limit - offset - javax.jcr.RepositoryExceptionpublic void setRepository(javax.jcr.Repository repository)
repository - Copyright © 2013 DuraSpace, Inc.. All Rights Reserved.