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
---
fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/referentiel/dtos/RoutageDetailsResponse.java | 81 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 81 insertions(+), 0 deletions(-)
diff --git a/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/referentiel/dtos/RoutageDetailsResponse.java b/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/referentiel/dtos/RoutageDetailsResponse.java
new file mode 100644
index 0000000..b10c458
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/referentiel/dtos/RoutageDetailsResponse.java
@@ -0,0 +1,81 @@
+package com.megatim.fdxconsultation.model.referentiel.dtos;
+
+import com.megatim.fdxcommons.model.referentiel.Routage;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+/**
+ *
+ * @author Gabuntu
+ */
+public class RoutageDetailsResponse extends RoutageSlimResponse {
+
+ public RoutageDetailsResponse(Routage routage) {
+ super(routage);
+ }
+
+ public Set<NoeudSlimResponse> getNoeudsEnvoi() {
+ return routage
+ .getNoeudsEnvoi()
+ .stream()
+ .map(r -> new NoeudSlimResponse(r))
+ .collect(Collectors.toSet());
+ }
+
+ public Set<GroupeNoeudSlimResponse> getGroupeNoeudsEnvoi() {
+ return routage
+ .getGroupeNoeudsEnvoi()
+ .stream()
+ .map(g -> new GroupeNoeudSlimResponse(g))
+ .collect(Collectors.toSet());
+ }
+
+ public Set<ParticipantSlimResponse> getParticipantsEnvoi() {
+ return routage
+ .getParticipantsEnvoi()
+ .stream()
+ .map(p -> new ParticipantSlimResponse(p))
+ .collect(Collectors.toSet());
+ }
+
+ public Set<GroupeParticipantSlimResponse> getGroupeParticipantsEnvoi() {
+ return routage
+ .getGroupeParticipantsEnvoi()
+ .stream()
+ .map(g -> new GroupeParticipantSlimResponse(g))
+ .collect(Collectors.toSet());
+ }
+
+ public Set<NoeudSlimResponse> getNoeudsReception() {
+ return routage
+ .getNoeudsReception()
+ .stream()
+ .map(r -> new NoeudSlimResponse(r))
+ .collect(Collectors.toSet());
+ }
+
+ public Set<GroupeNoeudSlimResponse> getGroupeNoeudsReception() {
+ return routage
+ .getGroupeNoeudsReception()
+ .stream()
+ .map(g -> new GroupeNoeudSlimResponse(g))
+ .collect(Collectors.toSet());
+ }
+
+ public Set<ParticipantSlimResponse> getParticipantsReception() {
+ return routage
+ .getParticipantsReception()
+ .stream()
+ .map(p -> new ParticipantSlimResponse(p))
+ .collect(Collectors.toSet());
+ }
+
+ public Set<GroupeParticipantSlimResponse> getGroupeParticipantsReception() {
+ return routage
+ .getGroupeParticipantsReception()
+ .stream()
+ .map(g -> new GroupeParticipantSlimResponse(g))
+ .collect(Collectors.toSet());
+ }
+
+}
--
Gitblit v1.10.0