@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.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 javax.jcr.Repository |
repo |
CONTENT_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 |
|---|
RepositoryService() |
| Modifier and Type | Method and Description |
|---|---|
org.modeshape.jcr.api.Problems |
backupRepository(javax.jcr.Session session,
File backupDirectory)
This method backups up a running repository
|
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 |
getNamespaceRegistryDataset(javax.jcr.Session session)
Serialize the JCR namespace information as an RDF Dataset
|
RdfStream |
getNamespaceRegistryStream(javax.jcr.Session session)
Serialize the JCR namespace information as an
RdfStream |
RdfStream |
getNodeTypes(javax.jcr.Session session) |
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
|
void |
registerNodeTypes(javax.jcr.Session session,
InputStream cndStream) |
org.modeshape.jcr.api.Problems |
restoreRepository(javax.jcr.Session session,
File backupDirectory)
This methods restores the repository from a backup
|
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, 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, 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 getNamespaceRegistryDataset(javax.jcr.Session session)
throws javax.jcr.RepositoryException
session - javax.jcr.RepositoryExceptionpublic RdfStream getNamespaceRegistryStream(javax.jcr.Session session) throws javax.jcr.RepositoryException
RdfStreamsession - 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 org.modeshape.jcr.api.Problems backupRepository(javax.jcr.Session session,
File backupDirectory)
throws javax.jcr.RepositoryException
session - backupDirectory - javax.jcr.RepositoryExceptionpublic org.modeshape.jcr.api.Problems restoreRepository(javax.jcr.Session session,
File backupDirectory)
throws javax.jcr.RepositoryException
session - backupDirectory - javax.jcr.RepositoryExceptionpublic void setRepository(javax.jcr.Repository repository)
repository - public RdfStream getNodeTypes(javax.jcr.Session session) throws javax.jcr.RepositoryException
session - javax.jcr.RepositoryExceptionpublic void registerNodeTypes(javax.jcr.Session session,
InputStream cndStream)
throws javax.jcr.RepositoryException,
IOException
session - cndStream - javax.jcr.RepositoryExceptionIOExceptionCopyright © 2013 DuraSpace, Inc.. All Rights Reserved.