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-commons/fdxcommons-tools/src/main/java/com/megatim/fdxcommons/tools/CommonAppContext.java |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/fdx-commons/fdxcommons-tools/src/main/java/com/megatim/fdxcommons/tools/CommonAppContext.java b/fdx-commons/fdxcommons-tools/src/main/java/com/megatim/fdxcommons/tools/CommonAppContext.java
new file mode 100644
index 0000000..f42672c
--- /dev/null
+++ b/fdx-commons/fdxcommons-tools/src/main/java/com/megatim/fdxcommons/tools/CommonAppContext.java
@@ -0,0 +1,31 @@
+package com.megatim.fdxcommons.tools;
+
+import java.io.File;
+
+/**
+ *
+ * @author lenovo
+ */
+public class CommonAppContext {
+
+    public static final String SERVER_DIR = getCurrentDirectory().getParent();
+    public static final String APP_DIR = SERVER_DIR + File.separator + "standalone" + File.separator + "apifdx";
+    public static final String TEMP_DIR = APP_DIR + File.separator + "tmp";
+    public static final String UPLOAD_DIR = APP_DIR + File.separator + "upload";
+    public static final String DOWNLOAD_DIR = APP_DIR + File.separator + "download";
+    public static final String DATA_DIR = APP_DIR + File.separator + "data";
+
+    public static final String REFERENTIEL_ZIP_FILE_NAME = "referentiel.zip";
+    public static final String UNZIP_REFERENTIEL_VALIDATEUR_DIR_NAME = "validateurs";
+    public static final String UNZIP_REFERENTIEL_VALIDATEUR_JSON_DIR_NAME = "validateursjson";
+
+    public static final String TOKEN_GENERATION_EXCHANGE = "tokenAuthentificationExchange";
+    public static final String TOKEN_GENERATION_QUEUE = "tokenAuthentificationQueue";
+    public static final String TOKEN_GENERATION_ROUTING_KEY = "tokenAuthentificationRoutingKey";
+
+    public static File getCurrentDirectory() {
+        String fileName = (String) System.getProperties().get("user.dir");
+        return new File(fileName);
+    }
+
+}

--
Gitblit v1.10.0