vertx/src/main/java/eu/internetofus/common/vertx/ModelResources.java
/**
   * Merge a JSON model to the defined on the DB and finish with an OK.
   *
   * @param value    of the model to merge.
   * @param model    context of the model to merge.
   * @param searcher the function used to obtain a model.
   * @param updater  the function used to update a model.
   * @param context  of the request.
   *
   * @param <T>      type of model to merge.
   * @param <I>      type of the model identifier.
   * @param <C>      type of validation context to use.
   */
Merge a JSON model to the defined on the DB and finish with an OK.
@param value    of the model to merge.
@param model    context of the model to merge.
@param searcher the function used to obtain a model.
@param updater  the function used to update a model.
@param context  of the request.

@param       type of model to merge.
@param       type of the model identifier.
@param       type of validation context to use.
Merge a JSON model to the defined on the DB and finish with an OK . @param value of the model to merge . @param model context of the model to merge . @param searcher the function used to obtain a model . @param updater the function used to update a model . @param context of the request . @param type of model to merge . @param type of the model identifier . @param type of validation context to use .
static public <C extends ValidateContext<C>, T extends Model & Mergeable<T, C>, I> void mergeModel(
      final JsonObject value, @NotNull final ModelContext<T, I, C> model,
      @NotNull final BiConsumer<I, Handler<AsyncResult<T>>> searcher,
      @NotNull final BiConsumer<T, Handler<AsyncResult<Void>>> updater, @NotNull final ServiceContext context) {
    mergeModelChain(value, model, searcher, updater, context,
        () -> ServiceResponseHandlers.responseOk(context.resultHandler, model.value));
  }
static public < C extends ValidateContext < C > , T extends Model & Mergeable < T , C > , I > void mergeModel ( final JsonObject value , @ NotNull final ModelContext < T , I , C > model , @ NotNull final BiConsumer < I , Handler < AsyncResult < T > > > searcher , @ NotNull final BiConsumer < T , Handler < AsyncResult < Void > > > updater , @ NotNull final ServiceContext context ) { mergeModelChain ( value , model , searcher , updater , context , ( ) -> ServiceResponseHandlers . responseOk ( context . resultHandler , model . value ) ) ; }
Merge a JSON model to the defined on the DB and finish with an OK.
 @param value    of the model to merge.
Merge a JSON model to the defined on the DB and finish with an OK . @param value of the model to merge .