From 32a30dd4731bca0cd87e9153addbac8d970d7c09 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Mon, 5 Jun 2023 16:36:14 +0200 Subject: chore(core): add @JsonCreator annotation to enum --- .../at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eaaf_core_api/src') diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java index 7be811aa..771829c9 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java @@ -22,6 +22,8 @@ package at.gv.egiz.eaaf.core.api.data; import java.util.NoSuchElementException; import java.util.stream.Stream; +import com.fasterxml.jackson.annotation.JsonCreator; + public interface ExtendedPvpAttributeDefinitions extends PvpAttributeDefinitions { String EIDAS_CONNECTOR_UNIQUEID_NAME = "urn:eidgvat:attributes.eidas.uniqueId"; @@ -67,6 +69,7 @@ public interface ExtendedPvpAttributeDefinitions extends PvpAttributeDefinitions * @param s mandate-mode String parameter * @return mandate mode, or {@link NoSuchElementException} if mode is unknown */ + @JsonCreator public static SpMandateModes fromString(final String mode) { return Stream.of(SpMandateModes.values()) .filter(el -> el.getMode().equals(mode)) -- cgit v1.2.3