Revision 43641
Added by Alessia Bardi over 7 years ago
MongoPublisherStoreDAO.java | ||
---|---|---|
63 | 63 |
@Override |
64 | 64 |
public MongoPublisherStore createStore(final String mdfName, final String mdfInterpretation, final String mdfLayout, final String dbName) |
65 | 65 |
throws OaiPublisherException { |
66 |
log.debug("CREATING OAI STORE"); |
|
66 | 67 |
MongoDatabase db = this.mongoCacheHelper.getDB(dbName); |
67 | 68 |
DBObject store = createMetadataEntry(mdfName, mdfInterpretation, mdfLayout); |
68 | 69 |
MongoCollection<DBObject> metadata = db.getCollection(this.metadataCollection, DBObject.class); |
... | ... | |
76 | 77 |
|
77 | 78 |
@Override |
78 | 79 |
public boolean deleteStore(final String storeId, final String dbName) { |
80 |
log.debug("DELETING OAI STORE "+storeId+" -- db: "+dbName); |
|
79 | 81 |
this.mongoCacheHelper.deleteFromCache(storeId); |
80 | 82 |
MongoDatabase db = this.mongoCacheHelper.getDB(dbName); |
81 | 83 |
MongoCollection<DBObject> metadata = db.getCollection(this.metadataCollection, DBObject.class); |
... | ... | |
92 | 94 |
|
93 | 95 |
@Override |
94 | 96 |
public boolean deleteFromStore(final String storeId, final String dbName, final String set) { |
97 |
log.debug(String.format("DELETING OAI STORE %s BY SET %s from db %s", storeId, set, dbName)); |
|
95 | 98 |
this.mongoCacheHelper.deleteFromCache(storeId); |
96 | 99 |
MongoDatabase db = this.mongoCacheHelper.getDB(dbName); |
97 | 100 |
MongoCollection<DBObject> metadata = db.getCollection(this.metadataCollection, DBObject.class); |
Also available in: Unified diff
More logs