public interface FedoraRepository
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespace(String prefix,
String uri)
Register a namespace.
|
FedoraDatastream |
createDatastream(String path,
FedoraContent content)
Create a new Datastream.
|
FedoraObject |
createObject(String path)
Create a new Object.
|
boolean |
exists(String path)
Check whether a path is an existing resource.
|
FedoraDatastream |
findOrCreateDatastream(String path)
Get an existing Datastream if it exists, otherwise create a new Datastream.
|
FedoraObject |
findOrCreateObject(String path)
Get an existing Object if it exists, otherwise create a new Object.
|
FedoraDatastream |
getDatastream(String path)
Get an existing Datastream.
|
Iterator<com.hp.hpl.jena.graph.Triple> |
getNodeTypes()
Get an RDF description of the node types configured for this repository.
|
FedoraObject |
getObject(String path)
Get an existing Object.
|
Map<String,String> |
getRepositoryNamespaces()
Get a map of namespace prefixes to URIs.
|
Long |
getRepositoryObjectCount()
Get the number of objects this repository contains.
|
Long |
getRepositorySize()
Get the size of the repository content in bytes.
|
String |
getRepositoryUrl()
Get the base URL for the repository.
|
boolean |
isWritable()
Check whether this repository is writable.
|
void |
registerNodeTypes(InputStream cndStream)
Update the node types for this repository.
|
void |
removeNamespace(String prefix)
Remove a namespace.
|
String getRepositoryUrl()
boolean exists(String path) throws FedoraException
path - The resource path.FedoraExceptionFedoraDatastream getDatastream(String path) throws FedoraException
path - The Datastream path.FedoraExceptionFedoraObject getObject(String path) throws FedoraException
path - The Object path.FedoraExceptionFedoraDatastream createDatastream(String path, FedoraContent content) throws FedoraException
path - The path of the new datastream.content - Content of the new datastream.FedoraExceptionFedoraObject createObject(String path) throws FedoraException
path - The Object path.FedoraExceptionFedoraDatastream findOrCreateDatastream(String path) throws FedoraException
path - The Datastream path.FedoraExceptionFedoraObject findOrCreateObject(String path) throws FedoraException
path - The Object path.FedoraExceptionIterator<com.hp.hpl.jena.graph.Triple> getNodeTypes() throws FedoraException
FedoraExceptionvoid registerNodeTypes(InputStream cndStream) throws FedoraException
cndStream - The new node type definition as a CND content stream.FedoraExceptionMap<String,String> getRepositoryNamespaces() throws FedoraException
FedoraExceptionvoid addNamespace(String prefix, String uri) throws FedoraException
prefix - The namespace prefix.uri - The namespace URI.FedoraExceptionvoid removeNamespace(String prefix) throws FedoraException
prefix - The namespace prefix.FedoraExceptionLong getRepositoryObjectCount() throws FedoraException
FedoraExceptionLong getRepositorySize() throws FedoraException
FedoraExceptionboolean isWritable()
Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.