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


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

  66. @XmlAccessorType(XmlAccessType.FIELD)
  67. @XmlType(name = "operation",
  68.   propOrder = {
  69.     "messageInput",
  70.     "messageOutput",
  71.     "protocolProperty"
  72.   }
  73. )

  74. @XmlRootElement(name = "operation")

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

  79.   public Message getMessageInput() {
  80.     return this.messageInput;
  81.   }

  82.   public void setMessageInput(Message messageInput) {
  83.     this.messageInput = messageInput;
  84.   }

  85.   public Message getMessageOutput() {
  86.     return this.messageOutput;
  87.   }

  88.   public void setMessageOutput(Message messageOutput) {
  89.     this.messageOutput = messageOutput;
  90.   }

  91.   public void addProtocolProperty(ProtocolProperty protocolProperty) {
  92.     this.protocolProperty.add(protocolProperty);
  93.   }

  94.   public ProtocolProperty getProtocolProperty(int index) {
  95.     return this.protocolProperty.get( index );
  96.   }

  97.   public ProtocolProperty removeProtocolProperty(int index) {
  98.     return this.protocolProperty.remove( index );
  99.   }

  100.   public List<ProtocolProperty> getProtocolPropertyList() {
  101.     return this.protocolProperty;
  102.   }

  103.   public void setProtocolPropertyList(List<ProtocolProperty> protocolProperty) {
  104.     this.protocolProperty=protocolProperty;
  105.   }

  106.   public int sizeProtocolPropertyList() {
  107.     return this.protocolProperty.size();
  108.   }

  109.   public java.lang.String getProfAzione() {
  110.     return this.profAzione;
  111.   }

  112.   public void setProfAzione(java.lang.String profAzione) {
  113.     this.profAzione = profAzione;
  114.   }

  115.   public java.lang.Long getIdPortType() {
  116.     return this.idPortType;
  117.   }

  118.   public void setIdPortType(java.lang.Long idPortType) {
  119.     this.idPortType = idPortType;
  120.   }

  121.   public java.lang.String getNome() {
  122.     return this.nome;
  123.   }

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

  127.   public void setStyleRawEnumValue(String value) {
  128.     this.style = (BindingStyle) BindingStyle.toEnumConstantFromString(value);
  129.   }

  130.   public String getStyleRawEnumValue() {
  131.     if(this.style == null){
  132.         return null;
  133.     }else{
  134.         return this.style.toString();
  135.     }
  136.   }

  137.   public org.openspcoop2.core.registry.constants.BindingStyle getStyle() {
  138.     return this.style;
  139.   }

  140.   public void setStyle(org.openspcoop2.core.registry.constants.BindingStyle style) {
  141.     this.style = style;
  142.   }

  143.   public java.lang.String getSoapAction() {
  144.     return this.soapAction;
  145.   }

  146.   public void setSoapAction(java.lang.String soapAction) {
  147.     this.soapAction = soapAction;
  148.   }

  149.   public void setProfiloCollaborazioneRawEnumValue(String value) {
  150.     this.profiloCollaborazione = (ProfiloCollaborazione) ProfiloCollaborazione.toEnumConstantFromString(value);
  151.   }

  152.   public String getProfiloCollaborazioneRawEnumValue() {
  153.     if(this.profiloCollaborazione == null){
  154.         return null;
  155.     }else{
  156.         return this.profiloCollaborazione.toString();
  157.     }
  158.   }

  159.   public org.openspcoop2.core.registry.constants.ProfiloCollaborazione getProfiloCollaborazione() {
  160.     return this.profiloCollaborazione;
  161.   }

  162.   public void setProfiloCollaborazione(org.openspcoop2.core.registry.constants.ProfiloCollaborazione profiloCollaborazione) {
  163.     this.profiloCollaborazione = profiloCollaborazione;
  164.   }

  165.   public void setFiltroDuplicatiRawEnumValue(String value) {
  166.     this.filtroDuplicati = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  167.   }

  168.   public String getFiltroDuplicatiRawEnumValue() {
  169.     if(this.filtroDuplicati == null){
  170.         return null;
  171.     }else{
  172.         return this.filtroDuplicati.toString();
  173.     }
  174.   }

  175.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getFiltroDuplicati() {
  176.     return this.filtroDuplicati;
  177.   }

  178.   public void setFiltroDuplicati(org.openspcoop2.core.registry.constants.StatoFunzionalita filtroDuplicati) {
  179.     this.filtroDuplicati = filtroDuplicati;
  180.   }

  181.   public void setConfermaRicezioneRawEnumValue(String value) {
  182.     this.confermaRicezione = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  183.   }

  184.   public String getConfermaRicezioneRawEnumValue() {
  185.     if(this.confermaRicezione == null){
  186.         return null;
  187.     }else{
  188.         return this.confermaRicezione.toString();
  189.     }
  190.   }

  191.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getConfermaRicezione() {
  192.     return this.confermaRicezione;
  193.   }

  194.   public void setConfermaRicezione(org.openspcoop2.core.registry.constants.StatoFunzionalita confermaRicezione) {
  195.     this.confermaRicezione = confermaRicezione;
  196.   }

  197.   public void setIdCollaborazioneRawEnumValue(String value) {
  198.     this.idCollaborazione = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  199.   }

  200.   public String getIdCollaborazioneRawEnumValue() {
  201.     if(this.idCollaborazione == null){
  202.         return null;
  203.     }else{
  204.         return this.idCollaborazione.toString();
  205.     }
  206.   }

  207.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getIdCollaborazione() {
  208.     return this.idCollaborazione;
  209.   }

  210.   public void setIdCollaborazione(org.openspcoop2.core.registry.constants.StatoFunzionalita idCollaborazione) {
  211.     this.idCollaborazione = idCollaborazione;
  212.   }

  213.   public void setIdRiferimentoRichiestaRawEnumValue(String value) {
  214.     this.idRiferimentoRichiesta = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  215.   }

  216.   public String getIdRiferimentoRichiestaRawEnumValue() {
  217.     if(this.idRiferimentoRichiesta == null){
  218.         return null;
  219.     }else{
  220.         return this.idRiferimentoRichiesta.toString();
  221.     }
  222.   }

  223.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getIdRiferimentoRichiesta() {
  224.     return this.idRiferimentoRichiesta;
  225.   }

  226.   public void setIdRiferimentoRichiesta(org.openspcoop2.core.registry.constants.StatoFunzionalita idRiferimentoRichiesta) {
  227.     this.idRiferimentoRichiesta = idRiferimentoRichiesta;
  228.   }

  229.   public void setConsegnaInOrdineRawEnumValue(String value) {
  230.     this.consegnaInOrdine = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  231.   }

  232.   public String getConsegnaInOrdineRawEnumValue() {
  233.     if(this.consegnaInOrdine == null){
  234.         return null;
  235.     }else{
  236.         return this.consegnaInOrdine.toString();
  237.     }
  238.   }

  239.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getConsegnaInOrdine() {
  240.     return this.consegnaInOrdine;
  241.   }

  242.   public void setConsegnaInOrdine(org.openspcoop2.core.registry.constants.StatoFunzionalita consegnaInOrdine) {
  243.     this.consegnaInOrdine = consegnaInOrdine;
  244.   }

  245.   public java.lang.String getScadenza() {
  246.     return this.scadenza;
  247.   }

  248.   public void setScadenza(java.lang.String scadenza) {
  249.     this.scadenza = scadenza;
  250.   }

  251.   public java.lang.String getCorrelataServizio() {
  252.     return this.correlataServizio;
  253.   }

  254.   public void setCorrelataServizio(java.lang.String correlataServizio) {
  255.     this.correlataServizio = correlataServizio;
  256.   }

  257.   public java.lang.String getCorrelata() {
  258.     return this.correlata;
  259.   }

  260.   public void setCorrelata(java.lang.String correlata) {
  261.     this.correlata = correlata;
  262.   }

  263.   private static final long serialVersionUID = 1L;



  264.   @XmlElement(name="message-input",required=false,nillable=false)
  265.   protected Message messageInput;

  266.   @XmlElement(name="message-output",required=false,nillable=false)
  267.   protected Message messageOutput;

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

  270.   /**
  271.    * Use method getProtocolPropertyList
  272.    * @return List&lt;ProtocolProperty&gt;
  273.   */
  274.   public List<ProtocolProperty> getProtocolProperty() {
  275.     return this.getProtocolPropertyList();
  276.   }

  277.   /**
  278.    * Use method setProtocolPropertyList
  279.    * @param protocolProperty List&lt;ProtocolProperty&gt;
  280.   */
  281.   public void setProtocolProperty(List<ProtocolProperty> protocolProperty) {
  282.     this.setProtocolPropertyList(protocolProperty);
  283.   }

  284.   /**
  285.    * Use method sizeProtocolPropertyList
  286.    * @return lunghezza della lista
  287.   */
  288.   public int sizeProtocolProperty() {
  289.     return this.sizeProtocolPropertyList();
  290.   }

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

  294.   @javax.xml.bind.annotation.XmlTransient
  295.   protected java.lang.Long idPortType;

  296.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  297.   @XmlAttribute(name="nome",required=true)
  298.   protected java.lang.String nome;

  299.   @javax.xml.bind.annotation.XmlTransient
  300.   protected java.lang.String styleRawEnumValue;

  301.   @XmlAttribute(name="style",required=false)
  302.   protected BindingStyle style;

  303.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  304.   @XmlAttribute(name="soap-action",required=false)
  305.   protected java.lang.String soapAction;

  306.   @javax.xml.bind.annotation.XmlTransient
  307.   protected java.lang.String profiloCollaborazioneRawEnumValue;

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

  310.   @javax.xml.bind.annotation.XmlTransient
  311.   protected java.lang.String filtroDuplicatiRawEnumValue;

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

  314.   @javax.xml.bind.annotation.XmlTransient
  315.   protected java.lang.String confermaRicezioneRawEnumValue;

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

  318.   @javax.xml.bind.annotation.XmlTransient
  319.   protected java.lang.String idCollaborazioneRawEnumValue;

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

  322.   @javax.xml.bind.annotation.XmlTransient
  323.   protected java.lang.String idRiferimentoRichiestaRawEnumValue;

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

  326.   @javax.xml.bind.annotation.XmlTransient
  327.   protected java.lang.String consegnaInOrdineRawEnumValue;

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

  330.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  331.   @XmlAttribute(name="scadenza",required=false)
  332.   protected java.lang.String scadenza;

  333.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  334.   @XmlAttribute(name="correlata-servizio",required=false)
  335.   protected java.lang.String correlataServizio;

  336.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  337.   @XmlAttribute(name="correlata",required=false)
  338.   protected java.lang.String correlata;

  339. }