public class OfferLogDatabaseService extends Object
| Constructor and Description |
|---|
OfferLogDatabaseService(OfferSequenceDatabaseService offerSequenceDatabaseService,
com.mongodb.client.MongoDatabase mongoDatabase)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bulkSave(String containerName,
List<String> fileNames,
OfferLogAction action)
Save on offerLog.
|
void |
save(String containerName,
String fileName,
OfferLogAction action)
Save on offerLog.
|
List<OfferLog> |
searchOfferLog(String containerName,
Long offset,
int limit,
Order order)
Search in offer log
|
public OfferLogDatabaseService(OfferSequenceDatabaseService offerSequenceDatabaseService, com.mongodb.client.MongoDatabase mongoDatabase)
offerSequenceDatabaseService - offerSequenceServicemongoDatabase - mongoDatabasepublic void save(String containerName, String fileName, OfferLogAction action) throws ContentAddressableStorageServerException, ContentAddressableStorageDatabaseException
containerName - name of the containerfileName - file nameaction - actionContentAddressableStorageServerException - parsing errorContentAddressableStorageDatabaseException - database errorpublic void bulkSave(String containerName, List<String> fileNames, OfferLogAction action) throws ContentAddressableStorageServerException, ContentAddressableStorageDatabaseException
containerName - name of the containerfileNames - file namesaction - actionContentAddressableStorageServerException - parsing errorContentAddressableStorageDatabaseException - database errorpublic List<OfferLog> searchOfferLog(String containerName, Long offset, int limit, Order order) throws ContentAddressableStorageDatabaseException, ContentAddressableStorageServerException
containerName - container nameoffset - sequence offsetlimit - max number of resultorder - orderContentAddressableStorageDatabaseException - database errorContentAddressableStorageServerException - parsing errorCopyright © 2019 Vitam. All rights reserved.