Class SapCpiProductFeaturePersistenceHook
- java.lang.Object
-
- de.hybris.platform.sap.sapcpiproductexchange.inbound.events.SapCpiProductFeaturePersistenceHook
-
- All Implemented Interfaces:
PrePersistHook
public class SapCpiProductFeaturePersistenceHook extends java.lang.Object implements PrePersistHook
-
-
Constructor Summary
Constructors Constructor Description SapCpiProductFeaturePersistenceHook()
-
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 ClassificationSystemServicegetClassificationSystemService()protected ClassificationClassesResolverStrategygetClassResolverStrategy()protected FormatFactorygetFormatFactory()protected ModelServicegetModelService()voidsetClassificationSystemService(ClassificationSystemService classificationSystemService)voidsetClassResolverStrategy(ClassificationClassesResolverStrategy classResolverStrategy)voidsetFormatFactory(FormatFactory formatFactory)voidsetModelService(ModelService modelService)
-
-
-
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.
-
getClassResolverStrategy
protected ClassificationClassesResolverStrategy getClassResolverStrategy()
-
setClassResolverStrategy
public void setClassResolverStrategy(ClassificationClassesResolverStrategy classResolverStrategy)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getFormatFactory
protected FormatFactory getFormatFactory()
-
setFormatFactory
public void setFormatFactory(FormatFactory formatFactory)
-
getClassificationSystemService
protected ClassificationSystemService getClassificationSystemService()
-
setClassificationSystemService
public void setClassificationSystemService(ClassificationSystemService classificationSystemService)
-
-