public class MongoPublisherStoreDAO extends Object implements PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>
| Constructor and Description |
|---|
MongoPublisherStoreDAO() |
| Modifier and Type | Method and Description |
|---|---|
MongoPublisherStore |
createStore(String mdfName,
String mdfInterpretation,
String mdfLayout,
String dbName)
Create a PublisherStore with the given properties.
|
boolean |
deleteFromStore(String storeId,
String dbName,
String set)
Deletes from the store with the given identifier the records belonging to the given set.
|
boolean |
deleteFromStore(String mdfName,
String mdfInterpretation,
String mdfLayout,
String dbName,
String set)
Deletes from the store with the given identifier the records belonging to the given set.
|
boolean |
deleteStore(String storeId,
String dbName)
Deletes the store with the given identifier.
|
boolean |
deleteStore(String mdfName,
String mdfInterpretation,
String mdfLayout,
String dbName)
Deletes the store with the given properties.
|
void |
ensureIndex(MongoPublisherStore store) |
void |
ensureIndex(String dbName) |
eu.dnetlib.data.information.oai.publisher.conf.OAIConfigurationReader |
getConfiguration() |
String |
getMetadataCollection() |
MongoSetCollection |
getMongoSetCollection() |
MongoPublisherStore |
getStore(String storeId,
String dbName)
Gets the store with the given identifier.
|
MongoPublisherStore |
getStore(String mdfName,
String mdfInterpretation,
String mdfLayout,
String dbName)
Gets the store with the given properties.
|
MongoPublisherStore |
getStoreFor(String targetMetadataPrefix,
String dbName)
Gets the store to be used as source to deliver records with the given metadata prefix.
|
boolean |
isAlwaysNewRecord() |
List<MongoPublisherStore> |
listPublisherStores(String dbName)
Lists all PublisherStore.
|
void |
setAlwaysNewRecord(boolean alwaysNewRecord) |
void |
setConfiguration(eu.dnetlib.data.information.oai.publisher.conf.OAIConfigurationReader configuration) |
void |
setMetadataCollection(String metadataCollection) |
void |
setMongoSetCollection(MongoSetCollection mongoSetCollection) |
public List<MongoPublisherStore> listPublisherStores(String dbName)
PublisherStoreDAOlistPublisherStores in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>dbName - name of the target databasepublic MongoPublisherStore getStore(String storeId, String dbName)
PublisherStoreDAOgetStore in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>storeId - identifier of the store to retrievedbName - name of the target databasepublic MongoPublisherStore getStore(String mdfName, String mdfInterpretation, String mdfLayout, String dbName)
PublisherStoreDAOgetStore in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>mdfName - name of the metadata formatmdfInterpretation - name of the metadata interpretationmdfLayout - name of the metadata layoutdbName - name of the target databasepublic MongoPublisherStore getStoreFor(String targetMetadataPrefix, String dbName)
PublisherStoreDAOgetStoreFor in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>targetMetadataPrefix - prefix of the metadata format deliverable through this storedbName - name of the target databasepublic MongoPublisherStore createStore(String mdfName, String mdfInterpretation, String mdfLayout, String dbName) throws eu.dnetlib.data.information.oai.publisher.OaiPublisherException
PublisherStoreDAOcreateStore in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>mdfName - name of the metadata formatmdfInterpretation - name of the metadata interpretationmdfLayout - name of the metadata layoutdbName - name of the target databaseeu.dnetlib.data.information.oai.publisher.OaiPublisherException - if there is already another PublisherStore with the given metadata format name, layout and interpretation.public boolean deleteStore(String storeId, String dbName)
PublisherStoreDAOdeleteStore in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>storeId - id of the store to deletedbName - name of the target databasepublic boolean deleteFromStore(String storeId, String dbName, String set)
PublisherStoreDAOdeleteFromStore in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>storeId - id of the store to deletedbName - name of the target databaseset - name of the setpublic boolean deleteFromStore(String mdfName, String mdfInterpretation, String mdfLayout, String dbName, String set)
PublisherStoreDAOdeleteFromStore in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>mdfName - name of the metadata formatmdfInterpretation - name of the metadata interpretationmdfLayout - name of the metadata layoutdbName - name of the target databaseset - name of the setpublic boolean deleteStore(String mdfName, String mdfInterpretation, String mdfLayout, String dbName)
PublisherStoreDAOdeleteStore in interface PublisherStoreDAO<MongoPublisherStore,DNetOAIMongoCursor>mdfName - name of the metadata formatmdfInterpretation - name of the metadata interpretationmdfLayout - name of the metadata layoutdbName - name of the target databasepublic void ensureIndex(MongoPublisherStore store)
public void ensureIndex(String dbName)
public String getMetadataCollection()
public void setMetadataCollection(String metadataCollection)
public eu.dnetlib.data.information.oai.publisher.conf.OAIConfigurationReader getConfiguration()
public void setConfiguration(eu.dnetlib.data.information.oai.publisher.conf.OAIConfigurationReader configuration)
public MongoSetCollection getMongoSetCollection()
public void setMongoSetCollection(MongoSetCollection mongoSetCollection)
public boolean isAlwaysNewRecord()
public void setAlwaysNewRecord(boolean alwaysNewRecord)
Copyright © 2026. All rights reserved.