All Known Implementing Classes:
SamplePrePersistHook

@Deprecated(since="2205", forRemoval=true) public interface PrePersistHook
Deprecated, for removal: This API element is subject to removal in a future version.
use PrePersistHook instead
A procedure to be executed before persisting an item model. Name of this procedure must be submitted with a POST request in request header named Pre-Persist-Hook.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Executes this hook before persisting the given item.
  • Method Details

    • execute

      Optional<ItemModel> execute(ItemModel item)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Executes this hook before persisting the given item.
      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.