public class S3ObjectStoreDao extends Object implements eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDao
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERPRETATION_FIELD |
static String |
OBJECTSTORE_ID_FIELD |
static String |
OBJECTSTORE_METADATA_NAME_FIELD |
| Constructor and Description |
|---|
S3ObjectStoreDao() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createObjectStore(String obsId,
String interpretation,
String basePath) |
boolean |
deleteObjectStore(String obsId) |
boolean |
dropContent(String obsId) |
com.mongodb.client.MongoDatabase |
getDb() |
eu.dnetlib.data.objectstore.modular.connector.ObjectStore |
getObjectStore(String objectStoreId) |
List<String> |
listObjectStores() |
void |
setDb(com.mongodb.client.MongoDatabase db) |
boolean |
updateObjectStore(String obsId,
String interpretation) |
public static final String INTERPRETATION_FIELD
public static final String OBJECTSTORE_METADATA_NAME_FIELD
public static final String OBJECTSTORE_ID_FIELD
public eu.dnetlib.data.objectstore.modular.connector.ObjectStore getObjectStore(String objectStoreId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
getObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic List<String> listObjectStores()
listObjectStores in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaopublic boolean createObjectStore(String obsId, String interpretation, String basePath) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
createObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic boolean updateObjectStore(String obsId, String interpretation)
updateObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaopublic boolean deleteObjectStore(String obsId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
deleteObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic boolean dropContent(String obsId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
dropContent in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic com.mongodb.client.MongoDatabase getDb()
public void setDb(com.mongodb.client.MongoDatabase db)
Copyright © 2020. All rights reserved.