public interface FedoraResource
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this resource, and any inbound references to it
|
void |
disableVersioning()
Disable versioning
|
void |
enableVersioning()
Enable versioning
|
javax.jcr.version.Version |
getBaseVersion()
Get the JCR Base version for the node
|
FedoraResource |
getChild(String relPath)
Get the child of this resource at the given path
|
Iterator<FedoraResource> |
getChildren()
Get the children of this resource
|
FedoraResource |
getContainer()
Get the container of this resource
|
Date |
getCreatedDate()
Get the date this datastream was created
|
String |
getEtagValue()
Construct an ETag value from the last modified date and path.
|
Date |
getLastModifiedDate()
Get the date this datastream was last modified
|
javax.jcr.Node |
getNode() |
javax.jcr.Node |
getNodeVersion(String label)
Get the node for this object at the version provided.
|
String |
getPath()
Get the path to the JCR node
|
javax.jcr.Property |
getProperty(String relPath)
Retrieve the given property value for this resource
|
RdfStream |
getTriples(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
Class<? extends RdfStream> context)
Return the RDF properties of this object using the provided context
|
RdfStream |
getTriples(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
Iterable<? extends Class<? extends RdfStream>> contexts)
Return the RDF properties of this object using the provided contexts
|
FedoraResource |
getUnfrozenResource()
Get the unfrozen equivalent of a frozen versioned node
|
FedoraResource |
getVersionedAncestor()
When this is a frozen node, get the ancestor that was explicitly versioned
|
javax.jcr.version.VersionHistory |
getVersionHistory()
Get JCR VersionHistory for the node.
|
boolean |
hasProperty(String relPath)
Does this resource have a property
|
boolean |
hasType(String type)
Check if this object uses a given mixin
|
boolean |
isFrozenResource()
Check if a resource is frozen (a historic version).
|
Boolean |
isNew()
Check if a resource was created in this session
|
boolean |
isVersioned()
Check if a resource is versioned
|
void |
replaceProperties(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
com.hp.hpl.jena.rdf.model.Model inputModel,
RdfStream originalTriples)
Replace the properties of this object with the properties from the given
model
|
void |
updateProperties(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
String sparqlUpdateStatement,
RdfStream originalTriples)
Update the provided properties with a SPARQL Update query.
|
javax.jcr.Node getNode()
Iterator<FedoraResource> getChildren()
FedoraResource getContainer()
FedoraResource getChild(String relPath)
relPath
- boolean hasProperty(String relPath)
relPath
- javax.jcr.Property getProperty(String relPath)
relPath
- void delete()
Date getCreatedDate()
Date getLastModifiedDate()
boolean hasType(String type)
void updateProperties(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, String sparqlUpdateStatement, RdfStream originalTriples) throws MalformedRdfException
idTranslator
- sparqlUpdateStatement
- originalTriples
- MalformedRdfException
RdfStream getTriples(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, Class<? extends RdfStream> context)
idTranslator
- context
- RdfStream getTriples(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, Iterable<? extends Class<? extends RdfStream>> contexts)
idTranslator
- contexts
- javax.jcr.version.Version getBaseVersion()
javax.jcr.version.VersionHistory getVersionHistory()
Boolean isNew()
void replaceProperties(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, com.hp.hpl.jena.rdf.model.Model inputModel, RdfStream originalTriples) throws MalformedRdfException
idTranslator
- inputModel
- MalformedRdfException
String getEtagValue()
void enableVersioning()
void disableVersioning()
boolean isVersioned()
boolean isFrozenResource()
FedoraResource getVersionedAncestor()
FedoraResource getUnfrozenResource()
javax.jcr.Node getNodeVersion(String label)
label
- Copyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.