Class AvailabilitySourcingLocationPopulator
- java.lang.Object
-
- de.hybris.platform.warehousing.sourcing.context.populator.impl.AvailabilitySourcingLocationPopulator
-
- All Implemented Interfaces:
SourcingLocationPopulator
public class AvailabilitySourcingLocationPopulator extends java.lang.Object implements SourcingLocationPopulator
Populate a sourcing location's availability for the items ordered.
-
-
Constructor Summary
Constructors Constructor Description AvailabilitySourcingLocationPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultWarehouseStockServicegetWarehouseStockService()voidpopulate(WarehouseModel source, SourcingLocation target)Populate attributes of the sourcing location.protected voidsetAvailability(WarehouseModel source, AbstractOrderEntryModel entry, java.util.Map<ProductModel,java.lang.Long> availability)Sets the product availability in the map by using the commerce stock service.voidsetWarehouseStockService(DefaultWarehouseStockService warehouseStockService)
-
-
-
Method Detail
-
populate
public void populate(WarehouseModel source, SourcingLocation target)
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, java.util.Map<ProductModel,java.lang.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
protected DefaultWarehouseStockService getWarehouseStockService()
-
setWarehouseStockService
public void setWarehouseStockService(DefaultWarehouseStockService warehouseStockService)
-
-