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 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: PersistHookExecutor
      Executes a PrePersistHook on an item model
      Specified by:
      runPrePersistHook in interface PersistHookExecutor
      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

      public void runPostPersistHook(String hookName, ItemModel item, String integrationKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: PersistHookExecutor
      Executes a PostPersistHook on an item model
      Specified by:
      runPostPersistHook in interface PersistHookExecutor
      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:
    • 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

      protected PersistenceHookRegistry getPersistHookRegistry()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPersistHookRegistry

      public void setPersistHookRegistry(PersistenceHookRegistry registry)
      Deprecated, for removal: This API element is subject to removal in a future version.