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-model/src/main/java/com/megatim/fdxcommons/model/dataproduction/DataProductionSource.java | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/dataproduction/DataProductionSource.java b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/dataproduction/DataProductionSource.java
new file mode 100644
index 0000000..f706076
--- /dev/null
+++ b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/dataproduction/DataProductionSource.java
@@ -0,0 +1,47 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Enum.java to edit this template
+ */
+package com.megatim.fdxcommons.model.dataproduction;
+
+import com.fasterxml.jackson.annotation.JsonValue;
+import com.megatim.fdxcommons.model.search.EnumValue;
+
+/**
+ *
+ * @author ASUS
+ */
+public enum DataProductionSource {
+ API("API"), FICHIER("FICHIER");
+
+ private final String value;
+
+ private DataProductionSource(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return this.value;
+ }
+
+ @EnumValue
+ public static DataProductionSource fromValue(String value) {
+ if (value == null) {
+ return null;
+ }
+ if (value.equalsIgnoreCase("api")) {
+ return DataProductionSource.API;
+ } else if (value.equalsIgnoreCase("fichier")) {
+ return DataProductionSource.FICHIER;
+ } else {
+ return null;
+
+ }
+ }
+}
--
Gitblit v1.10.0