PortaTracciamento.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.Severita;
  28. import org.openspcoop2.core.config.constants.StatoFunzionalita;
  29. import java.io.Serializable;


  30. /** <p>Java class for porta-tracciamento complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="porta-tracciamento"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="database" type="{http://www.openspcoop2.org/core/config}tracciamento-configurazione" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="filetrace" type="{http://www.openspcoop2.org/core/config}tracciamento-configurazione" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="filetrace-config" type="{http://www.openspcoop2.org/core/config}tracciamento-configurazione-filetrace" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="transazioni" type="{http://www.openspcoop2.org/core/config}transazioni" minOccurs="0" maxOccurs="1"/&gt;
  41.  *      &lt;/sequence&gt;
  42.  *      &lt;attribute name="severita" type="{http://www.openspcoop2.org/core/config}Severita" use="optional"/&gt;
  43.  *      &lt;attribute name="esiti" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  44.  *      &lt;attribute name="stato" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  45.  * &lt;/complexType&gt;
  46.  * </pre>
  47.  *
  48.  * @version $Rev$, $Date$
  49.  *
  50.  * @author Poli Andrea (poli@link.it)
  51.  * @author $Author$
  52.  * */

  53. @XmlAccessorType(XmlAccessType.FIELD)
  54. @XmlType(name = "porta-tracciamento",
  55.   propOrder = {
  56.     "database",
  57.     "filetrace",
  58.     "filetraceConfig",
  59.     "transazioni"
  60.   }
  61. )

  62. @XmlRootElement(name = "porta-tracciamento")

  63. public class PortaTracciamento extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  64.   public PortaTracciamento() {
  65.     super();
  66.   }

  67.   public TracciamentoConfigurazione getDatabase() {
  68.     return this.database;
  69.   }

  70.   public void setDatabase(TracciamentoConfigurazione database) {
  71.     this.database = database;
  72.   }

  73.   public TracciamentoConfigurazione getFiletrace() {
  74.     return this.filetrace;
  75.   }

  76.   public void setFiletrace(TracciamentoConfigurazione filetrace) {
  77.     this.filetrace = filetrace;
  78.   }

  79.   public TracciamentoConfigurazioneFiletrace getFiletraceConfig() {
  80.     return this.filetraceConfig;
  81.   }

  82.   public void setFiletraceConfig(TracciamentoConfigurazioneFiletrace filetraceConfig) {
  83.     this.filetraceConfig = filetraceConfig;
  84.   }

  85.   public Transazioni getTransazioni() {
  86.     return this.transazioni;
  87.   }

  88.   public void setTransazioni(Transazioni transazioni) {
  89.     this.transazioni = transazioni;
  90.   }

  91.   public void setSeveritaRawEnumValue(String value) {
  92.     this.severita = (Severita) Severita.toEnumConstantFromString(value);
  93.   }

  94.   public String getSeveritaRawEnumValue() {
  95.     if(this.severita == null){
  96.         return null;
  97.     }else{
  98.         return this.severita.toString();
  99.     }
  100.   }

  101.   public org.openspcoop2.core.config.constants.Severita getSeverita() {
  102.     return this.severita;
  103.   }

  104.   public void setSeverita(org.openspcoop2.core.config.constants.Severita severita) {
  105.     this.severita = severita;
  106.   }

  107.   public java.lang.String getEsiti() {
  108.     return this.esiti;
  109.   }

  110.   public void setEsiti(java.lang.String esiti) {
  111.     this.esiti = esiti;
  112.   }

  113.   public void setStatoRawEnumValue(String value) {
  114.     this.stato = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  115.   }

  116.   public String getStatoRawEnumValue() {
  117.     if(this.stato == null){
  118.         return null;
  119.     }else{
  120.         return this.stato.toString();
  121.     }
  122.   }

  123.   public org.openspcoop2.core.config.constants.StatoFunzionalita getStato() {
  124.     return this.stato;
  125.   }

  126.   public void setStato(org.openspcoop2.core.config.constants.StatoFunzionalita stato) {
  127.     this.stato = stato;
  128.   }

  129.   private static final long serialVersionUID = 1L;



  130.   @XmlElement(name="database",required=false,nillable=false)
  131.   protected TracciamentoConfigurazione database;

  132.   @XmlElement(name="filetrace",required=false,nillable=false)
  133.   protected TracciamentoConfigurazione filetrace;

  134.   @XmlElement(name="filetrace-config",required=false,nillable=false)
  135.   protected TracciamentoConfigurazioneFiletrace filetraceConfig;

  136.   @XmlElement(name="transazioni",required=false,nillable=false)
  137.   protected Transazioni transazioni;

  138.   @javax.xml.bind.annotation.XmlTransient
  139.   protected java.lang.String severitaRawEnumValue;

  140.   @XmlAttribute(name="severita",required=false)
  141.   protected Severita severita;

  142.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  143.   @XmlAttribute(name="esiti",required=false)
  144.   protected java.lang.String esiti;

  145.   @javax.xml.bind.annotation.XmlTransient
  146.   protected java.lang.String statoRawEnumValue;

  147.   @XmlAttribute(name="stato",required=false)
  148.   protected StatoFunzionalita stato = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  149. }