Traccia.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.tracciamento;

  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.tracciamento.constants.TipoTraccia;
  28. import java.io.Serializable;


  29. /** <p>Java class for traccia complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="traccia"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="id-transazione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="dominio" type="{http://www.openspcoop2.org/core/tracciamento}dominio" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="esito-elaborazione" type="{http://www.openspcoop2.org/core/tracciamento}traccia-esito-elaborazione" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="identificativo-correlazione-richiesta" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="identificativo-correlazione-risposta" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  42.  *          &lt;element name="location" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  43.  *          &lt;element name="busta" type="{http://www.openspcoop2.org/core/tracciamento}busta" minOccurs="1" maxOccurs="1"/&gt;
  44.  *          &lt;element name="busta-raw" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  45.  *          &lt;element name="allegati" type="{http://www.openspcoop2.org/core/tracciamento}allegati" minOccurs="0" maxOccurs="1"/&gt;
  46.  *      &lt;/sequence&gt;
  47.  *      &lt;attribute name="tipo" type="{http://www.openspcoop2.org/core/tracciamento}TipoTraccia" use="optional"/&gt;
  48.  * &lt;/complexType&gt;
  49.  * </pre>
  50.  *
  51.  * @version $Rev$, $Date$
  52.  *
  53.  * @author Poli Andrea (poli@link.it)
  54.  * @author $Author$
  55.  * */

  56. @XmlAccessorType(XmlAccessType.FIELD)
  57. @XmlType(name = "traccia",
  58.   propOrder = {
  59.     "idTransazione",
  60.     "dominio",
  61.     "oraRegistrazione",
  62.     "esitoElaborazione",
  63.     "identificativoCorrelazioneRichiesta",
  64.     "identificativoCorrelazioneRisposta",
  65.     "location",
  66.     "busta",
  67.     "bustaRaw",
  68.     "allegati"
  69.   }
  70. )

  71. @XmlRootElement(name = "traccia")

  72. public class Traccia extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  73.   public Traccia() {
  74.     super();
  75.   }

  76.   public java.lang.String getIdTransazione() {
  77.     return this.idTransazione;
  78.   }

  79.   public void setIdTransazione(java.lang.String idTransazione) {
  80.     this.idTransazione = idTransazione;
  81.   }

  82.   public Dominio getDominio() {
  83.     return this.dominio;
  84.   }

  85.   public void setDominio(Dominio dominio) {
  86.     this.dominio = dominio;
  87.   }

  88.   public java.util.Date getOraRegistrazione() {
  89.     return this.oraRegistrazione;
  90.   }

  91.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  92.     this.oraRegistrazione = oraRegistrazione;
  93.   }

  94.   public TracciaEsitoElaborazione getEsitoElaborazione() {
  95.     return this.esitoElaborazione;
  96.   }

  97.   public void setEsitoElaborazione(TracciaEsitoElaborazione esitoElaborazione) {
  98.     this.esitoElaborazione = esitoElaborazione;
  99.   }

  100.   public java.lang.String getIdentificativoCorrelazioneRichiesta() {
  101.     return this.identificativoCorrelazioneRichiesta;
  102.   }

  103.   public void setIdentificativoCorrelazioneRichiesta(java.lang.String identificativoCorrelazioneRichiesta) {
  104.     this.identificativoCorrelazioneRichiesta = identificativoCorrelazioneRichiesta;
  105.   }

  106.   public java.lang.String getIdentificativoCorrelazioneRisposta() {
  107.     return this.identificativoCorrelazioneRisposta;
  108.   }

  109.   public void setIdentificativoCorrelazioneRisposta(java.lang.String identificativoCorrelazioneRisposta) {
  110.     this.identificativoCorrelazioneRisposta = identificativoCorrelazioneRisposta;
  111.   }

  112.   public boolean isCorrelazioneApplicativaAndMatch() {
  113.     return this.correlazioneApplicativaAndMatch;
  114.   }

  115.   public boolean getCorrelazioneApplicativaAndMatch() {
  116.     return this.correlazioneApplicativaAndMatch;
  117.   }

  118.   public void setCorrelazioneApplicativaAndMatch(boolean correlazioneApplicativaAndMatch) {
  119.     this.correlazioneApplicativaAndMatch = correlazioneApplicativaAndMatch;
  120.   }

  121.   public java.lang.String getLocation() {
  122.     return this.location;
  123.   }

  124.   public void setLocation(java.lang.String location) {
  125.     this.location = location;
  126.   }

  127.   public Busta getBusta() {
  128.     return this.busta;
  129.   }

  130.   public void setBusta(Busta busta) {
  131.     this.busta = busta;
  132.   }

  133.   public boolean isRicercaSoloBusteErrore() {
  134.     return this.ricercaSoloBusteErrore;
  135.   }

  136.   public boolean getRicercaSoloBusteErrore() {
  137.     return this.ricercaSoloBusteErrore;
  138.   }

  139.   public void setRicercaSoloBusteErrore(boolean ricercaSoloBusteErrore) {
  140.     this.ricercaSoloBusteErrore = ricercaSoloBusteErrore;
  141.   }

  142.   public java.lang.String getBustaRaw() {
  143.     return this.bustaRaw;
  144.   }

  145.   public void setBustaRaw(java.lang.String bustaRaw) {
  146.     this.bustaRaw = bustaRaw;
  147.   }

  148.   public Allegati getAllegati() {
  149.     return this.allegati;
  150.   }

  151.   public void setAllegati(Allegati allegati) {
  152.     this.allegati = allegati;
  153.   }

  154.   public void setTipoRawEnumValue(String value) {
  155.     this.tipo = (TipoTraccia) TipoTraccia.toEnumConstantFromString(value);
  156.   }

  157.   public String getTipoRawEnumValue() {
  158.     if(this.tipo == null){
  159.         return null;
  160.     }else{
  161.         return this.tipo.toString();
  162.     }
  163.   }

  164.   public org.openspcoop2.core.tracciamento.constants.TipoTraccia getTipo() {
  165.     return this.tipo;
  166.   }

  167.   public void setTipo(org.openspcoop2.core.tracciamento.constants.TipoTraccia tipo) {
  168.     this.tipo = tipo;
  169.   }

  170.   private static final long serialVersionUID = 1L;

  171.   private static org.openspcoop2.core.tracciamento.model.TracciaModel modelStaticInstance = null;
  172.   private static synchronized void initModelStaticInstance(){
  173.       if(org.openspcoop2.core.tracciamento.Traccia.modelStaticInstance==null){
  174.             org.openspcoop2.core.tracciamento.Traccia.modelStaticInstance = new org.openspcoop2.core.tracciamento.model.TracciaModel();
  175.       }
  176.   }
  177.   public static org.openspcoop2.core.tracciamento.model.TracciaModel model(){
  178.       if(org.openspcoop2.core.tracciamento.Traccia.modelStaticInstance==null){
  179.             initModelStaticInstance();
  180.       }
  181.       return org.openspcoop2.core.tracciamento.Traccia.modelStaticInstance;
  182.   }


  183.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  184.   @XmlElement(name="id-transazione",required=true,nillable=false)
  185.   protected java.lang.String idTransazione;

  186.   @XmlElement(name="dominio",required=true,nillable=false)
  187.   protected Dominio dominio;

  188.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  189.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  190.   @XmlElement(name="ora-registrazione",required=true,nillable=false,type=java.lang.String.class)
  191.   protected java.util.Date oraRegistrazione;

  192.   @XmlElement(name="esito-elaborazione",required=true,nillable=false)
  193.   protected TracciaEsitoElaborazione esitoElaborazione;

  194.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  195.   @XmlElement(name="identificativo-correlazione-richiesta",required=false,nillable=false)
  196.   protected java.lang.String identificativoCorrelazioneRichiesta;

  197.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  198.   @XmlElement(name="identificativo-correlazione-risposta",required=false,nillable=false)
  199.   protected java.lang.String identificativoCorrelazioneRisposta;

  200.   @javax.xml.bind.annotation.XmlTransient
  201.   protected boolean correlazioneApplicativaAndMatch = false;

  202.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  203.   @XmlElement(name="location",required=true,nillable=false)
  204.   protected java.lang.String location;

  205.   @XmlElement(name="busta",required=true,nillable=false)
  206.   protected Busta busta;

  207.   @javax.xml.bind.annotation.XmlTransient
  208.   protected boolean ricercaSoloBusteErrore = false;

  209.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  210.   @XmlElement(name="busta-raw",required=false,nillable=false)
  211.   protected java.lang.String bustaRaw;

  212.   @XmlElement(name="allegati",required=false,nillable=false)
  213.   protected Allegati allegati;

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

  216.   @XmlAttribute(name="tipo",required=false)
  217.   protected TipoTraccia tipo;

  218. }