public class OfferLogDatabaseService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OFFER_LOG_COLLECTION_NAME |
Constructor and Description |
---|
OfferLogDatabaseService(OfferSequenceDatabaseService offerSequenceDatabaseService,
com.mongodb.client.MongoDatabase mongoDatabase)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
save(String containerName,
String fileName,
String action)
Save on offerLog.
|
List<OfferLog> |
searchOfferLog(String containerName,
Long offset,
int limit,
Order order)
Search in offer log
|
public static final String OFFER_LOG_COLLECTION_NAME
public OfferLogDatabaseService(OfferSequenceDatabaseService offerSequenceDatabaseService, com.mongodb.client.MongoDatabase mongoDatabase)
offerSequenceDatabaseService
- offerSequenceServicemongoDatabase
- mongoDatabasepublic void save(String containerName, String fileName, String action) throws ContentAddressableStorageServerException, ContentAddressableStorageDatabaseException
containerName
- name of the containerfileName
- file nameaction
- 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 © 2018 Vitam. All rights reserved.