public interface FedoraResource
| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(String label)
Tag the current version of the Node with a version label that
can be retrieved by name later.
|
javax.jcr.version.Version |
getBaseVersion()
Get the JCR Base version for the node
|
Date |
getCreatedDate()
Get the date this datastream was created
|
String |
getEtagValue()
Construct an ETag value from the last modified date and path.
|
RdfStream |
getHierarchyTriples(IdentifierTranslator graphSubjects,
HierarchyRdfContextOptions serializationOptions)
Return the JCR properties of this object as an
RdfStream |
Date |
getLastModifiedDate()
Get the date this datastream was last modified
|
Collection<String> |
getModels()
Get the mixins this object uses
|
javax.jcr.Node |
getNode() |
String |
getPath()
Get the path to the JCR node
|
com.hp.hpl.jena.query.Dataset |
getPropertiesDataset(IdentifierTranslator subjects)
Return the JCR properties of this object as a Jena
Dataset |
com.hp.hpl.jena.query.Dataset |
getPropertiesDataset(IdentifierTranslator graphSubjects,
int offset,
int limit)
Return the JCR properties of this object as a Jena
Dataset |
RdfStream |
getReferencesTriples(IdentifierTranslator graphSubjects)
Serialize inbound References to this object as an
RdfStream |
Long |
getSize()
Get the total size of this object and its datastreams
|
RdfStream |
getTriples(IdentifierTranslator graphSubjects)
Return the JCR properties of this object as an
RdfStream |
javax.jcr.version.VersionHistory |
getVersionHistory()
Get JCR VersionHistory for the node.
|
RdfStream |
getVersionTriples(IdentifierTranslator graphSubjects)
Serialize the JCR versions information as an RDF dataset
|
boolean |
hasContent()
Does the resource have a jcr:content child node?
|
Boolean |
isNew()
Check if a resource was created in this session
|
RdfStream |
replaceProperties(IdentifierTranslator graphSubjects,
com.hp.hpl.jena.rdf.model.Model inputModel)
Replace the properties of this object with the properties from the given
model
|
com.hp.hpl.jena.query.Dataset |
updatePropertiesDataset(IdentifierTranslator subjects,
String sparqlUpdateStatement)
Update the properties Dataset with a SPARQL Update query.
|
boolean hasContent()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.Node getNode()
String getPath() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionDate getCreatedDate() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionDate getLastModifiedDate() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionLong getSize() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCollection<String> getModels() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptioncom.hp.hpl.jena.query.Dataset updatePropertiesDataset(IdentifierTranslator subjects, String sparqlUpdateStatement) throws javax.jcr.RepositoryException
subjects - sparqlUpdateStatement - javax.jcr.RepositoryExceptioncom.hp.hpl.jena.query.Dataset getPropertiesDataset(IdentifierTranslator graphSubjects, int offset, int limit) throws javax.jcr.RepositoryException
DatasetgraphSubjects - offset - limit - javax.jcr.RepositoryExceptioncom.hp.hpl.jena.query.Dataset getPropertiesDataset(IdentifierTranslator subjects) throws javax.jcr.RepositoryException
Datasetsubjects - javax.jcr.RepositoryExceptionRdfStream getTriples(IdentifierTranslator graphSubjects) throws javax.jcr.RepositoryException
RdfStreamgraphSubjects - javax.jcr.RepositoryExceptionRdfStream getHierarchyTriples(IdentifierTranslator graphSubjects, HierarchyRdfContextOptions serializationOptions) throws javax.jcr.RepositoryException
RdfStreamgraphSubjects - javax.jcr.RepositoryExceptionRdfStream getVersionTriples(IdentifierTranslator graphSubjects) throws javax.jcr.RepositoryException
graphSubjects - javax.jcr.RepositoryExceptionRdfStream getReferencesTriples(IdentifierTranslator graphSubjects) throws javax.jcr.RepositoryException
RdfStreamgraphSubjects - javax.jcr.RepositoryExceptionvoid addVersionLabel(String label) throws javax.jcr.RepositoryException
label - javax.jcr.RepositoryExceptionjavax.jcr.version.Version getBaseVersion()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.version.VersionHistory getVersionHistory()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionBoolean isNew()
RdfStream replaceProperties(IdentifierTranslator graphSubjects, com.hp.hpl.jena.rdf.model.Model inputModel) throws javax.jcr.RepositoryException
graphSubjects - inputModel - javax.jcr.RepositoryExceptionString getEtagValue() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.