public interface ProductAvailabilityStrategy
| Modifier and Type | Method and Description |
|---|---|
Map<WarehouseModel,Integer> |
getAvailability(String productCode,
List<WarehouseModel> warehouses,
Date date)
Calculates product availability, passing the product, quantity and the warehouses for which the availability
should be returned.
|
Map<WarehouseModel,Date> |
getAvailability(String productCode,
List<WarehouseModel> warehouses,
int quantity)
Gets availability date by invoking strategy for calculating product availability, passing product, quantity and
warehouses as parameters.
|
WarehouseModel |
getBestMatchOfAvailability(Map<WarehouseModel,Date> map) |
WarehouseModel |
getBestMatchOfQuantity(Map<WarehouseModel,Integer> map) |
String |
parse(Map<WarehouseModel,Date> quantities,
String productCode,
int quantity,
LanguageModel language)
Converted the mapped availability in a textual representation.
|
String |
parse(Map<WarehouseModel,Integer> quantities,
String productCode,
Date date,
LanguageModel language)
Converted the mapped quantities in a textual representation.
|
Map<WarehouseModel,Integer> getAvailability(String productCode, List<WarehouseModel> warehouses, Date date)
productCode - code of the productwarehouses - the warehousesdate - the date the specified quantity has to be available at least.Map<WarehouseModel,Date> getAvailability(String productCode, List<WarehouseModel> warehouses, int quantity)
productCode - code of the productwarehouses - the warehousesquantity - the asked quantityString parse(Map<WarehouseModel,Integer> quantities, String productCode, Date date, LanguageModel language)
quantities - the mapped quantitiesString parse(Map<WarehouseModel,Date> quantities, String productCode, int quantity, LanguageModel language)
quantities - the mapped availability datesWarehouseModel getBestMatchOfQuantity(Map<WarehouseModel,Integer> map)
WarehouseModel getBestMatchOfAvailability(Map<WarehouseModel,Date> map)
Copyright © 2017 SAP SE. All Rights Reserved.