DumpConfigurazione.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.config;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlAttribute;
  24. import javax.xml.bind.annotation.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import org.openspcoop2.core.config.constants.StatoFunzionalita;
  28. import java.io.Serializable;


  29. /** <p>Java class for dump-configurazione complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="dump-configurazione"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="richiesta-ingresso" type="{http://www.openspcoop2.org/core/config}dump-configurazione-regola" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="richiesta-uscita" type="{http://www.openspcoop2.org/core/config}dump-configurazione-regola" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="risposta-ingresso" type="{http://www.openspcoop2.org/core/config}dump-configurazione-regola" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="risposta-uscita" type="{http://www.openspcoop2.org/core/config}dump-configurazione-regola" minOccurs="1" maxOccurs="1"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  *      &lt;attribute name="realtime" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="abilitato"/&gt;
  42.  * &lt;/complexType&gt;
  43.  * </pre>
  44.  *
  45.  * @version $Rev$, $Date$
  46.  *
  47.  * @author Poli Andrea (poli@link.it)
  48.  * @author $Author$
  49.  * */

  50. @XmlAccessorType(XmlAccessType.FIELD)
  51. @XmlType(name = "dump-configurazione",
  52.   propOrder = {
  53.     "richiestaIngresso",
  54.     "richiestaUscita",
  55.     "rispostaIngresso",
  56.     "rispostaUscita"
  57.   }
  58. )

  59. @XmlRootElement(name = "dump-configurazione")

  60. public class DumpConfigurazione extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  61.   public DumpConfigurazione() {
  62.     super();
  63.   }

  64.   public DumpConfigurazioneRegola getRichiestaIngresso() {
  65.     return this.richiestaIngresso;
  66.   }

  67.   public void setRichiestaIngresso(DumpConfigurazioneRegola richiestaIngresso) {
  68.     this.richiestaIngresso = richiestaIngresso;
  69.   }

  70.   public DumpConfigurazioneRegola getRichiestaUscita() {
  71.     return this.richiestaUscita;
  72.   }

  73.   public void setRichiestaUscita(DumpConfigurazioneRegola richiestaUscita) {
  74.     this.richiestaUscita = richiestaUscita;
  75.   }

  76.   public DumpConfigurazioneRegola getRispostaIngresso() {
  77.     return this.rispostaIngresso;
  78.   }

  79.   public void setRispostaIngresso(DumpConfigurazioneRegola rispostaIngresso) {
  80.     this.rispostaIngresso = rispostaIngresso;
  81.   }

  82.   public DumpConfigurazioneRegola getRispostaUscita() {
  83.     return this.rispostaUscita;
  84.   }

  85.   public void setRispostaUscita(DumpConfigurazioneRegola rispostaUscita) {
  86.     this.rispostaUscita = rispostaUscita;
  87.   }

  88.   public void setRealtimeRawEnumValue(String value) {
  89.     this.realtime = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  90.   }

  91.   public String getRealtimeRawEnumValue() {
  92.     if(this.realtime == null){
  93.         return null;
  94.     }else{
  95.         return this.realtime.toString();
  96.     }
  97.   }

  98.   public org.openspcoop2.core.config.constants.StatoFunzionalita getRealtime() {
  99.     return this.realtime;
  100.   }

  101.   public void setRealtime(org.openspcoop2.core.config.constants.StatoFunzionalita realtime) {
  102.     this.realtime = realtime;
  103.   }

  104.   private static final long serialVersionUID = 1L;



  105.   @XmlElement(name="richiesta-ingresso",required=true,nillable=false)
  106.   protected DumpConfigurazioneRegola richiestaIngresso;

  107.   @XmlElement(name="richiesta-uscita",required=true,nillable=false)
  108.   protected DumpConfigurazioneRegola richiestaUscita;

  109.   @XmlElement(name="risposta-ingresso",required=true,nillable=false)
  110.   protected DumpConfigurazioneRegola rispostaIngresso;

  111.   @XmlElement(name="risposta-uscita",required=true,nillable=false)
  112.   protected DumpConfigurazioneRegola rispostaUscita;

  113.   @javax.xml.bind.annotation.XmlTransient
  114.   protected java.lang.String realtimeRawEnumValue;

  115.   @XmlAttribute(name="realtime",required=false)
  116.   protected StatoFunzionalita realtime = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("abilitato");

  117. }