public class ReadOnlyFedoraRepositoryImpl extends FedoraRepositoryImpl implements FedoraRepository
httpHelper, repositoryURL| Constructor and Description |
|---|
ReadOnlyFedoraRepositoryImpl(String repositoryURL)
Constructor that takes the repository url
|
ReadOnlyFedoraRepositoryImpl(String repositoryURL,
org.apache.http.client.HttpClient httpClient)
Constructor that takes the pre-configured HttpClient
|
ReadOnlyFedoraRepositoryImpl(String repositoryURL,
String username,
String password)
Constructor that takes the repoistory url and username/password for connecting
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespace(String prefix,
String uri) |
FedoraDatastream |
createDatastream(String path,
FedoraContent content) |
FedoraObject |
createObject(String path) |
FedoraDatastream |
findOrCreateDatastream(String path) |
FedoraObject |
findOrCreateObject(String path) |
boolean |
isWritable() |
void |
registerNodeTypes(InputStream cndStream) |
void |
removeNamespace(String prefix) |
createOrUpdateRedirectDatastream, exists, getDatastream, getNodeTypes, getObject, getRepositoryNamespaces, getRepositoryObjectCount, getRepositorySize, getRepositoryUrlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateOrUpdateRedirectDatastream, exists, getDatastream, getNodeTypes, getObject, getRepositoryNamespaces, getRepositoryObjectCount, getRepositorySize, getRepositoryUrlpublic ReadOnlyFedoraRepositoryImpl(String repositoryURL)
repositoryURL - Fedora base URL.public ReadOnlyFedoraRepositoryImpl(String repositoryURL, String username, String password)
repositoryURL - Repository base URLusername - Repository usernamepassword - Repository passwordpublic ReadOnlyFedoraRepositoryImpl(String repositoryURL, org.apache.http.client.HttpClient httpClient)
repositoryURL - Repository baseURLhttpClient - Pre-configured httpClientpublic FedoraDatastream createDatastream(String path, FedoraContent content) throws ReadOnlyException
createDatastream in interface FedoraRepositorycreateDatastream in class FedoraRepositoryImplReadOnlyExceptionpublic FedoraObject createObject(String path) throws FedoraException
createObject in interface FedoraRepositorycreateObject in class FedoraRepositoryImplFedoraExceptionpublic FedoraDatastream findOrCreateDatastream(String path) throws FedoraException
findOrCreateDatastream in interface FedoraRepositoryfindOrCreateDatastream in class FedoraRepositoryImplFedoraExceptionpublic FedoraObject findOrCreateObject(String path) throws FedoraException
findOrCreateObject in interface FedoraRepositoryfindOrCreateObject in class FedoraRepositoryImplFedoraExceptionpublic void registerNodeTypes(InputStream cndStream) throws ReadOnlyException
registerNodeTypes in interface FedoraRepositoryregisterNodeTypes in class FedoraRepositoryImplReadOnlyExceptionpublic void addNamespace(String prefix, String uri) throws ReadOnlyException
addNamespace in interface FedoraRepositoryaddNamespace in class FedoraRepositoryImplReadOnlyExceptionpublic void removeNamespace(String prefix) throws ReadOnlyException
removeNamespace in interface FedoraRepositoryremoveNamespace in class FedoraRepositoryImplReadOnlyExceptionpublic boolean isWritable()
isWritable in interface FedoraRepositoryisWritable in class FedoraRepositoryImplCopyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.