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