TipoFiltroMittenteEnum.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.core.monitor.rs.server.model;

  21. import com.fasterxml.jackson.annotation.JsonCreator;
  22. import com.fasterxml.jackson.annotation.JsonValue;

  23. /**
  24.  * Gets or Sets TipoFiltroMittenteEnum
  25.  */
  26. public enum TipoFiltroMittenteEnum {
  27. EROGAZIONE_SOGGETTO("erogazione_soggetto"),
  28.   FRUIZIONE_APPLICATIVO("fruizione_applicativo"),
  29.   EROGAZIONE_APPLICATIVO("erogazione_applicativo"),
  30.   IDENTIFICATIVO_AUTENTICATO("identificativo_autenticato"),
  31.   EROGAZIONE_TOKEN_INFO("erogazione_token_info"),
  32.   TOKEN_INFO("token_info"),
  33.   INDIRIZZO_IP("indirizzo_ip");

  34.   private String value;

  35.   TipoFiltroMittenteEnum(String value) {
  36.     this.value = value;
  37.   }

  38.   @Override
  39.   @JsonValue
  40.   public String toString() {
  41.     return String.valueOf(this.value);
  42.   }

  43.   @JsonCreator
  44.   public static TipoFiltroMittenteEnum fromValue(String text) {
  45.     for (TipoFiltroMittenteEnum b : TipoFiltroMittenteEnum.values()) {
  46.       if (String.valueOf(b.value).equals(text)) {
  47.         return b;
  48.       }
  49.     }
  50.     return null;
  51.   }
  52.  
  53. }