public class FedoraRepositoryImpl extends java.lang.Object implements FedoraRepository
| Modifier and Type | Field and Description |
|---|---|
protected HttpHelper |
httpHelper |
protected java.lang.String |
repositoryURL |
| Modifier | Constructor and Description |
|---|---|
protected |
FedoraRepositoryImpl() |
|
FedoraRepositoryImpl(java.lang.String repositoryURL)
Constructor that takes the repository url
|
|
FedoraRepositoryImpl(java.lang.String repositoryURL,
org.apache.http.client.HttpClient httpClient)
Constructor that takes the pre-configured HttpClient
|
|
FedoraRepositoryImpl(java.lang.String repositoryURL,
java.lang.String username,
java.lang.String password)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespace(java.lang.String prefix,
java.lang.String uri) |
FedoraDatastream |
createDatastream(java.lang.String path,
FedoraContent content) |
FedoraObject |
createObject(java.lang.String path) |
boolean |
exists(java.lang.String path) |
FedoraDatastream |
findOrCreateDatastream(java.lang.String path) |
FedoraObject |
findOrCreateObject(java.lang.String path) |
FedoraDatastream |
getDatastream(java.lang.String path) |
java.util.Iterator<com.hp.hpl.jena.graph.Triple> |
getNodeTypes() |
FedoraObject |
getObject(java.lang.String path) |
java.util.Map<java.lang.String,java.lang.String> |
getRepositoryNamespaces() |
java.lang.Long |
getRepositoryObjectCount() |
java.lang.Long |
getRepositorySize() |
java.lang.String |
getRepositoryUrl() |
boolean |
isWritable() |
void |
registerNodeTypes(java.io.InputStream cndStream) |
void |
removeNamespace(java.lang.String prefix) |
protected HttpHelper httpHelper
protected java.lang.String repositoryURL
protected FedoraRepositoryImpl()
public FedoraRepositoryImpl(java.lang.String repositoryURL)
repositoryURL - Fedora base URL.public FedoraRepositoryImpl(java.lang.String repositoryURL,
java.lang.String username,
java.lang.String password)
repositoryURL - Repository base URLusername - Repository usernamepassword - Repository passwordpublic FedoraRepositoryImpl(java.lang.String repositoryURL,
org.apache.http.client.HttpClient httpClient)
repositoryURL - Repository baseURLhttpClient - Pre-configured httpClientpublic boolean exists(java.lang.String path)
throws FedoraException,
ForbiddenException
exists in interface FedoraRepositoryFedoraExceptionForbiddenExceptionpublic FedoraDatastream getDatastream(java.lang.String path) throws FedoraException
getDatastream in interface FedoraRepositoryFedoraExceptionpublic FedoraObject getObject(java.lang.String path) throws FedoraException
getObject in interface FedoraRepositoryFedoraExceptionpublic FedoraDatastream createDatastream(java.lang.String path, FedoraContent content) throws FedoraException
createDatastream in interface FedoraRepositoryFedoraExceptionpublic FedoraObject createObject(java.lang.String path) throws FedoraException
createObject in interface FedoraRepositoryFedoraExceptionpublic FedoraDatastream findOrCreateDatastream(java.lang.String path) throws FedoraException
findOrCreateDatastream in interface FedoraRepositoryFedoraExceptionpublic FedoraObject findOrCreateObject(java.lang.String path) throws FedoraException
findOrCreateObject in interface FedoraRepositoryFedoraExceptionpublic java.util.Iterator<com.hp.hpl.jena.graph.Triple> getNodeTypes()
getNodeTypes in interface FedoraRepositorypublic void registerNodeTypes(java.io.InputStream cndStream)
throws ReadOnlyException
registerNodeTypes in interface FedoraRepositoryReadOnlyExceptionpublic java.util.Map<java.lang.String,java.lang.String> getRepositoryNamespaces()
getRepositoryNamespaces in interface FedoraRepositorypublic void addNamespace(java.lang.String prefix,
java.lang.String uri)
throws ReadOnlyException
addNamespace in interface FedoraRepositoryReadOnlyExceptionpublic void removeNamespace(java.lang.String prefix)
throws ReadOnlyException
removeNamespace in interface FedoraRepositoryReadOnlyExceptionpublic java.lang.Long getRepositoryObjectCount()
getRepositoryObjectCount in interface FedoraRepositorypublic java.lang.Long getRepositorySize()
getRepositorySize in interface FedoraRepositorypublic boolean isWritable()
isWritable in interface FedoraRepositorypublic java.lang.String getRepositoryUrl()
getRepositoryUrl in interface FedoraRepositoryCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.