Interface PrePersistHook

    • 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.