Tracciamento.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. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for tracciamento complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="tracciamento"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="openspcoop-appender" type="{http://www.openspcoop2.org/core/config}openspcoop-appender" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="openspcoop-sorgente-dati" type="{http://www.openspcoop2.org/core/config}openspcoop-sorgente-dati" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *          &lt;element name="porta-delegata" type="{http://www.openspcoop2.org/core/config}configurazione-tracciamento-porta" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="porta-applicativa" type="{http://www.openspcoop2.org/core/config}configurazione-tracciamento-porta" minOccurs="0" maxOccurs="1"/&gt;
  42.  *      &lt;/sequence&gt;
  43.  *      &lt;attribute name="stato" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="abilitato"/&gt;
  44.  *      &lt;attribute name="esiti" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&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 = "tracciamento",
  55.   propOrder = {
  56.     "openspcoopAppender",
  57.     "openspcoopSorgenteDati",
  58.     "portaDelegata",
  59.     "portaApplicativa"
  60.   }
  61. )

  62. @XmlRootElement(name = "tracciamento")

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

  67.   public void addOpenspcoopAppender(OpenspcoopAppender openspcoopAppender) {
  68.     this.openspcoopAppender.add(openspcoopAppender);
  69.   }

  70.   public OpenspcoopAppender getOpenspcoopAppender(int index) {
  71.     return this.openspcoopAppender.get( index );
  72.   }

  73.   public OpenspcoopAppender removeOpenspcoopAppender(int index) {
  74.     return this.openspcoopAppender.remove( index );
  75.   }

  76.   public List<OpenspcoopAppender> getOpenspcoopAppenderList() {
  77.     return this.openspcoopAppender;
  78.   }

  79.   public void setOpenspcoopAppenderList(List<OpenspcoopAppender> openspcoopAppender) {
  80.     this.openspcoopAppender=openspcoopAppender;
  81.   }

  82.   public int sizeOpenspcoopAppenderList() {
  83.     return this.openspcoopAppender.size();
  84.   }

  85.   public void addOpenspcoopSorgenteDati(OpenspcoopSorgenteDati openspcoopSorgenteDati) {
  86.     this.openspcoopSorgenteDati.add(openspcoopSorgenteDati);
  87.   }

  88.   public OpenspcoopSorgenteDati getOpenspcoopSorgenteDati(int index) {
  89.     return this.openspcoopSorgenteDati.get( index );
  90.   }

  91.   public OpenspcoopSorgenteDati removeOpenspcoopSorgenteDati(int index) {
  92.     return this.openspcoopSorgenteDati.remove( index );
  93.   }

  94.   public List<OpenspcoopSorgenteDati> getOpenspcoopSorgenteDatiList() {
  95.     return this.openspcoopSorgenteDati;
  96.   }

  97.   public void setOpenspcoopSorgenteDatiList(List<OpenspcoopSorgenteDati> openspcoopSorgenteDati) {
  98.     this.openspcoopSorgenteDati=openspcoopSorgenteDati;
  99.   }

  100.   public int sizeOpenspcoopSorgenteDatiList() {
  101.     return this.openspcoopSorgenteDati.size();
  102.   }

  103.   public ConfigurazioneTracciamentoPorta getPortaDelegata() {
  104.     return this.portaDelegata;
  105.   }

  106.   public void setPortaDelegata(ConfigurazioneTracciamentoPorta portaDelegata) {
  107.     this.portaDelegata = portaDelegata;
  108.   }

  109.   public ConfigurazioneTracciamentoPorta getPortaApplicativa() {
  110.     return this.portaApplicativa;
  111.   }

  112.   public void setPortaApplicativa(ConfigurazioneTracciamentoPorta portaApplicativa) {
  113.     this.portaApplicativa = portaApplicativa;
  114.   }

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

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

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

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

  131.   public java.lang.String getEsiti() {
  132.     return this.esiti;
  133.   }

  134.   public void setEsiti(java.lang.String esiti) {
  135.     this.esiti = esiti;
  136.   }

  137.   private static final long serialVersionUID = 1L;



  138.   @XmlElement(name="openspcoop-appender",required=true,nillable=false)
  139.   private List<OpenspcoopAppender> openspcoopAppender = new ArrayList<>();

  140.   /**
  141.    * Use method getOpenspcoopAppenderList
  142.    * @return List&lt;OpenspcoopAppender&gt;
  143.   */
  144.   public List<OpenspcoopAppender> getOpenspcoopAppender() {
  145.     return this.getOpenspcoopAppenderList();
  146.   }

  147.   /**
  148.    * Use method setOpenspcoopAppenderList
  149.    * @param openspcoopAppender List&lt;OpenspcoopAppender&gt;
  150.   */
  151.   public void setOpenspcoopAppender(List<OpenspcoopAppender> openspcoopAppender) {
  152.     this.setOpenspcoopAppenderList(openspcoopAppender);
  153.   }

  154.   /**
  155.    * Use method sizeOpenspcoopAppenderList
  156.    * @return lunghezza della lista
  157.   */
  158.   public int sizeOpenspcoopAppender() {
  159.     return this.sizeOpenspcoopAppenderList();
  160.   }

  161.   @XmlElement(name="openspcoop-sorgente-dati",required=true,nillable=false)
  162.   private List<OpenspcoopSorgenteDati> openspcoopSorgenteDati = new ArrayList<>();

  163.   /**
  164.    * Use method getOpenspcoopSorgenteDatiList
  165.    * @return List&lt;OpenspcoopSorgenteDati&gt;
  166.   */
  167.   public List<OpenspcoopSorgenteDati> getOpenspcoopSorgenteDati() {
  168.     return this.getOpenspcoopSorgenteDatiList();
  169.   }

  170.   /**
  171.    * Use method setOpenspcoopSorgenteDatiList
  172.    * @param openspcoopSorgenteDati List&lt;OpenspcoopSorgenteDati&gt;
  173.   */
  174.   public void setOpenspcoopSorgenteDati(List<OpenspcoopSorgenteDati> openspcoopSorgenteDati) {
  175.     this.setOpenspcoopSorgenteDatiList(openspcoopSorgenteDati);
  176.   }

  177.   /**
  178.    * Use method sizeOpenspcoopSorgenteDatiList
  179.    * @return lunghezza della lista
  180.   */
  181.   public int sizeOpenspcoopSorgenteDati() {
  182.     return this.sizeOpenspcoopSorgenteDatiList();
  183.   }

  184.   @XmlElement(name="porta-delegata",required=false,nillable=false)
  185.   protected ConfigurazioneTracciamentoPorta portaDelegata;

  186.   @XmlElement(name="porta-applicativa",required=false,nillable=false)
  187.   protected ConfigurazioneTracciamentoPorta portaApplicativa;

  188.   @javax.xml.bind.annotation.XmlTransient
  189.   protected java.lang.String statoRawEnumValue;

  190.   @XmlAttribute(name="stato",required=false)
  191.   protected StatoFunzionalita stato = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("abilitato");

  192.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  193.   @XmlAttribute(name="esiti",required=false)
  194.   protected java.lang.String esiti;

  195. }