Interface PrePersistHook
-
- All Known Implementing Classes:
SamplePrePersistHook,SapCpiB2BUnitPersistenceHook,SapCpiClassAssignmentUnitPersistenceHook,SapCpiCustomerPersistenceHook,SapCpiInboundQuoteEntryPersistenceHook,SapCpiInboundQuotePersistenceHook,SapCpiOmmDeliveryPersistenceHook,SapCpiOmmGoodsIssuePersistenceHook,SapCpiOmmOrderCancellationPersistenceHook,SapCpiOmmOrderConfirmationPersistenceHook,SapCpiOmmReturnGoodsIssuePersistenceHook,SapCpiOmmReturnOrderConfirmationPersistenceHook,SapCpiOmsCancelReturnOrderConfirmationPersistenceHook,SapCpiOmsDeliveryPersistenceHook,SapCpiOmsGoodsIssuePersistenceHook,SapCpiOmsOrderCancellationPersistenceHook,SapCpiOmsOrderConfirmationPersistenceHook,SapCpiOmsStockLevelPersistenceHook,SapCpiProductFeatureCleanHook,SapCpiProductFeaturePersistenceHook
public interface PrePersistHookA procedure to be executed before persisting an item model. Name of this procedure must be submitted with a POST request in request header named Pre-Persist-Hook.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<ItemModel>execute(ItemModel item)Executes this hook before persisting the given item.
-
-
-
Method Detail
-
execute
java.util.Optional<ItemModel> execute(ItemModel item)
Executes this hook before persisting the given item.- 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.
-
-