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="data-pubblicazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="pdd-codice" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  41.  *          &lt;element name="csv" type="{http://www.w3.org/2001/XMLSchema}hexBinary" minOccurs="0" maxOccurs="1"/&gt;
  42.  *          &lt;element name="method" type="{http://www.openspcoop2.org/core/statistiche}pdnd-methods" minOccurs="0" maxOccurs="1"/&gt;
  43.  *          &lt;element name="stato-pdnd" type="{http://www.openspcoop2.org/core/statistiche}possibili-stati-pdnd" minOccurs="1" maxOccurs="1" default="WAITING"/&gt;
  44.  *          &lt;element name="tentativi-pubblicazione" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1" default="0"/&gt;
  45.  *          &lt;element name="force-publish" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="1" maxOccurs="1" default="false"/&gt;
  46.  *          &lt;element name="stato" type="{http://www.openspcoop2.org/core/statistiche}possibili-stati-richieste" minOccurs="0" maxOccurs="1"/&gt;
  47.  *          &lt;element name="tracing-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  48.  *          &lt;element name="error-details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  49.  *          &lt;element name="history" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1" maxOccurs="1"/&gt;
  50.  *      &lt;/sequence&gt;
  51.  * &lt;/complexType&gt;
  52.  * </pre>
  53.  *
  54.  * @version $Rev$, $Date$
  55.  *
  56.  * @author Poli Andrea (poli@link.it)
  57.  * @author Tommaso Burlon (tommaso.burlon@link.it)
  58.  * @author $Author$
  59.  * */

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

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

  79. public class StatistichePdndTracing extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  80.   public StatistichePdndTracing() {
  81.     super();
  82.   }

  83.   public java.util.Date getDataTracciamento() {
  84.     return this.dataTracciamento;
  85.   }

  86.   public void setDataTracciamento(java.util.Date dataTracciamento) {
  87.     this.dataTracciamento = dataTracciamento;
  88.   }

  89.   public java.util.Date getDataRegistrazione() {
  90.     return this.dataRegistrazione;
  91.   }

  92.   public void setDataRegistrazione(java.util.Date dataRegistrazione) {
  93.     this.dataRegistrazione = dataRegistrazione;
  94.   }

  95.   public java.util.Date getDataPubblicazione() {
  96.     return this.dataPubblicazione;
  97.   }

  98.   public void setDataPubblicazione(java.util.Date dataPubblicazione) {
  99.     this.dataPubblicazione = dataPubblicazione;
  100.   }

  101.   public java.lang.String getPddCodice() {
  102.     return this.pddCodice;
  103.   }

  104.   public void setPddCodice(java.lang.String pddCodice) {
  105.     this.pddCodice = pddCodice;
  106.   }

  107.   public byte[] getCsv() {
  108.     return this.csv;
  109.   }

  110.   public void setCsv(byte[] csv) {
  111.     this.csv = csv;
  112.   }

  113.   public void setMethodRawEnumValue(String value) {
  114.     this.method = (PdndMethods) PdndMethods.toEnumConstantFromString(value);
  115.   }

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

  123.   public org.openspcoop2.core.statistiche.constants.PdndMethods getMethod() {
  124.     return this.method;
  125.   }

  126.   public void setMethod(org.openspcoop2.core.statistiche.constants.PdndMethods method) {
  127.     this.method = method;
  128.   }

  129.   public void setStatoPdndRawEnumValue(String value) {
  130.     this.statoPdnd = (PossibiliStatiPdnd) PossibiliStatiPdnd.toEnumConstantFromString(value);
  131.   }

  132.   public String getStatoPdndRawEnumValue() {
  133.     if(this.statoPdnd == null){
  134.         return null;
  135.     }else{
  136.         return this.statoPdnd.toString();
  137.     }
  138.   }

  139.   public org.openspcoop2.core.statistiche.constants.PossibiliStatiPdnd getStatoPdnd() {
  140.     return this.statoPdnd;
  141.   }

  142.   public void setStatoPdnd(org.openspcoop2.core.statistiche.constants.PossibiliStatiPdnd statoPdnd) {
  143.     this.statoPdnd = statoPdnd;
  144.   }

  145.   public java.lang.Integer getTentativiPubblicazione() {
  146.     return this.tentativiPubblicazione;
  147.   }

  148.   public void setTentativiPubblicazione(java.lang.Integer tentativiPubblicazione) {
  149.     this.tentativiPubblicazione = tentativiPubblicazione;
  150.   }

  151.   public boolean isForcePublish() {
  152.     return this.forcePublish;
  153.   }

  154.   public boolean getForcePublish() {
  155.     return this.forcePublish;
  156.   }

  157.   public void setForcePublish(boolean forcePublish) {
  158.     this.forcePublish = forcePublish;
  159.   }

  160.   public void setStatoRawEnumValue(String value) {
  161.     this.stato = (PossibiliStatiRichieste) PossibiliStatiRichieste.toEnumConstantFromString(value);
  162.   }

  163.   public String getStatoRawEnumValue() {
  164.     if(this.stato == null){
  165.         return null;
  166.     }else{
  167.         return this.stato.toString();
  168.     }
  169.   }

  170.   public org.openspcoop2.core.statistiche.constants.PossibiliStatiRichieste getStato() {
  171.     return this.stato;
  172.   }

  173.   public void setStato(org.openspcoop2.core.statistiche.constants.PossibiliStatiRichieste stato) {
  174.     this.stato = stato;
  175.   }

  176.   public java.lang.String getTracingId() {
  177.     return this.tracingId;
  178.   }

  179.   public void setTracingId(java.lang.String tracingId) {
  180.     this.tracingId = tracingId;
  181.   }

  182.   public java.lang.String getErrorDetails() {
  183.     return this.errorDetails;
  184.   }

  185.   public void setErrorDetails(java.lang.String errorDetails) {
  186.     this.errorDetails = errorDetails;
  187.   }

  188.   public int getHistory() {
  189.     return this.history;
  190.   }

  191.   public void setHistory(int history) {
  192.     this.history = history;
  193.   }

  194.   private static final long serialVersionUID = 1L;

  195.   private static org.openspcoop2.core.statistiche.model.StatistichePdndTracingModel modelStaticInstance = null;
  196.   private static synchronized void initModelStaticInstance(){
  197.       if(org.openspcoop2.core.statistiche.StatistichePdndTracing.modelStaticInstance==null){
  198.             org.openspcoop2.core.statistiche.StatistichePdndTracing.modelStaticInstance = new org.openspcoop2.core.statistiche.model.StatistichePdndTracingModel();
  199.       }
  200.   }
  201.   public static org.openspcoop2.core.statistiche.model.StatistichePdndTracingModel model(){
  202.       if(org.openspcoop2.core.statistiche.StatistichePdndTracing.modelStaticInstance==null){
  203.             initModelStaticInstance();
  204.       }
  205.       return org.openspcoop2.core.statistiche.StatistichePdndTracing.modelStaticInstance;
  206.   }


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

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

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

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

  222.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.HexBinaryAdapter.class)
  223.   @javax.xml.bind.annotation.XmlSchemaType(name="hexBinary")
  224.   @XmlElement(type=String.class, name="csv",required=false,nillable=false)
  225.   protected byte[] csv;

  226.   @javax.xml.bind.annotation.XmlTransient
  227.   protected java.lang.String methodRawEnumValue;

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

  230.   @javax.xml.bind.annotation.XmlTransient
  231.   protected java.lang.String statoPdndRawEnumValue;

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

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

  237.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  238.   @XmlElement(name="force-publish",required=true,nillable=false,defaultValue="false")
  239.   protected boolean forcePublish = false;

  240.   @javax.xml.bind.annotation.XmlTransient
  241.   protected java.lang.String statoRawEnumValue;

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

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

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

  250.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  251.   @XmlElement(name="history",required=true,nillable=false)
  252.   protected int history;

  253. }