StatistichePdndTracing.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.statistiche;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.statistiche.constants.PdndMethods;
  27. import org.openspcoop2.core.statistiche.constants.PossibiliStatiPdnd;
  28. import org.openspcoop2.core.statistiche.constants.PossibiliStatiRichieste;
  29. import java.io.Serializable;


  30. /** <p>Java class for statistiche-pdnd-tracing complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="statistiche-pdnd-tracing"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="data-tracciamento" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="data-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="pdd-codice" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="csv" type="{http://www.w3.org/2001/XMLSchema}hexBinary" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="method" type="{http://www.openspcoop2.org/core/statistiche}pdnd-methods" minOccurs="0" maxOccurs="1"/&gt;
  42.  *          &lt;element name="stato-pdnd" type="{http://www.openspcoop2.org/core/statistiche}possibili-stati-pdnd" minOccurs="1" maxOccurs="1" default="WAITING"/&gt;
  43.  *          &lt;element name="tentativi-pubblicazione" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1" default="0"/&gt;
  44.  *          &lt;element name="stato" type="{http://www.openspcoop2.org/core/statistiche}possibili-stati-richieste" minOccurs="0" maxOccurs="1"/&gt;
  45.  *          &lt;element name="tracing-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  46.  *          &lt;element name="error-details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  47.  *          &lt;element name="history" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1" maxOccurs="1"/&gt;
  48.  *      &lt;/sequence&gt;
  49.  * &lt;/complexType&gt;
  50.  * </pre>
  51.  *
  52.  * @version $Rev$, $Date$
  53.  *
  54.  * @author Poli Andrea (poli@link.it)
  55.  * @author Tommaso Burlon (tommaso.burlon@link.it)
  56.  * @author $Author$
  57.  * */

  58. @XmlAccessorType(XmlAccessType.FIELD)
  59. @XmlType(name = "statistiche-pdnd-tracing",
  60.   propOrder = {
  61.     "dataTracciamento",
  62.     "dataRegistrazione",
  63.     "dataPubblicazione",
  64.     "pddCodice",
  65.     "csv",
  66.     "method",
  67.     "statoPdnd",
  68.     "tentativiPubblicazione",
  69.     "stato",
  70.     "tracingId",
  71.     "errorDetails",
  72.     "history"
  73.   }
  74. )

  75. @XmlRootElement(name = "statistiche-pdnd-tracing")

  76. public class StatistichePdndTracing extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  77.   public StatistichePdndTracing() {
  78.     super();
  79.   }

  80.   public java.util.Date getDataTracciamento() {
  81.     return this.dataTracciamento;
  82.   }

  83.   public void setDataTracciamento(java.util.Date dataTracciamento) {
  84.     this.dataTracciamento = dataTracciamento;
  85.   }

  86.   public java.util.Date getDataRegistrazione() {
  87.     return this.dataRegistrazione;
  88.   }

  89.   public void setDataRegistrazione(java.util.Date dataRegistrazione) {
  90.     this.dataRegistrazione = dataRegistrazione;
  91.   }

  92.   public java.util.Date getDataPubblicazione() {
  93.     return this.dataPubblicazione;
  94.   }

  95.   public void setDataPubblicazione(java.util.Date dataPubblicazione) {
  96.     this.dataPubblicazione = dataPubblicazione;
  97.   }

  98.   public java.lang.String getPddCodice() {
  99.     return this.pddCodice;
  100.   }

  101.   public void setPddCodice(java.lang.String pddCodice) {
  102.     this.pddCodice = pddCodice;
  103.   }

  104.   public byte[] getCsv() {
  105.     return this.csv;
  106.   }

  107.   public void setCsv(byte[] csv) {
  108.     this.csv = csv;
  109.   }

  110.   public void setMethodRawEnumValue(String value) {
  111.     this.method = (PdndMethods) PdndMethods.toEnumConstantFromString(value);
  112.   }

  113.   public String getMethodRawEnumValue() {
  114.     if(this.method == null){
  115.         return null;
  116.     }else{
  117.         return this.method.toString();
  118.     }
  119.   }

  120.   public org.openspcoop2.core.statistiche.constants.PdndMethods getMethod() {
  121.     return this.method;
  122.   }

  123.   public void setMethod(org.openspcoop2.core.statistiche.constants.PdndMethods method) {
  124.     this.method = method;
  125.   }

  126.   public void setStatoPdndRawEnumValue(String value) {
  127.     this.statoPdnd = (PossibiliStatiPdnd) PossibiliStatiPdnd.toEnumConstantFromString(value);
  128.   }

  129.   public String getStatoPdndRawEnumValue() {
  130.     if(this.statoPdnd == null){
  131.         return null;
  132.     }else{
  133.         return this.statoPdnd.toString();
  134.     }
  135.   }

  136.   public org.openspcoop2.core.statistiche.constants.PossibiliStatiPdnd getStatoPdnd() {
  137.     return this.statoPdnd;
  138.   }

  139.   public void setStatoPdnd(org.openspcoop2.core.statistiche.constants.PossibiliStatiPdnd statoPdnd) {
  140.     this.statoPdnd = statoPdnd;
  141.   }

  142.   public java.lang.Integer getTentativiPubblicazione() {
  143.     return this.tentativiPubblicazione;
  144.   }

  145.   public void setTentativiPubblicazione(java.lang.Integer tentativiPubblicazione) {
  146.     this.tentativiPubblicazione = tentativiPubblicazione;
  147.   }

  148.   public void setStatoRawEnumValue(String value) {
  149.     this.stato = (PossibiliStatiRichieste) PossibiliStatiRichieste.toEnumConstantFromString(value);
  150.   }

  151.   public String getStatoRawEnumValue() {
  152.     if(this.stato == null){
  153.         return null;
  154.     }else{
  155.         return this.stato.toString();
  156.     }
  157.   }

  158.   public org.openspcoop2.core.statistiche.constants.PossibiliStatiRichieste getStato() {
  159.     return this.stato;
  160.   }

  161.   public void setStato(org.openspcoop2.core.statistiche.constants.PossibiliStatiRichieste stato) {
  162.     this.stato = stato;
  163.   }

  164.   public java.lang.String getTracingId() {
  165.     return this.tracingId;
  166.   }

  167.   public void setTracingId(java.lang.String tracingId) {
  168.     this.tracingId = tracingId;
  169.   }

  170.   public java.lang.String getErrorDetails() {
  171.     return this.errorDetails;
  172.   }

  173.   public void setErrorDetails(java.lang.String errorDetails) {
  174.     this.errorDetails = errorDetails;
  175.   }

  176.   public int getHistory() {
  177.     return this.history;
  178.   }

  179.   public void setHistory(int history) {
  180.     this.history = history;
  181.   }

  182.   private static final long serialVersionUID = 1L;

  183.   private static org.openspcoop2.core.statistiche.model.StatistichePdndTracingModel modelStaticInstance = null;
  184.   private static synchronized void initModelStaticInstance(){
  185.       if(org.openspcoop2.core.statistiche.StatistichePdndTracing.modelStaticInstance==null){
  186.             org.openspcoop2.core.statistiche.StatistichePdndTracing.modelStaticInstance = new org.openspcoop2.core.statistiche.model.StatistichePdndTracingModel();
  187.       }
  188.   }
  189.   public static org.openspcoop2.core.statistiche.model.StatistichePdndTracingModel model(){
  190.       if(org.openspcoop2.core.statistiche.StatistichePdndTracing.modelStaticInstance==null){
  191.             initModelStaticInstance();
  192.       }
  193.       return org.openspcoop2.core.statistiche.StatistichePdndTracing.modelStaticInstance;
  194.   }


  195.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  196.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  197.   @XmlElement(name="data-tracciamento",required=true,nillable=false,type=java.lang.String.class)
  198.   protected java.util.Date dataTracciamento;

  199.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  200.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  201.   @XmlElement(name="data-registrazione",required=false,nillable=false,type=java.lang.String.class)
  202.   protected java.util.Date dataRegistrazione;

  203.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  204.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  205.   @XmlElement(name="data-pubblicazione",required=false,nillable=false,type=java.lang.String.class)
  206.   protected java.util.Date dataPubblicazione;

  207.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  208.   @XmlElement(name="pdd-codice",required=true,nillable=false)
  209.   protected java.lang.String pddCodice;

  210.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.HexBinaryAdapter.class)
  211.   @javax.xml.bind.annotation.XmlSchemaType(name="hexBinary")
  212.   @XmlElement(type=String.class, name="csv",required=false,nillable=false)
  213.   protected byte[] csv;

  214.   @javax.xml.bind.annotation.XmlTransient
  215.   protected java.lang.String methodRawEnumValue;

  216.   @XmlElement(name="method",required=false,nillable=false)
  217.   protected PdndMethods method;

  218.   @javax.xml.bind.annotation.XmlTransient
  219.   protected java.lang.String statoPdndRawEnumValue;

  220.   @XmlElement(name="stato-pdnd",required=true,nillable=false,defaultValue="WAITING")
  221.   protected PossibiliStatiPdnd statoPdnd = (PossibiliStatiPdnd) PossibiliStatiPdnd.toEnumConstantFromString("WAITING");

  222.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  223.   @XmlElement(name="tentativi-pubblicazione",required=true,nillable=false,defaultValue="0")
  224.   protected java.lang.Integer tentativiPubblicazione = java.lang.Integer.valueOf("0");

  225.   @javax.xml.bind.annotation.XmlTransient
  226.   protected java.lang.String statoRawEnumValue;

  227.   @XmlElement(name="stato",required=false,nillable=false)
  228.   protected PossibiliStatiRichieste stato;

  229.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  230.   @XmlElement(name="tracing-id",required=false,nillable=false)
  231.   protected java.lang.String tracingId;

  232.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  233.   @XmlElement(name="error-details",required=false,nillable=false)
  234.   protected java.lang.String errorDetails;

  235.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  236.   @XmlElement(name="history",required=true,nillable=false)
  237.   protected int history;

  238. }