public class FedoraResourceImpl extends java.lang.Object implements FedoraResource
| Modifier and Type | Field and Description |
|---|---|
protected com.hp.hpl.jena.graph.Graph |
graph |
protected HttpHelper |
httpHelper |
protected java.lang.String |
path |
protected FedoraRepository |
repository |
protected com.hp.hpl.jena.graph.Node |
subject |
| Constructor and Description |
|---|
FedoraResourceImpl(FedoraRepository repository,
HttpHelper httpHelper,
java.lang.String path)
FedoraResourceImpl constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(java.lang.String destination) |
void |
delete() |
java.util.Date |
getCreatedDate() |
java.lang.String |
getEtagValue() |
com.hp.hpl.jena.graph.Graph |
getGraph()
Get the properties graph
|
java.util.Date |
getLastModifiedDate() |
java.util.Collection<java.lang.String> |
getMixins() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
java.util.Iterator<com.hp.hpl.jena.graph.Triple> |
getProperties() |
protected java.util.Collection<java.lang.String> |
getPropertyValues(com.hp.hpl.jena.rdf.model.Property property)
Return all the values of a property
|
java.lang.Long |
getSize() |
protected com.hp.hpl.jena.graph.Triple |
getTriple(com.hp.hpl.jena.graph.Node subject,
com.hp.hpl.jena.rdf.model.Property property) |
boolean |
isWritable() |
void |
move(java.lang.String destination) |
void |
setEtagValue(java.lang.String etagValue)
set etagValue
|
void |
setGraph(com.hp.hpl.jena.graph.Graph graph)
Update the properties graph
|
void |
updateProperties(java.io.InputStream updatedProperties,
java.lang.String contentType) |
void |
updateProperties(java.lang.String sparqlUpdate) |
protected FedoraRepository repository
protected HttpHelper httpHelper
protected java.lang.String path
protected com.hp.hpl.jena.graph.Node subject
protected com.hp.hpl.jena.graph.Graph graph
public FedoraResourceImpl(FedoraRepository repository, HttpHelper httpHelper, java.lang.String path)
repository - FedoraRepositoryImpl that created this resourcehttpHelper - HTTP helper for making repository requestspath - Repository path of this resourcepublic void copy(java.lang.String destination)
throws ReadOnlyException
copy in interface FedoraResourceReadOnlyExceptionpublic void delete()
throws ReadOnlyException
delete in interface FedoraResourceReadOnlyExceptionpublic java.util.Date getCreatedDate()
getCreatedDate in interface FedoraResourcepublic java.lang.String getEtagValue()
getEtagValue in interface FedoraResourcepublic void setEtagValue(java.lang.String etagValue)
etagValue - public java.util.Date getLastModifiedDate()
getLastModifiedDate in interface FedoraResourcepublic java.util.Collection<java.lang.String> getMixins()
getMixins in interface FedoraResourcepublic java.lang.String getName()
getName in interface FedoraResourcepublic java.lang.String getPath()
getPath in interface FedoraResourcepublic java.util.Iterator<com.hp.hpl.jena.graph.Triple> getProperties()
getProperties in interface FedoraResourcepublic java.lang.Long getSize()
getSize in interface FedoraResourcepublic void move(java.lang.String destination)
throws ReadOnlyException
move in interface FedoraResourceReadOnlyExceptionpublic void updateProperties(java.lang.String sparqlUpdate)
throws FedoraException
updateProperties in interface FedoraResourceFedoraExceptionpublic void updateProperties(java.io.InputStream updatedProperties,
java.lang.String contentType)
throws FedoraException
updateProperties in interface FedoraResourceFedoraExceptionpublic boolean isWritable()
isWritable in interface FedoraResourcepublic com.hp.hpl.jena.graph.Graph getGraph()
public void setGraph(com.hp.hpl.jena.graph.Graph graph)
protected java.util.Collection<java.lang.String> getPropertyValues(com.hp.hpl.jena.rdf.model.Property property)
property - The Property to get values forprotected com.hp.hpl.jena.graph.Triple getTriple(com.hp.hpl.jena.graph.Node subject,
com.hp.hpl.jena.rdf.model.Property property)
Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.