Class SapCpiOmsStockLevelPersistenceHook
- java.lang.Object
-
- de.hybris.platform.sap.saporderexchangeoms.datahub.inbound.impl.SapOmsDataHubInboundStockLevelHelper
-
- de.hybris.platform.sap.sapcpiorderexchangeoms.inbound.events.SapCpiOmsStockLevelPersistenceHook
-
- All Implemented Interfaces:
PrePersistHook,SapDataHubInboundStockLevelHelper
public class SapCpiOmsStockLevelPersistenceHook extends SapOmsDataHubInboundStockLevelHelper implements PrePersistHook
-
-
Constructor Summary
Constructors Constructor Description SapCpiOmsStockLevelPersistenceHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ItemModel>execute(ItemModel item)Executes this hook before persisting the given item.protected booleanisInitialStockLevel(StockLevelModel stockLevelModel)-
Methods inherited from class de.hybris.platform.sap.saporderexchangeoms.datahub.inbound.impl.SapOmsDataHubInboundStockLevelHelper
calculateStockLevelUnShippedQuantity, getCommerceStockLevelCalculationStrategy, getInventoryEventService, getModelService, processStockLevelNotification, readAndValidateQuantity, setCommerceStockLevelCalculationStrategy, setInventoryEventService, setModelService, updateStockLevel, updateStockLevel
-
-
-
-
Method Detail
-
execute
public java.util.Optional<ItemModel> execute(ItemModel item)
Description copied from interface:PrePersistHookExecutes this hook before persisting the given item.- Specified by:
executein interfacePrePersistHook- Parameters:
item- an item to execute this hook with.- Returns:
- result of processing/modification of the item by this hook to be persisted. If empty, that means there is no item to persist.
-
isInitialStockLevel
protected boolean isInitialStockLevel(StockLevelModel stockLevelModel)
- Overrides:
isInitialStockLevelin classSapOmsDataHubInboundStockLevelHelper
-
-