Interface PrePersistHook
-
- All Known Implementing Classes:
SamplePrePersistHook
public interface PrePersistHookA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<ItemModel>execute(ItemModel item)Executes this hook before persisting the given item.
-
-
-
Method Detail
-
execute
java.util.Optional<ItemModel> execute(ItemModel item)
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.
-
-