Dump.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 dump complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="dump"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="configurazione" type="{http://www.openspcoop2.org/core/config}dump-configurazione" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="configurazione-porta-delegata" type="{http://www.openspcoop2.org/core/config}dump-configurazione" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="configurazione-porta-applicativa" type="{http://www.openspcoop2.org/core/config}dump-configurazione" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="openspcoop-appender" type="{http://www.openspcoop2.org/core/config}openspcoop-appender" minOccurs="0" maxOccurs="unbounded"/&gt;
  42.  *      &lt;/sequence&gt;
  43.  *      &lt;attribute name="stato" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  44.  *      &lt;attribute name="dump-binario-porta-delegata" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  45.  *      &lt;attribute name="dump-binario-porta-applicativa" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  46.  * &lt;/complexType&gt;
  47.  * </pre>
  48.  *
  49.  * @version $Rev$, $Date$
  50.  *
  51.  * @author Poli Andrea (poli@link.it)
  52.  * @author $Author$
  53.  * */

  54. @XmlAccessorType(XmlAccessType.FIELD)
  55. @XmlType(name = "dump",
  56.   propOrder = {
  57.     "configurazione",
  58.     "configurazionePortaDelegata",
  59.     "configurazionePortaApplicativa",
  60.     "openspcoopAppender"
  61.   }
  62. )

  63. @XmlRootElement(name = "dump")

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

  68.   @java.lang.Deprecated public DumpConfigurazione getConfigurazione() {
  69.     return this.configurazione;
  70.   }

  71.   @java.lang.Deprecated public void setConfigurazione(DumpConfigurazione configurazione) {
  72.     this.configurazione = configurazione;
  73.   }

  74.   public DumpConfigurazione getConfigurazionePortaDelegata() {
  75.     return this.configurazionePortaDelegata;
  76.   }

  77.   public void setConfigurazionePortaDelegata(DumpConfigurazione configurazionePortaDelegata) {
  78.     this.configurazionePortaDelegata = configurazionePortaDelegata;
  79.   }

  80.   public DumpConfigurazione getConfigurazionePortaApplicativa() {
  81.     return this.configurazionePortaApplicativa;
  82.   }

  83.   public void setConfigurazionePortaApplicativa(DumpConfigurazione configurazionePortaApplicativa) {
  84.     this.configurazionePortaApplicativa = configurazionePortaApplicativa;
  85.   }

  86.   public void addOpenspcoopAppender(OpenspcoopAppender openspcoopAppender) {
  87.     this.openspcoopAppender.add(openspcoopAppender);
  88.   }

  89.   public OpenspcoopAppender getOpenspcoopAppender(int index) {
  90.     return this.openspcoopAppender.get( index );
  91.   }

  92.   public OpenspcoopAppender removeOpenspcoopAppender(int index) {
  93.     return this.openspcoopAppender.remove( index );
  94.   }

  95.   public List<OpenspcoopAppender> getOpenspcoopAppenderList() {
  96.     return this.openspcoopAppender;
  97.   }

  98.   public void setOpenspcoopAppenderList(List<OpenspcoopAppender> openspcoopAppender) {
  99.     this.openspcoopAppender=openspcoopAppender;
  100.   }

  101.   public int sizeOpenspcoopAppenderList() {
  102.     return this.openspcoopAppender.size();
  103.   }

  104.   public void setStatoRawEnumValue(String value) {
  105.     this.stato = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  106.   }

  107.   public String getStatoRawEnumValue() {
  108.     if(this.stato == null){
  109.         return null;
  110.     }else{
  111.         return this.stato.toString();
  112.     }
  113.   }

  114.   public org.openspcoop2.core.config.constants.StatoFunzionalita getStato() {
  115.     return this.stato;
  116.   }

  117.   public void setStato(org.openspcoop2.core.config.constants.StatoFunzionalita stato) {
  118.     this.stato = stato;
  119.   }

  120.   public void setDumpBinarioPortaDelegataRawEnumValue(String value) {
  121.     this.dumpBinarioPortaDelegata = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  122.   }

  123.   public String getDumpBinarioPortaDelegataRawEnumValue() {
  124.     if(this.dumpBinarioPortaDelegata == null){
  125.         return null;
  126.     }else{
  127.         return this.dumpBinarioPortaDelegata.toString();
  128.     }
  129.   }

  130.   public org.openspcoop2.core.config.constants.StatoFunzionalita getDumpBinarioPortaDelegata() {
  131.     return this.dumpBinarioPortaDelegata;
  132.   }

  133.   public void setDumpBinarioPortaDelegata(org.openspcoop2.core.config.constants.StatoFunzionalita dumpBinarioPortaDelegata) {
  134.     this.dumpBinarioPortaDelegata = dumpBinarioPortaDelegata;
  135.   }

  136.   public void setDumpBinarioPortaApplicativaRawEnumValue(String value) {
  137.     this.dumpBinarioPortaApplicativa = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  138.   }

  139.   public String getDumpBinarioPortaApplicativaRawEnumValue() {
  140.     if(this.dumpBinarioPortaApplicativa == null){
  141.         return null;
  142.     }else{
  143.         return this.dumpBinarioPortaApplicativa.toString();
  144.     }
  145.   }

  146.   public org.openspcoop2.core.config.constants.StatoFunzionalita getDumpBinarioPortaApplicativa() {
  147.     return this.dumpBinarioPortaApplicativa;
  148.   }

  149.   public void setDumpBinarioPortaApplicativa(org.openspcoop2.core.config.constants.StatoFunzionalita dumpBinarioPortaApplicativa) {
  150.     this.dumpBinarioPortaApplicativa = dumpBinarioPortaApplicativa;
  151.   }

  152.   private static final long serialVersionUID = 1L;



  153.   @XmlElement(name="configurazione",required=false,nillable=false)
  154.   protected DumpConfigurazione configurazione;

  155.   @XmlElement(name="configurazione-porta-delegata",required=false,nillable=false)
  156.   protected DumpConfigurazione configurazionePortaDelegata;

  157.   @XmlElement(name="configurazione-porta-applicativa",required=false,nillable=false)
  158.   protected DumpConfigurazione configurazionePortaApplicativa;

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

  161.   /**
  162.    * Use method getOpenspcoopAppenderList
  163.    * @return List&lt;OpenspcoopAppender&gt;
  164.   */
  165.   public List<OpenspcoopAppender> getOpenspcoopAppender() {
  166.     return this.getOpenspcoopAppenderList();
  167.   }

  168.   /**
  169.    * Use method setOpenspcoopAppenderList
  170.    * @param openspcoopAppender List&lt;OpenspcoopAppender&gt;
  171.   */
  172.   public void setOpenspcoopAppender(List<OpenspcoopAppender> openspcoopAppender) {
  173.     this.setOpenspcoopAppenderList(openspcoopAppender);
  174.   }

  175.   /**
  176.    * Use method sizeOpenspcoopAppenderList
  177.    * @return lunghezza della lista
  178.   */
  179.   public int sizeOpenspcoopAppender() {
  180.     return this.sizeOpenspcoopAppenderList();
  181.   }

  182.   @javax.xml.bind.annotation.XmlTransient
  183.   protected java.lang.String statoRawEnumValue;

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

  186.   @javax.xml.bind.annotation.XmlTransient
  187.   protected java.lang.String dumpBinarioPortaDelegataRawEnumValue;

  188.   @XmlAttribute(name="dump-binario-porta-delegata",required=false)
  189.   protected StatoFunzionalita dumpBinarioPortaDelegata = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  190.   @javax.xml.bind.annotation.XmlTransient
  191.   protected java.lang.String dumpBinarioPortaApplicativaRawEnumValue;

  192.   @XmlAttribute(name="dump-binario-porta-applicativa",required=false)
  193.   protected StatoFunzionalita dumpBinarioPortaApplicativa = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  194. }