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