public class AvailabilitySourcingLocationPopulator extends Object implements SourcingLocationPopulator
| Constructor and Description |
|---|
AvailabilitySourcingLocationPopulator() |
| Modifier and Type | Method and Description |
|---|---|
protected DefaultWarehouseStockService |
getWarehouseStockService() |
void |
populate(WarehouseModel source,
SourcingLocation target)
Populate attributes of the sourcing location.
|
protected void |
setAvailability(WarehouseModel source,
AbstractOrderEntryModel entry,
Map<ProductModel,Long> availability)
Sets the product availability in the map by using the commerce stock service.
|
void |
setWarehouseStockService(DefaultWarehouseStockService warehouseStockService) |
public AvailabilitySourcingLocationPopulator()
public void populate(WarehouseModel source, SourcingLocation target)
SourcingLocationPopulatorpopulate in interface SourcingLocationPopulatorsource - - the point of service modeltarget - - the sourcing location DTOprotected void setAvailability(WarehouseModel source, AbstractOrderEntryModel entry, Map<ProductModel,Long> availability)
source - - the warehouse modelentry - - the order entry modelavailability - - the map containing the availability; the value is never nullprotected DefaultWarehouseStockService getWarehouseStockService()
public void setWarehouseStockService(DefaultWarehouseStockService warehouseStockService)
Copyright © 2017 SAP SE. All Rights Reserved.