Class DefaultPersistHookExecutor
java.lang.Object
de.hybris.platform.odata2services.odata.persistence.hook.impl.DefaultPersistHookExecutor
- All Implemented Interfaces:
PersistHookExecutor
@Deprecated(since="2205",
forRemoval=true)
public class DefaultPersistHookExecutor
extends Object
implements PersistHookExecutor
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecutePostPersistHook(String hookName, PostPersistHook hook, ItemModel item, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version.executePrePersistHook(String hookName, PrePersistHook hook, ItemModel item, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version.protected PersistenceHookRegistryDeprecated, for removal: This API element is subject to removal in a future version.voidrunPostPersistHook(String hookName, ItemModel item, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version.Executes aPostPersistHookon an item modelrunPrePersistHook(String hookName, ItemModel item, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version.Executes aPrePersistHookon an item modelvoidDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
DefaultPersistHookExecutor
public DefaultPersistHookExecutor()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
runPrePersistHook
public Optional<ItemModel> runPrePersistHook(String hookName, ItemModel item, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PersistHookExecutorExecutes aPrePersistHookon an item model- Specified by:
runPrePersistHookin interfacePersistHookExecutor- Parameters:
hookName- name of thePrePersistHookSpring bean in the application context to execute.item- an item to execute thePrePersistHookwith.integrationKey- for the current item that is being created or updated- Returns:
- item modified by the hook or empty.
- See Also:
-
runPostPersistHook
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PersistHookExecutorExecutes aPostPersistHookon an item model- Specified by:
runPostPersistHookin interfacePersistHookExecutor- Parameters:
hookName- name of thePostPersistHookSpring bean in the application context to execute.item- an item to execute thePostPersistHookwith.integrationKey- for the current item that is being created or updated- See Also:
-
executePrePersistHook
protected Optional<ItemModel> executePrePersistHook(String hookName, PrePersistHook hook, ItemModel item, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version. -
executePostPersistHook
protected void executePostPersistHook(String hookName, PostPersistHook hook, ItemModel item, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version. -
getPersistHookRegistry
Deprecated, for removal: This API element is subject to removal in a future version. -
setPersistHookRegistry
Deprecated, for removal: This API element is subject to removal in a future version.
-
DefaultPersistenceHookExecutorinstead