components/src/main/java/eu/internetofus/common/components/social_context_builder/WeNetSocialContextBuilder.java
/**
   * Post the preferences of an user. This calculate the social user ranking. In
   * other words, from a set of volunteers it order form the best to the worst.
   *
   * @param userId     identifier of the user.
   * @param taskId     identifier of the task
   * @param volunteers the identifier of the volunteers of the task.
   *
   * @return the future with the ranking of the users.
   */
Post the preferences of an user. This calculate the social user ranking. In
other words, from a set of volunteers it order form the best to the worst.

@param userId     identifier of the user.
@param taskId     identifier of the task
@param volunteers the identifier of the volunteers of the task.

@return the future with the ranking of the users.
Post the preferences of an user . This calculate the social user ranking . In other words from a set of volunteers it order form the best to the worst . @param userId identifier of the user . @param taskId identifier of the task @param volunteers the identifier of the volunteers of the task . @return the future with the ranking of the users .
@GenIgnore
  default Future<List<String>> postSocialPreferencesForUserOnTask(@NotNull final String userId,
      @NotNull final String taskId, @NotNull final List<String> volunteers) {
    final Promise<JsonArray> promise = Promise.promise();
    final var array = Model.toJsonArray(volunteers);
    this.postSocialPreferencesForUserOnTask(userId, taskId, array, promise);
    return Model.fromFutureJsonArray(promise.future(), String.class);
  }
@ GenIgnore default Future < List < String > > postSocialPreferencesForUserOnTask ( @ NotNull final String userId , @ NotNull final String taskId , @ NotNull final List < String > volunteers ) { final Promise < JsonArray > promise = Promise . promise ( ) ; final var array = Model . toJsonArray ( volunteers ) ; this . postSocialPreferencesForUserOnTask ( userId , taskId , array , promise ) ; return Model . fromFutureJsonArray ( promise . future ( ) , String . class ) ; }
Post the preferences of an user.
Post the preferences of an user .