Interface PersistHookExecutor
-
- All Known Implementing Classes:
DefaultPersistHookExecutor
public interface PersistHookExecutorA service for executing persistence hooks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrunPostPersistHook(java.lang.String hookName, ItemModel item, java.lang.String integrationKey)Executes aPostPersistHookon an item modeljava.util.Optional<ItemModel>runPrePersistHook(java.lang.String hookName, ItemModel item, java.lang.String integrationKey)Executes aPrePersistHookon an item model
-
-
-
Method Detail
-
runPrePersistHook
java.util.Optional<ItemModel> runPrePersistHook(java.lang.String hookName, ItemModel item, java.lang.String integrationKey)
Executes aPrePersistHookon an item model- 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:
PrePersistHook.execute(ItemModel)
-
runPostPersistHook
void runPostPersistHook(java.lang.String hookName, ItemModel item, java.lang.String integrationKey)Executes aPostPersistHookon an item model- 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:
PostPersistHook.execute(ItemModel)
-
-