public interface DriverMapper
Modifier and Type | Method and Description |
---|---|
void |
addOffersTo(List<String> offersIdsToAdd,
String driverName)
Add list of offers to a driver's offers persisted list (and persists it)
|
void |
addOfferTo(String offerId,
String driverName)
Add one offer to a driver's offers persisted list (and persists it)
|
List<String> |
getOffersFor(String driverName)
Get persisted offers list for a driver
|
void |
removeOffersTo(List<String> offersIdsToRemove,
String driverName)
Remove list of offers to a driver's offers persisted list (and persist
it)
|
void |
removeOfferTo(String offerId,
String driverName)
Remove one offer to a driver's offers persisted list (and persists it)
|
List<String> getOffersFor(String driverName) throws StorageDriverMapperException
driverName
- the driver nameStorageDriverMapperException
- if application cannot have information (reading error for
example)void addOfferTo(String offerId, String driverName) throws StorageDriverMapperException
offerId
- the offer ID to append and persistdriverName
- the driver nameStorageDriverMapperException
- if application cannot have information (writing error for
example)void addOffersTo(List<String> offersIdsToAdd, String driverName) throws StorageDriverMapperException
offersIdsToAdd
- the offers IDs list to append and persistdriverName
- the driver nameStorageDriverMapperException
- if application cannot have information (writing error for
example)void removeOfferTo(String offerId, String driverName) throws StorageDriverMapperException
offerId
- the offer ID to remove and persistdriverName
- the driver nameStorageDriverMapperException
- if application cannot have information (writing error for
example)void removeOffersTo(List<String> offersIdsToRemove, String driverName) throws StorageDriverMapperException
offersIdsToRemove
- the offers IDs list to remove and persistdriverName
- the driver nameStorageDriverMapperException
- if application cannot have information (writing error for
example)Copyright © 2018 Vitam. All rights reserved.