public class FileSystemObjectStoreDao extends Object implements eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDao
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_PATH_FIELD |
static String |
INTERPRETATION_FIELD |
static String |
OBJECTSTORE_ID_FIELD |
static String |
OBJECTSTORE_METADATA_NAME_FIELD |
| Constructor and Description |
|---|
FileSystemObjectStoreDao() |
| 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 obsId) |
String |
getObjectStoreRESTURI() |
boolean |
isUpsert() |
List<String> |
listObjectStores() |
void |
setDb(com.mongodb.client.MongoDatabase db) |
void |
setObjectStoreRESTURI(String objectStoreRESTURI) |
void |
setUpsert(boolean upsert) |
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 static final String BASE_PATH_FIELD
public eu.dnetlib.data.objectstore.modular.connector.ObjectStore getObjectStore(String obsId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
getObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStoreDao.getObjectStore(java.lang.String)public List<String> listObjectStores()
listObjectStores in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoObjectStoreDao.listObjectStores()public 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.ObjectStoreDaoObjectStoreDao.updateObjectStore(java.lang.String, java.lang.String)public 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.ObjectStoreServiceExceptionObjectStoreDao.deleteObjectStore(java.lang.String)public 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 boolean isUpsert()
public void setUpsert(boolean upsert)
public String getObjectStoreRESTURI()
public void setObjectStoreRESTURI(String objectStoreRESTURI)
public com.mongodb.client.MongoDatabase getDb()
public void setDb(com.mongodb.client.MongoDatabase db)
Copyright © 2018. All rights reserved.