Class AvailabilitySourcingLocationPopulator
java.lang.Object
de.hybris.platform.warehousing.sourcing.context.populator.impl.AvailabilitySourcingLocationPopulator
- All Implemented Interfaces:
SourcingLocationPopulator
public class AvailabilitySourcingLocationPopulator
extends Object
implements SourcingLocationPopulator
Populate a sourcing location's availability for the items ordered.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultWarehouseStockServicevoidpopulate(WarehouseModel source, SourcingLocation target) Populate attributes of the sourcing location.protected voidsetAvailability(WarehouseModel source, AbstractOrderEntryModel entry, Map<ProductModel, Long> availability) Sets the product availability in the map by using the commerce stock service.voidsetWarehouseStockService(DefaultWarehouseStockService warehouseStockService)
-
Constructor Details
-
AvailabilitySourcingLocationPopulator
public AvailabilitySourcingLocationPopulator()
-
-
Method Details
-
populate
Description copied from interface:SourcingLocationPopulatorPopulate attributes of the sourcing location.- Specified by:
populatein interfaceSourcingLocationPopulator- Parameters:
source- - the point of service modeltarget- - the sourcing location DTO
-
setAvailability
protected void setAvailability(WarehouseModel source, AbstractOrderEntryModel entry, Map<ProductModel, Long> availability) Sets the product availability in the map by using the commerce stock service.- Parameters:
source- - the warehouse modelentry- - the order entry modelavailability- - the map containing the availability; the value is never null
-
getWarehouseStockService
-
setWarehouseStockService
-