From 23a46b4be35277e06ec89f48730eeb694e686be8 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 15:40:06 +0000
Subject: [PATCH] add fdx-commons and fdx-consultation

---
 apifdxweb/api/apifdxweb-service-ifaces/src/main/java/com/megatim/apifdxweb/service/ifaces/dataproduction/DataProductionRS.java |   74 +++++++++++++++++++++++++++++++++++++
 1 files changed, 74 insertions(+), 0 deletions(-)

diff --git a/apifdxweb/api/apifdxweb-service-ifaces/src/main/java/com/megatim/apifdxweb/service/ifaces/dataproduction/DataProductionRS.java b/apifdxweb/api/apifdxweb-service-ifaces/src/main/java/com/megatim/apifdxweb/service/ifaces/dataproduction/DataProductionRS.java
new file mode 100644
index 0000000..8f8af16
--- /dev/null
+++ b/apifdxweb/api/apifdxweb-service-ifaces/src/main/java/com/megatim/apifdxweb/service/ifaces/dataproduction/DataProductionRS.java
@@ -0,0 +1,74 @@
+package com.megatim.apifdxweb.service.ifaces.dataproduction;
+
+import com.megatim.apifdxweb.model.request.UpdateRequest;
+import com.megatim.fdxcommons.core.ifaces.interceptor.LoggingInterceptorBinding;
+import com.megatim.fdxcommons.model.pojo.CriteriaEntityFromView;
+import java.util.LinkedHashMap;
+import java.util.List;
+import javax.annotation.security.PermitAll;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.POST;
+import javax.ws.rs.PUT;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+/**
+ *
+ * @author lenovo
+ */
+public interface DataProductionRS {
+
+    @POST
+    @Consumes({MediaType.APPLICATION_JSON})
+    @Produces({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("add-all/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Production de plusieurs lignes de données du typefichier {code_type_fichier}", shouldCopyData = false)
+    public Response saveAll(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, List<LinkedHashMap<String, Object>> datas);
+
+    @POST
+    @Consumes({MediaType.APPLICATION_JSON})
+    @Produces({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("add-one/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Production d'une ligne de donnée du typefichier {code_type_fichier}")
+    public Response save(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, LinkedHashMap<String, Object> datas);
+
+    @PUT
+    @Produces({MediaType.APPLICATION_JSON})
+    @Consumes({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("update-all/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Modification de plusieurs lignes du typefichier {code_type_fichier}")
+    public Response updateAll(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, UpdateRequest updateRequest);
+
+    @PUT
+    @Produces({MediaType.APPLICATION_JSON})
+    @Consumes({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("update-one/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Modification d'une ligne du typefichier {code_type_fichier}")
+    public Response updateOne(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, UpdateRequest updateRequest);
+
+    @POST
+    @Produces({MediaType.APPLICATION_JSON})
+    @Consumes({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("delete-all/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Supppression des lignes du typefichier {code_type_fichier}")
+    public Response deleteAll(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, CriteriaEntityFromView criterion);
+
+    @POST
+    @Produces({MediaType.APPLICATION_JSON})
+    @Consumes({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("delete-one/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Supppression des lignes du typefichier {code_type_fichier}")
+    public Response deleteOne(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, CriteriaEntityFromView criterion);
+
+}

--
Gitblit v1.10.0