vertx/src/main/java/eu/internetofus/common/vertx/ModelResources.java
/**
   * The method to call when is creating a model.
   *
   * @param value   of the model to verify.
   * @param model   context of the model to create.
   * @param storer  the function used to store the model.
   * @param context of the request.
   *
   * @param <T>     type of model to create.
   * @param <I>     type of the model identifier.
   * @param <C>     type of validation context to use.
   */
The method to call when is creating a model.
@param value   of the model to verify.
@param model   context of the model to create.
@param storer  the function used to store the model.
@param context of the request.

@param      type of model to create.
@param      type of the model identifier.
@param      type of validation context to use.
The method to call when is creating a model . @param value of the model to verify . @param model context of the model to create . @param storer the function used to store the model . @param context of the request . @param type of model to create . @param type of the model identifier . @param type of validation context to use .
static public <C extends ValidateContext<C>, T extends Model & Validable<C>, I> void createModel(
      final JsonObject value, @NotNull final ModelContext<T, I, C> model,
      @NotNull final BiConsumer<T, Handler<AsyncResult<T>>> storer, @NotNull final ServiceContext context) {
    createModelChain(value, model, storer, context,
        () -> ServiceResponseHandlers.responseWith(context.resultHandler, Status.CREATED, model.value));
  }
static public < C extends ValidateContext < C > , T extends Model & Validable < C > , I > void createModel ( final JsonObject value , @ NotNull final ModelContext < T , I , C > model , @ NotNull final BiConsumer < T , Handler < AsyncResult < T > > > storer , @ NotNull final ServiceContext context ) { createModelChain ( value , model , storer , context , ( ) -> ServiceResponseHandlers . responseWith ( context . resultHandler , Status . CREATED , model . value ) ) ; }
The method to call when is creating a model.
The method to call when is creating a model .