Skip to content

Commit

Permalink
Fixing bugs with user pages
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Aug 23, 2024
1 parent 7f2d51e commit 952aba8
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 46 deletions.
14 changes: 8 additions & 6 deletions src/main/java/org/computate/frFR/java/EcrireApiClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public void ecrireGenApiService(String classeLangueNom) throws Exception {
auteurGenApiService.l("import com.hubspot.jinjava.Jinjava;");
auteurGenApiService.l("import io.vertx.core.WorkerExecutor;");
auteurGenApiService.l("import io.vertx.pgclient.PgPool;");
auteurGenApiService.l("import org.computate.vertx.openapi.ComputateOAuth2AuthHandlerImpl;");
auteurGenApiService.l("import io.vertx.kafka.client.producer.KafkaProducer;");
auteurGenApiService.l("import io.vertx.mqtt.MqttClient;");
auteurGenApiService.l("import io.vertx.amqp.AmqpSender;");
Expand Down Expand Up @@ -299,8 +300,8 @@ public void ecrireGenApiService(String classeLangueNom) throws Exception {
l();
tl(8, "protected WebClient ", i18nGlobale.getString(I18n.var_clientWeb), ";");

auteurGenApiService.tl(1, "static ", classeNomSimpleApiServiceImpl, " ", i18nGlobale.getString(I18n.var_enregistrer), "Service(EventBus eventBus, JsonObject config, WorkerExecutor ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", PgPool pgPool, KafkaProducer<String, String> kafkaProducer, MqttClient mqttClient, AmqpSender amqpSender, RabbitMQClient rabbitmqClient, WebClient ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", OAuth2Auth oauth2AuthenticationProvider, AuthorizationProvider authorizationProvider" : "", classePage ? ", Jinjava jinjava" : "", ", Vertx vertx) {");
auteurGenApiService.tl(2, classeNomSimpleApiServiceImpl, " api = new ", classeNomSimpleApiServiceImpl, "(eventBus, config, ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", pgPool, kafkaProducer, mqttClient, amqpSender, rabbitmqClient, ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", oauth2AuthenticationProvider, authorizationProvider" : "", classePage ? ", jinjava" : "", ");");
auteurGenApiService.tl(1, "static ", classeNomSimpleApiServiceImpl, " ", i18nGlobale.getString(I18n.var_enregistrer), "Service(EventBus eventBus, JsonObject config, WorkerExecutor ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", ComputateOAuth2AuthHandlerImpl oauth2AuthHandler, PgPool pgPool, KafkaProducer<String, String> kafkaProducer, MqttClient mqttClient, AmqpSender amqpSender, RabbitMQClient rabbitmqClient, WebClient ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", OAuth2Auth oauth2AuthenticationProvider, AuthorizationProvider authorizationProvider" : "", classePage ? ", Jinjava jinjava" : "", ", Vertx vertx) {");
auteurGenApiService.tl(2, classeNomSimpleApiServiceImpl, " api = new ", classeNomSimpleApiServiceImpl, "(eventBus, config, ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", oauth2AuthHandler, pgPool, kafkaProducer, mqttClient, amqpSender, rabbitmqClient, ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", oauth2AuthenticationProvider, authorizationProvider" : "", classePage ? ", jinjava" : "", ");");
auteurGenApiService.tl(2, "new ServiceBinder(vertx).setAddress(", classeNomSimple, ".get", i18nGlobale.getString(I18n.var_ClasseApiAddresse), "()).register(", classeNomSimpleGenApiService, ".class, api);");
auteurGenApiService.tl(2, "return api;");
auteurGenApiService.tl(1, "}");
Expand Down Expand Up @@ -376,6 +377,7 @@ public void ecrireApiServiceImpl(String classeLangueNom) throws Exception {
auteurApiServiceImpl.l("import io.vertx.core.WorkerExecutor;");
auteurApiServiceImpl.l("import io.vertx.core.json.JsonObject;");
auteurApiServiceImpl.l("import io.vertx.pgclient.PgPool;");
auteurApiServiceImpl.l("import org.computate.vertx.openapi.ComputateOAuth2AuthHandlerImpl;");
auteurApiServiceImpl.l("import io.vertx.kafka.client.producer.KafkaProducer;");
auteurApiServiceImpl.l("import io.vertx.mqtt.MqttClient;");
auteurApiServiceImpl.l("import io.vertx.amqp.AmqpSender;");
Expand All @@ -402,8 +404,8 @@ public void ecrireApiServiceImpl(String classeLangueNom) throws Exception {
auteurApiServiceImpl.l(" **/");
auteurApiServiceImpl.l("public class ", classeNomSimpleApiServiceImpl, " extends ", classeNomSimpleGenApiServiceImpl, " {");
auteurApiServiceImpl.l();
auteurApiServiceImpl.tl(1, "public ", classeNomSimpleApiServiceImpl, "(EventBus eventBus, JsonObject config, WorkerExecutor ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", PgPool pgPool, KafkaProducer<String, String> kafkaProducer, MqttClient mqttClient, AmqpSender amqpSender, RabbitMQClient rabbitmqClient, WebClient ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", OAuth2Auth oauth2AuthenticationProvider, AuthorizationProvider authorizationProvider" : "", classePage ? ", Jinjava jinjava" : "", ") {");
auteurApiServiceImpl.tl(2, "super(eventBus, config, ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", pgPool, kafkaProducer, mqttClient, amqpSender, rabbitmqClient, ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", oauth2AuthenticationProvider, authorizationProvider" : "", classePage ? ", jinjava" : "", ");");
auteurApiServiceImpl.tl(1, "public ", classeNomSimpleApiServiceImpl, "(EventBus eventBus, JsonObject config, WorkerExecutor ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", ComputateOAuth2AuthHandlerImpl oauth2AuthHandler, PgPool pgPool, KafkaProducer<String, String> kafkaProducer, MqttClient mqttClient, AmqpSender amqpSender, RabbitMQClient rabbitmqClient, WebClient ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", OAuth2Auth oauth2AuthenticationProvider, AuthorizationProvider authorizationProvider" : "", classePage ? ", Jinjava jinjava" : "", ") {");
auteurApiServiceImpl.tl(2, "super(eventBus, config, ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", oauth2AuthHandler, pgPool, kafkaProducer, mqttClient, amqpSender, rabbitmqClient, ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", oauth2AuthenticationProvider, authorizationProvider" : "", classePage ? ", jinjava" : "", ");");
auteurApiServiceImpl.tl(1, "}");
auteurApiServiceImpl.l("}");

Expand Down Expand Up @@ -1759,8 +1761,8 @@ public void ecrireGenApiServiceImpl2(String classeLangueNom) throws Exception {
l();
tl(1, "protected static final Logger LOG = LoggerFactory.getLogger(", classeNomSimpleGenApiServiceImpl, ".class);");
l();
tl(1, "public ", classeNomSimpleGenApiServiceImpl, "(EventBus eventBus, JsonObject config, WorkerExecutor ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", PgPool pgPool, KafkaProducer<String, String> kafkaProducer, MqttClient mqttClient, AmqpSender amqpSender, RabbitMQClient rabbitmqClient, WebClient ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", OAuth2Auth oauth2AuthenticationProvider, AuthorizationProvider authorizationProvider" : "", classePage ? ", Jinjava jinjava" : "", ") {");
tl(2, "super(eventBus, config, ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", pgPool, kafkaProducer, mqttClient, amqpSender, rabbitmqClient, ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", oauth2AuthenticationProvider, authorizationProvider" : "", classePage ? ", jinjava" : "", ");");
tl(1, "public ", classeNomSimpleGenApiServiceImpl, "(EventBus eventBus, JsonObject config, WorkerExecutor ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", ComputateOAuth2AuthHandlerImpl oauth2AuthHandler, PgPool pgPool, KafkaProducer<String, String> kafkaProducer, MqttClient mqttClient, AmqpSender amqpSender, RabbitMQClient rabbitmqClient, WebClient ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", OAuth2Auth oauth2AuthenticationProvider, AuthorizationProvider authorizationProvider" : "", classePage ? ", Jinjava jinjava" : "", ") {");
tl(2, "super(eventBus, config, ", i18nGlobale.getString(I18n.var_executeurTravailleur), ", oauth2AuthHandler, pgPool, kafkaProducer, mqttClient, amqpSender, rabbitmqClient, ", i18nGlobale.getString(I18n.var_clientWeb), activerOpenIdConnect ? ", oauth2AuthenticationProvider, authorizationProvider" : "", classePage ? ", jinjava" : "", ");");
tl(1, "}");

for(String classeApiMethode : classeApiMethodes) {
Expand Down
Loading

0 comments on commit 952aba8

Please sign in to comment.