public interface FedoraResource
| Modifier and Type | Method and Description |
|---|---|
void |
copy(String destination)
Copy this Resource to a new path.
|
void |
delete()
Remove this Resource.
|
Date |
getCreatedDate()
Get the creation date of this Resource.
|
String |
getEtagValue()
Get the ETag of this Resource.
|
Date |
getLastModifiedDate()
Get the modification date of this Resource.
|
Collection<String> |
getMixins()
Get the mixins assigned to this Resource.
|
String |
getName()
Get the name of this Resource.
|
String |
getPath()
Get the full path of the Resource, relative to the repository root.
|
Iterator<com.hp.hpl.jena.graph.Triple> |
getProperties()
Get the RDF properties of this Resource.
|
Long |
getSize()
Get the size of this Resource in bytes.
|
boolean |
isWritable()
Check whether this Resource is writable.
|
void |
move(String destination)
Move this Resource to a new path.
|
void |
updateProperties(InputStream updatedProperties,
String contentType)
Update the properties of this Resource with the provided RDF.
|
void |
updateProperties(String sparqlUpdate)
Update the properties of this Resource using SPARQL Update.
|
void copy(String destination) throws FedoraException
destination - The path of the new copy.FedoraExceptionvoid delete()
throws FedoraException
FedoraExceptionDate getCreatedDate() throws FedoraException
FedoraExceptionString getEtagValue() throws FedoraException
FedoraExceptionDate getLastModifiedDate() throws FedoraException
FedoraExceptionCollection<String> getMixins() throws FedoraException
FedoraExceptionString getName() throws FedoraException
FedoraExceptionString getPath() throws FedoraException
FedoraExceptionIterator<com.hp.hpl.jena.graph.Triple> getProperties() throws FedoraException
FedoraExceptionLong getSize() throws FedoraException
FedoraExceptionvoid move(String destination) throws FedoraException
destination - The path of the new copy.FedoraExceptionvoid updateProperties(String sparqlUpdate) throws FedoraException
sparqlUpdate - SPARQL Update command.FedoraExceptionvoid updateProperties(InputStream updatedProperties, String contentType) throws FedoraException
updatedProperties - RDF properties as an InputStream.contentType - Content type of the RDF in updatedProperties (e.g.,
"text/rdf+n3" or "application/rdf+xml").FedoraExceptionboolean isWritable()
Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.