InvocazionePorta.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.config;

  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.config.constants.StatoFunzionalita;
  28. import java.io.Serializable;
  29. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for invocazione-porta complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="invocazione-porta"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="credenziali" type="{http://www.openspcoop2.org/core/config}credenziali" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="ruoli" type="{http://www.openspcoop2.org/core/config}servizio-applicativo-ruoli" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="gestione-errore" type="{http://www.openspcoop2.org/core/config}invocazione-porta-gestione-errore" minOccurs="0" maxOccurs="1"/&gt;
  41.  *      &lt;/sequence&gt;
  42.  *      &lt;attribute name="invio-per-riferimento" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  43.  *      &lt;attribute name="sbustamento-informazioni-protocollo" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="abilitato"/&gt;
  44.  * &lt;/complexType&gt;
  45.  * </pre>
  46.  *
  47.  * @version $Rev$, $Date$
  48.  *
  49.  * @author Poli Andrea (poli@link.it)
  50.  * @author $Author$
  51.  * */

  52. @XmlAccessorType(XmlAccessType.FIELD)
  53. @XmlType(name = "invocazione-porta",
  54.   propOrder = {
  55.     "credenziali",
  56.     "ruoli",
  57.     "gestioneErrore"
  58.   }
  59. )

  60. @XmlRootElement(name = "invocazione-porta")

  61. public class InvocazionePorta extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  62.   public InvocazionePorta() {
  63.     super();
  64.   }

  65.   public void addCredenziali(Credenziali credenziali) {
  66.     this.credenziali.add(credenziali);
  67.   }

  68.   public Credenziali getCredenziali(int index) {
  69.     return this.credenziali.get( index );
  70.   }

  71.   public Credenziali removeCredenziali(int index) {
  72.     return this.credenziali.remove( index );
  73.   }

  74.   public List<Credenziali> getCredenzialiList() {
  75.     return this.credenziali;
  76.   }

  77.   public void setCredenzialiList(List<Credenziali> credenziali) {
  78.     this.credenziali=credenziali;
  79.   }

  80.   public int sizeCredenzialiList() {
  81.     return this.credenziali.size();
  82.   }

  83.   public ServizioApplicativoRuoli getRuoli() {
  84.     return this.ruoli;
  85.   }

  86.   public void setRuoli(ServizioApplicativoRuoli ruoli) {
  87.     this.ruoli = ruoli;
  88.   }

  89.   public InvocazionePortaGestioneErrore getGestioneErrore() {
  90.     return this.gestioneErrore;
  91.   }

  92.   public void setGestioneErrore(InvocazionePortaGestioneErrore gestioneErrore) {
  93.     this.gestioneErrore = gestioneErrore;
  94.   }

  95.   public void setInvioPerRiferimentoRawEnumValue(String value) {
  96.     this.invioPerRiferimento = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  97.   }

  98.   public String getInvioPerRiferimentoRawEnumValue() {
  99.     if(this.invioPerRiferimento == null){
  100.         return null;
  101.     }else{
  102.         return this.invioPerRiferimento.toString();
  103.     }
  104.   }

  105.   public org.openspcoop2.core.config.constants.StatoFunzionalita getInvioPerRiferimento() {
  106.     return this.invioPerRiferimento;
  107.   }

  108.   public void setInvioPerRiferimento(org.openspcoop2.core.config.constants.StatoFunzionalita invioPerRiferimento) {
  109.     this.invioPerRiferimento = invioPerRiferimento;
  110.   }

  111.   public void setSbustamentoInformazioniProtocolloRawEnumValue(String value) {
  112.     this.sbustamentoInformazioniProtocollo = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  113.   }

  114.   public String getSbustamentoInformazioniProtocolloRawEnumValue() {
  115.     if(this.sbustamentoInformazioniProtocollo == null){
  116.         return null;
  117.     }else{
  118.         return this.sbustamentoInformazioniProtocollo.toString();
  119.     }
  120.   }

  121.   public org.openspcoop2.core.config.constants.StatoFunzionalita getSbustamentoInformazioniProtocollo() {
  122.     return this.sbustamentoInformazioniProtocollo;
  123.   }

  124.   public void setSbustamentoInformazioniProtocollo(org.openspcoop2.core.config.constants.StatoFunzionalita sbustamentoInformazioniProtocollo) {
  125.     this.sbustamentoInformazioniProtocollo = sbustamentoInformazioniProtocollo;
  126.   }

  127.   private static final long serialVersionUID = 1L;



  128.   @XmlElement(name="credenziali",required=true,nillable=false)
  129.   private List<Credenziali> credenziali = new ArrayList<>();

  130.   /**
  131.    * Use method getCredenzialiList
  132.    * @return List&lt;Credenziali&gt;
  133.   */
  134.   public List<Credenziali> getCredenziali() {
  135.     return this.getCredenzialiList();
  136.   }

  137.   /**
  138.    * Use method setCredenzialiList
  139.    * @param credenziali List&lt;Credenziali&gt;
  140.   */
  141.   public void setCredenziali(List<Credenziali> credenziali) {
  142.     this.setCredenzialiList(credenziali);
  143.   }

  144.   /**
  145.    * Use method sizeCredenzialiList
  146.    * @return lunghezza della lista
  147.   */
  148.   public int sizeCredenziali() {
  149.     return this.sizeCredenzialiList();
  150.   }

  151.   @XmlElement(name="ruoli",required=false,nillable=false)
  152.   protected ServizioApplicativoRuoli ruoli;

  153.   @XmlElement(name="gestione-errore",required=false,nillable=false)
  154.   protected InvocazionePortaGestioneErrore gestioneErrore;

  155.   @javax.xml.bind.annotation.XmlTransient
  156.   protected java.lang.String invioPerRiferimentoRawEnumValue;

  157.   @XmlAttribute(name="invio-per-riferimento",required=false)
  158.   protected StatoFunzionalita invioPerRiferimento = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  159.   @javax.xml.bind.annotation.XmlTransient
  160.   protected java.lang.String sbustamentoInformazioniProtocolloRawEnumValue;

  161.   @XmlAttribute(name="sbustamento-informazioni-protocollo",required=false)
  162.   protected StatoFunzionalita sbustamentoInformazioniProtocollo = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("abilitato");

  163. }