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/enumeration/TypeOperation.java | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/enumeration/TypeOperation.java b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/enumeration/TypeOperation.java
new file mode 100644
index 0000000..609d062
--- /dev/null
+++ b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/enumeration/TypeOperation.java
@@ -0,0 +1,52 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.megatim.fdxcommons.model.enumeration;
+
+import com.fasterxml.jackson.annotation.JsonValue;
+import com.megatim.fdxcommons.model.search.EnumValue;
+
+public enum TypeOperation {
+
+ AJOUTER("ajouter"),
+ SUPPRIMER("supprimer"),
+ MODIFIER("modifier"),
+ CONSULTER("consulter");
+
+ private final String name;
+
+ private TypeOperation(String name) {
+ this.name = name;
+ }
+
+ @Override
+ public String toString() {
+ return name;
+ }
+
+ @JsonValue
+ public String getName() {
+ return name;
+ }
+
+ @EnumValue
+ public static TypeOperation fromValeur(String value) {
+ if (value == null) {
+ return null;
+ }
+ if (value.equalsIgnoreCase("ajouter")) {
+ return TypeOperation.AJOUTER;
+ } else if (value.equalsIgnoreCase("supprimer")) {
+ return TypeOperation.SUPPRIMER;
+ } else if (value.equalsIgnoreCase("modifier")) {
+ return TypeOperation.MODIFIER;
+ } else if (value.equalsIgnoreCase("consulter")) {
+ return TypeOperation.CONSULTER;
+ } else {
+ return null;
+
+ }
+ }
+
+}
--
Gitblit v1.10.0