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/dataconsumption/DataConsumptionRS.java |   81 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 81 insertions(+), 0 deletions(-)

diff --git a/apifdxweb/api/apifdxweb-service-ifaces/src/main/java/com/megatim/apifdxweb/service/ifaces/dataconsumption/DataConsumptionRS.java b/apifdxweb/api/apifdxweb-service-ifaces/src/main/java/com/megatim/apifdxweb/service/ifaces/dataconsumption/DataConsumptionRS.java
new file mode 100644
index 0000000..e39d58e
--- /dev/null
+++ b/apifdxweb/api/apifdxweb-service-ifaces/src/main/java/com/megatim/apifdxweb/service/ifaces/dataconsumption/DataConsumptionRS.java
@@ -0,0 +1,81 @@
+package com.megatim.apifdxweb.service.ifaces.dataconsumption;
+
+import com.megatim.fdxcommons.core.ifaces.interceptor.LoggingInterceptorBinding;
+import com.megatim.fdxcommons.model.pojo.CriteriaEntityFromView;
+import javax.annotation.security.PermitAll;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+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 DataConsumptionRS {
+
+    @GET
+    @Produces({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("all/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Consultation des données du typefichier {code_type_fichier}")
+    public Response findAll(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier);
+
+    @POST
+    @Produces({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("new-or-updated/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Consultation des données du typefichier {code_type_fichier}")
+    public Response loadAllAddedAndUpdated(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier);
+
+//    @POST
+//    @Produces({MediaType.APPLICATION_JSON})
+//    @PermitAll
+//    @Path("updated/{code_type_fichier}")
+//    @LoggingInterceptorBinding(message = "Consultation des données du typefichier {code_type_fichier}")
+//    public Response loadAllUpdated(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier);
+
+    @POST
+    @Produces({MediaType.APPLICATION_JSON})
+    @Consumes({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("by-criterias/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Consultation des données du typefichier {code_type_fichier}")
+    public Response findByCriterias(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, CriteriaEntityFromView criterion);
+
+    @POST
+    @Produces({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("count-all/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Consultation des données du typefichier {code_type_fichier}")
+    public Response countAll(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier);
+
+    @POST
+    @Produces({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("count-new-or-updated/{code_type_fichier}")
+    @LoggingInterceptorBinding(message = "Consultation des données du typefichier {code_type_fichier}")
+    public Response countAllAddedAndUpdated(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier);
+
+    @GET
+    @Produces({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("all-with-pagination/{code_type_fichier}/{pageNumber}/{pageSize}")
+    @LoggingInterceptorBinding(message = "Consultation des données du typefichier {code_type_fichier}")
+    public Response loadAllWithPagination(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, @PathParam("pageNumber") Integer pageNumber, @PathParam("pageSize") Integer pageSize);
+
+    @POST
+    @Produces({MediaType.APPLICATION_JSON})
+    @Consumes({MediaType.APPLICATION_JSON})
+    @PermitAll
+    @Path("by-criterias-with-pagination/{code_type_fichier}/{pageNumber}/{pageSize}")
+    @LoggingInterceptorBinding(message = "Consultation des données du typefichier {code_type_fichier}")
+    public Response findByCriteriaWithPagination(@Context HttpHeaders headers, @PathParam("code_type_fichier") String codeTypeFichier, @PathParam("pageNumber") Integer pageNumber, @PathParam("pageSize") Integer pageSize, CriteriaEntityFromView criterion);
+
+}

--
Gitblit v1.10.0