Class SapOmsDataHubInboundStockLevelHelper
- java.lang.Object
-
- de.hybris.platform.sap.saporderexchangeoms.datahub.inbound.impl.SapOmsDataHubInboundStockLevelHelper
-
- All Implemented Interfaces:
SapDataHubInboundStockLevelHelper
- Direct Known Subclasses:
SapCpiOmsStockLevelPersistenceHook
public class SapOmsDataHubInboundStockLevelHelper extends java.lang.Object implements SapDataHubInboundStockLevelHelper
-
-
Constructor Summary
Constructors Constructor Description SapOmsDataHubInboundStockLevelHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.LongcalculateStockLevelUnShippedQuantity(StockLevelModel stockLevel)protected CommerceAvailabilityCalculationStrategygetCommerceStockLevelCalculationStrategy()protected InventoryEventServicegetInventoryEventService()protected ModelServicegetModelService()protected booleanisInitialStockLevel(StockLevelModel stockLevelModel)voidprocessStockLevelNotification(java.lang.String stockLevelQuantity, Item stockLevelItem)After the stock replication from ERP, we have one of the following scenarios: 1.protected java.lang.LongreadAndValidateQuantity(java.lang.String quantity)voidsetCommerceStockLevelCalculationStrategy(CommerceAvailabilityCalculationStrategy commerceStockLevelCalculationStrategy)voidsetInventoryEventService(InventoryEventService inventoryEventService)voidsetModelService(ModelService modelService)protected voidupdateStockLevel(Item stockLevelItem, java.lang.Long quantity)protected voidupdateStockLevel(StockLevelModel stockLevelModel, java.lang.Long quantity)
-
-
-
Method Detail
-
processStockLevelNotification
public void processStockLevelNotification(java.lang.String stockLevelQuantity, Item stockLevelItem)Description copied from interface:SapDataHubInboundStockLevelHelperAfter the stock replication from ERP, we have one of the following scenarios: 1. Not shipped allocations + hybris ATP > ERP Stock Level -> Increase inventory event (-the difference) 2. Not shipped allocations + hybris ATP < ERP Stock Level -> Increase inventory event (the difference) 3. Not shipped allocations + hybris ATP = ERP Stock Level -> Do not do anything- Specified by:
processStockLevelNotificationin interfaceSapDataHubInboundStockLevelHelper
-
updateStockLevel
protected void updateStockLevel(Item stockLevelItem, java.lang.Long quantity)
-
updateStockLevel
protected void updateStockLevel(StockLevelModel stockLevelModel, java.lang.Long quantity)
-
isInitialStockLevel
protected boolean isInitialStockLevel(StockLevelModel stockLevelModel)
-
calculateStockLevelUnShippedQuantity
protected java.lang.Long calculateStockLevelUnShippedQuantity(StockLevelModel stockLevel)
-
readAndValidateQuantity
protected java.lang.Long readAndValidateQuantity(java.lang.String quantity)
-
getCommerceStockLevelCalculationStrategy
protected CommerceAvailabilityCalculationStrategy getCommerceStockLevelCalculationStrategy()
-
setCommerceStockLevelCalculationStrategy
public void setCommerceStockLevelCalculationStrategy(CommerceAvailabilityCalculationStrategy commerceStockLevelCalculationStrategy)
-
getInventoryEventService
protected InventoryEventService getInventoryEventService()
-
setInventoryEventService
public void setInventoryEventService(InventoryEventService inventoryEventService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-