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-core-impl/src/main/java/com/megatim/apifdxweb/core/impl/referentiel/NoeudManagerImpl.java |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/apifdxweb/api/apifdxweb-core-impl/src/main/java/com/megatim/apifdxweb/core/impl/referentiel/NoeudManagerImpl.java b/apifdxweb/api/apifdxweb-core-impl/src/main/java/com/megatim/apifdxweb/core/impl/referentiel/NoeudManagerImpl.java
new file mode 100644
index 0000000..1c793ef
--- /dev/null
+++ b/apifdxweb/api/apifdxweb-core-impl/src/main/java/com/megatim/apifdxweb/core/impl/referentiel/NoeudManagerImpl.java
@@ -0,0 +1,48 @@
+package com.megatim.apifdxweb.core.impl.referentiel;
+
+import com.megatim.apifdxweb.core.ifaces.referentiel.NoeudManager;
+import com.megatim.apifdxweb.dao.ifaces.referentiel.NoeudDAO;
+import com.megatim.apifdxweb.model.administration.User;
+import com.megatim.fdxcommons.model.dtos.referentiel.NoeudDto;
+import com.megatim.fdxcommons.model.mappers.MapStructMapper;
+import com.megatim.fdxcommons.model.referentiel.Noeud;
+import javax.ejb.EJB;
+import javax.enterprise.context.Dependent;
+import javax.inject.Inject;
+
+@Dependent
+public class NoeudManagerImpl implements NoeudManager {
+
+    @EJB
+    protected NoeudDAO dao;
+
+    @Inject
+    private MapStructMapper mapstructMapper;
+
+    /**
+     *
+     */
+    public NoeudManagerImpl() {
+    }
+
+    @Override
+    public NoeudDAO getDao() {
+        return dao;
+    }
+
+    public Noeud saveOrUpdateCurrentElement(Noeud entityToSave) {
+        return dao.save(entityToSave);
+    }
+
+    @Override
+    public Noeud getById(String id, User connectedUser) {
+        Noeud noeud = dao.getById(id);
+        return noeud;
+    }
+
+    @Override
+    public Noeud getById(String id) {
+        return dao.getById(id);
+    }
+
+}

--
Gitblit v1.10.0