Interface PrePersistHook
- All Known Implementing Classes:
PrePersistHookAdapter,SamplePrePersistHook
public interface PrePersistHook
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 TypeMethodDescriptionexecute(ItemModel item, PersistenceContext context) Executes this hook before persisting the given item.
-
Method Details
-
execute
Executes this hook before persisting the given item.- Parameters:
item- an item to execute this hook with.context- to provide information about the item to be persisted- Returns:
- result of processing/modification of the item by this hook to be persisted. If empty, that means there is no item to persist.
- See Also:
-