All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.unterrainer.commons.httpserver.extensions.delegates.PostDeleteSync Maven / Gradle / Ivy

There is a newer version: 0.3.14
Show newest version
package info.unterrainer.commons.httpserver.extensions.delegates;

import info.unterrainer.commons.rdbutils.entities.BasicJpa;
import io.javalin.http.Context;

public interface PostDeleteSync

{ /** * Allows you to execute code after the deletion of an item.
* You may change the ID with the return-value. *

* Returning {@code false} will abort. So be sure to return something * (status...) in that case using the {@link Context}. * * @param ctx the Javalin context * @param entityManager the entity-manager you can use to get the active * transaction, if any * @param receivedId the ID of the item that was deleted * @param deletedJpa the JPA that was deleted * @return true, if the handler-chain should be continued to be processed, false * otherwise. */ boolean handle(Context ctx, E entityManager, Long receivedId, P deletedJpa); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy