Azione.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.registry;

  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.registry.constants.ProfiloCollaborazione;
  28. import org.openspcoop2.core.registry.constants.StatoFunzionalita;
  29. import java.io.Serializable;
  30. import java.util.ArrayList;
  31. import java.util.List;


  32. /** <p>Java class for azione complex type.
  33.  *
  34.  * <p>The following schema fragment specifies the expected content contained within this class.
  35.  *
  36.  * <pre>
  37.  * &lt;complexType name="azione"&gt;
  38.  *      &lt;sequence&gt;
  39.  *          &lt;element name="protocol-property" type="{http://www.openspcoop2.org/core/registry}protocol-property" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  *      &lt;attribute name="prof-azione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  42.  *      &lt;attribute name="id-accordo" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" use="optional"/&gt;
  43.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  44.  *      &lt;attribute name="profilo-collaborazione" type="{http://www.openspcoop2.org/core/registry}ProfiloCollaborazione" use="optional"/&gt;
  45.  *      &lt;attribute name="filtro-duplicati" type="{http://www.openspcoop2.org/core/registry}StatoFunzionalita" use="optional"/&gt;
  46.  *      &lt;attribute name="conferma-ricezione" type="{http://www.openspcoop2.org/core/registry}StatoFunzionalita" use="optional"/&gt;
  47.  *      &lt;attribute name="id-collaborazione" type="{http://www.openspcoop2.org/core/registry}StatoFunzionalita" use="optional"/&gt;
  48.  *      &lt;attribute name="id-riferimento-richiesta" type="{http://www.openspcoop2.org/core/registry}StatoFunzionalita" use="optional"/&gt;
  49.  *      &lt;attribute name="consegna-in-ordine" type="{http://www.openspcoop2.org/core/registry}StatoFunzionalita" use="optional"/&gt;
  50.  *      &lt;attribute name="scadenza" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  51.  *      &lt;attribute name="correlata" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  52.  * &lt;/complexType&gt;
  53.  * </pre>
  54.  *
  55.  * @version $Rev$, $Date$
  56.  *
  57.  * @author Poli Andrea (poli@link.it)
  58.  * @author $Author$
  59.  * */

  60. @XmlAccessorType(XmlAccessType.FIELD)
  61. @XmlType(name = "azione",
  62.   propOrder = {
  63.     "protocolProperty"
  64.   }
  65. )

  66. @XmlRootElement(name = "azione")

  67. public class Azione extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  68.   public Azione() {
  69.     super();
  70.   }

  71.   public void addProtocolProperty(ProtocolProperty protocolProperty) {
  72.     this.protocolProperty.add(protocolProperty);
  73.   }

  74.   public ProtocolProperty getProtocolProperty(int index) {
  75.     return this.protocolProperty.get( index );
  76.   }

  77.   public ProtocolProperty removeProtocolProperty(int index) {
  78.     return this.protocolProperty.remove( index );
  79.   }

  80.   public List<ProtocolProperty> getProtocolPropertyList() {
  81.     return this.protocolProperty;
  82.   }

  83.   public void setProtocolPropertyList(List<ProtocolProperty> protocolProperty) {
  84.     this.protocolProperty=protocolProperty;
  85.   }

  86.   public int sizeProtocolPropertyList() {
  87.     return this.protocolProperty.size();
  88.   }

  89.   public java.lang.String getProfAzione() {
  90.     return this.profAzione;
  91.   }

  92.   public void setProfAzione(java.lang.String profAzione) {
  93.     this.profAzione = profAzione;
  94.   }

  95.   public java.lang.Long getIdAccordo() {
  96.     return this.idAccordo;
  97.   }

  98.   public void setIdAccordo(java.lang.Long idAccordo) {
  99.     this.idAccordo = idAccordo;
  100.   }

  101.   public java.lang.String getNome() {
  102.     return this.nome;
  103.   }

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

  107.   public void setProfiloCollaborazioneRawEnumValue(String value) {
  108.     this.profiloCollaborazione = (ProfiloCollaborazione) ProfiloCollaborazione.toEnumConstantFromString(value);
  109.   }

  110.   public String getProfiloCollaborazioneRawEnumValue() {
  111.     if(this.profiloCollaborazione == null){
  112.         return null;
  113.     }else{
  114.         return this.profiloCollaborazione.toString();
  115.     }
  116.   }

  117.   public org.openspcoop2.core.registry.constants.ProfiloCollaborazione getProfiloCollaborazione() {
  118.     return this.profiloCollaborazione;
  119.   }

  120.   public void setProfiloCollaborazione(org.openspcoop2.core.registry.constants.ProfiloCollaborazione profiloCollaborazione) {
  121.     this.profiloCollaborazione = profiloCollaborazione;
  122.   }

  123.   public void setFiltroDuplicatiRawEnumValue(String value) {
  124.     this.filtroDuplicati = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  125.   }

  126.   public String getFiltroDuplicatiRawEnumValue() {
  127.     if(this.filtroDuplicati == null){
  128.         return null;
  129.     }else{
  130.         return this.filtroDuplicati.toString();
  131.     }
  132.   }

  133.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getFiltroDuplicati() {
  134.     return this.filtroDuplicati;
  135.   }

  136.   public void setFiltroDuplicati(org.openspcoop2.core.registry.constants.StatoFunzionalita filtroDuplicati) {
  137.     this.filtroDuplicati = filtroDuplicati;
  138.   }

  139.   public void setConfermaRicezioneRawEnumValue(String value) {
  140.     this.confermaRicezione = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  141.   }

  142.   public String getConfermaRicezioneRawEnumValue() {
  143.     if(this.confermaRicezione == null){
  144.         return null;
  145.     }else{
  146.         return this.confermaRicezione.toString();
  147.     }
  148.   }

  149.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getConfermaRicezione() {
  150.     return this.confermaRicezione;
  151.   }

  152.   public void setConfermaRicezione(org.openspcoop2.core.registry.constants.StatoFunzionalita confermaRicezione) {
  153.     this.confermaRicezione = confermaRicezione;
  154.   }

  155.   public void setIdCollaborazioneRawEnumValue(String value) {
  156.     this.idCollaborazione = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  157.   }

  158.   public String getIdCollaborazioneRawEnumValue() {
  159.     if(this.idCollaborazione == null){
  160.         return null;
  161.     }else{
  162.         return this.idCollaborazione.toString();
  163.     }
  164.   }

  165.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getIdCollaborazione() {
  166.     return this.idCollaborazione;
  167.   }

  168.   public void setIdCollaborazione(org.openspcoop2.core.registry.constants.StatoFunzionalita idCollaborazione) {
  169.     this.idCollaborazione = idCollaborazione;
  170.   }

  171.   public void setIdRiferimentoRichiestaRawEnumValue(String value) {
  172.     this.idRiferimentoRichiesta = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  173.   }

  174.   public String getIdRiferimentoRichiestaRawEnumValue() {
  175.     if(this.idRiferimentoRichiesta == null){
  176.         return null;
  177.     }else{
  178.         return this.idRiferimentoRichiesta.toString();
  179.     }
  180.   }

  181.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getIdRiferimentoRichiesta() {
  182.     return this.idRiferimentoRichiesta;
  183.   }

  184.   public void setIdRiferimentoRichiesta(org.openspcoop2.core.registry.constants.StatoFunzionalita idRiferimentoRichiesta) {
  185.     this.idRiferimentoRichiesta = idRiferimentoRichiesta;
  186.   }

  187.   public void setConsegnaInOrdineRawEnumValue(String value) {
  188.     this.consegnaInOrdine = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  189.   }

  190.   public String getConsegnaInOrdineRawEnumValue() {
  191.     if(this.consegnaInOrdine == null){
  192.         return null;
  193.     }else{
  194.         return this.consegnaInOrdine.toString();
  195.     }
  196.   }

  197.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getConsegnaInOrdine() {
  198.     return this.consegnaInOrdine;
  199.   }

  200.   public void setConsegnaInOrdine(org.openspcoop2.core.registry.constants.StatoFunzionalita consegnaInOrdine) {
  201.     this.consegnaInOrdine = consegnaInOrdine;
  202.   }

  203.   public java.lang.String getScadenza() {
  204.     return this.scadenza;
  205.   }

  206.   public void setScadenza(java.lang.String scadenza) {
  207.     this.scadenza = scadenza;
  208.   }

  209.   public java.lang.String getCorrelata() {
  210.     return this.correlata;
  211.   }

  212.   public void setCorrelata(java.lang.String correlata) {
  213.     this.correlata = correlata;
  214.   }

  215.   private static final long serialVersionUID = 1L;



  216.   @XmlElement(name="protocol-property",required=true,nillable=false)
  217.   private List<ProtocolProperty> protocolProperty = new ArrayList<>();

  218.   /**
  219.    * Use method getProtocolPropertyList
  220.    * @return List&lt;ProtocolProperty&gt;
  221.   */
  222.   public List<ProtocolProperty> getProtocolProperty() {
  223.     return this.getProtocolPropertyList();
  224.   }

  225.   /**
  226.    * Use method setProtocolPropertyList
  227.    * @param protocolProperty List&lt;ProtocolProperty&gt;
  228.   */
  229.   public void setProtocolProperty(List<ProtocolProperty> protocolProperty) {
  230.     this.setProtocolPropertyList(protocolProperty);
  231.   }

  232.   /**
  233.    * Use method sizeProtocolPropertyList
  234.    * @return lunghezza della lista
  235.   */
  236.   public int sizeProtocolProperty() {
  237.     return this.sizeProtocolPropertyList();
  238.   }

  239.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  240.   @XmlAttribute(name="prof-azione",required=false)
  241.   protected java.lang.String profAzione;

  242.   @javax.xml.bind.annotation.XmlTransient
  243.   protected java.lang.Long idAccordo;

  244.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  245.   @XmlAttribute(name="nome",required=true)
  246.   protected java.lang.String nome;

  247.   @javax.xml.bind.annotation.XmlTransient
  248.   protected java.lang.String profiloCollaborazioneRawEnumValue;

  249.   @XmlAttribute(name="profilo-collaborazione",required=false)
  250.   protected ProfiloCollaborazione profiloCollaborazione;

  251.   @javax.xml.bind.annotation.XmlTransient
  252.   protected java.lang.String filtroDuplicatiRawEnumValue;

  253.   @XmlAttribute(name="filtro-duplicati",required=false)
  254.   protected StatoFunzionalita filtroDuplicati;

  255.   @javax.xml.bind.annotation.XmlTransient
  256.   protected java.lang.String confermaRicezioneRawEnumValue;

  257.   @XmlAttribute(name="conferma-ricezione",required=false)
  258.   protected StatoFunzionalita confermaRicezione;

  259.   @javax.xml.bind.annotation.XmlTransient
  260.   protected java.lang.String idCollaborazioneRawEnumValue;

  261.   @XmlAttribute(name="id-collaborazione",required=false)
  262.   protected StatoFunzionalita idCollaborazione;

  263.   @javax.xml.bind.annotation.XmlTransient
  264.   protected java.lang.String idRiferimentoRichiestaRawEnumValue;

  265.   @XmlAttribute(name="id-riferimento-richiesta",required=false)
  266.   protected StatoFunzionalita idRiferimentoRichiesta;

  267.   @javax.xml.bind.annotation.XmlTransient
  268.   protected java.lang.String consegnaInOrdineRawEnumValue;

  269.   @XmlAttribute(name="consegna-in-ordine",required=false)
  270.   protected StatoFunzionalita consegnaInOrdine;

  271.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  272.   @XmlAttribute(name="scadenza",required=false)
  273.   protected java.lang.String scadenza;

  274.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  275.   @XmlAttribute(name="correlata",required=false)
  276.   protected java.lang.String correlata;

  277. }