Interface PersistHookExecutor

All Known Implementing Classes:
DefaultPersistHookExecutor

@Deprecated(since="2205", forRemoval=true) public interface PersistHookExecutor
Deprecated, for removal: This API element is subject to removal in a future version.
A service for executing persistence hooks.
  • Method Details

    • runPrePersistHook

      Optional<ItemModel> runPrePersistHook(String hookName, ItemModel item, String integrationKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Executes a PrePersistHook on an item model
      Parameters:
      hookName - name of the PrePersistHook Spring bean in the application context to execute.
      item - an item to execute the PrePersistHook with.
      integrationKey - for the current item that is being created or updated
      Returns:
      item modified by the hook or empty.
      See Also:
    • runPostPersistHook

      void runPostPersistHook(String hookName, ItemModel item, String integrationKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Executes a PostPersistHook on an item model
      Parameters:
      hookName - name of the PostPersistHook Spring bean in the application context to execute.
      item - an item to execute the PostPersistHook with.
      integrationKey - for the current item that is being created or updated
      See Also: