PortaDelegata.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.commons.search;

  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 java.io.Serializable;
  27. import java.util.ArrayList;
  28. import java.util.List;


  29. /** <p>Java class for porta-delegata complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="porta-delegata"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="nome" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="stato" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="id-soggetto" type="{http://www.openspcoop2.org/core/commons/search}id-soggetto" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="tipo_soggetto_erogatore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="nome_soggetto_erogatore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  41.  *          &lt;element name="tipo_servizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  42.  *          &lt;element name="nome_servizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  43.  *          &lt;element name="versione_servizio" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  44.  *          &lt;element name="mode_azione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  45.  *          &lt;element name="nome_azione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  46.  *          &lt;element name="nome_porta_delegante_azione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  47.  *          &lt;element name="canale" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  48.  *          &lt;element name="porta-delegata-servizio-applicativo" type="{http://www.openspcoop2.org/core/commons/search}porta-delegata-servizio-applicativo" minOccurs="0" maxOccurs="unbounded"/&gt;
  49.  *          &lt;element name="porta-delegata-azione" type="{http://www.openspcoop2.org/core/commons/search}porta-delegata-azione" minOccurs="0" maxOccurs="unbounded"/&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 $Author$
  58.  * */

  59. @XmlAccessorType(XmlAccessType.FIELD)
  60. @XmlType(name = "porta-delegata",
  61.   propOrder = {
  62.     "nome",
  63.     "stato",
  64.     "idSoggetto",
  65.     "tipoSoggettoErogatore",
  66.     "nomeSoggettoErogatore",
  67.     "tipoServizio",
  68.     "nomeServizio",
  69.     "versioneServizio",
  70.     "modeAzione",
  71.     "nomeAzione",
  72.     "nomePortaDeleganteAzione",
  73.     "canale",
  74.     "portaDelegataServizioApplicativo",
  75.     "portaDelegataAzione"
  76.   }
  77. )

  78. @XmlRootElement(name = "porta-delegata")

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

  83.   public java.lang.String getNome() {
  84.     return this.nome;
  85.   }

  86.   public void setNome(java.lang.String nome) {
  87.     this.nome = nome;
  88.   }

  89.   public java.lang.String getStato() {
  90.     return this.stato;
  91.   }

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

  95.   public IdSoggetto getIdSoggetto() {
  96.     return this.idSoggetto;
  97.   }

  98.   public void setIdSoggetto(IdSoggetto idSoggetto) {
  99.     this.idSoggetto = idSoggetto;
  100.   }

  101.   public java.lang.String getTipoSoggettoErogatore() {
  102.     return this.tipoSoggettoErogatore;
  103.   }

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

  107.   public java.lang.String getNomeSoggettoErogatore() {
  108.     return this.nomeSoggettoErogatore;
  109.   }

  110.   public void setNomeSoggettoErogatore(java.lang.String nomeSoggettoErogatore) {
  111.     this.nomeSoggettoErogatore = nomeSoggettoErogatore;
  112.   }

  113.   public java.lang.String getTipoServizio() {
  114.     return this.tipoServizio;
  115.   }

  116.   public void setTipoServizio(java.lang.String tipoServizio) {
  117.     this.tipoServizio = tipoServizio;
  118.   }

  119.   public java.lang.String getNomeServizio() {
  120.     return this.nomeServizio;
  121.   }

  122.   public void setNomeServizio(java.lang.String nomeServizio) {
  123.     this.nomeServizio = nomeServizio;
  124.   }

  125.   public java.lang.Integer getVersioneServizio() {
  126.     return this.versioneServizio;
  127.   }

  128.   public void setVersioneServizio(java.lang.Integer versioneServizio) {
  129.     this.versioneServizio = versioneServizio;
  130.   }

  131.   public java.lang.String getModeAzione() {
  132.     return this.modeAzione;
  133.   }

  134.   public void setModeAzione(java.lang.String modeAzione) {
  135.     this.modeAzione = modeAzione;
  136.   }

  137.   public java.lang.String getNomeAzione() {
  138.     return this.nomeAzione;
  139.   }

  140.   public void setNomeAzione(java.lang.String nomeAzione) {
  141.     this.nomeAzione = nomeAzione;
  142.   }

  143.   public java.lang.String getNomePortaDeleganteAzione() {
  144.     return this.nomePortaDeleganteAzione;
  145.   }

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

  149.   public java.lang.String getCanale() {
  150.     return this.canale;
  151.   }

  152.   public void setCanale(java.lang.String canale) {
  153.     this.canale = canale;
  154.   }

  155.   public void addPortaDelegataServizioApplicativo(PortaDelegataServizioApplicativo portaDelegataServizioApplicativo) {
  156.     this.portaDelegataServizioApplicativo.add(portaDelegataServizioApplicativo);
  157.   }

  158.   public PortaDelegataServizioApplicativo getPortaDelegataServizioApplicativo(int index) {
  159.     return this.portaDelegataServizioApplicativo.get( index );
  160.   }

  161.   public PortaDelegataServizioApplicativo removePortaDelegataServizioApplicativo(int index) {
  162.     return this.portaDelegataServizioApplicativo.remove( index );
  163.   }

  164.   public List<PortaDelegataServizioApplicativo> getPortaDelegataServizioApplicativoList() {
  165.     return this.portaDelegataServizioApplicativo;
  166.   }

  167.   public void setPortaDelegataServizioApplicativoList(List<PortaDelegataServizioApplicativo> portaDelegataServizioApplicativo) {
  168.     this.portaDelegataServizioApplicativo=portaDelegataServizioApplicativo;
  169.   }

  170.   public int sizePortaDelegataServizioApplicativoList() {
  171.     return this.portaDelegataServizioApplicativo.size();
  172.   }

  173.   public void addPortaDelegataAzione(PortaDelegataAzione portaDelegataAzione) {
  174.     this.portaDelegataAzione.add(portaDelegataAzione);
  175.   }

  176.   public PortaDelegataAzione getPortaDelegataAzione(int index) {
  177.     return this.portaDelegataAzione.get( index );
  178.   }

  179.   public PortaDelegataAzione removePortaDelegataAzione(int index) {
  180.     return this.portaDelegataAzione.remove( index );
  181.   }

  182.   public List<PortaDelegataAzione> getPortaDelegataAzioneList() {
  183.     return this.portaDelegataAzione;
  184.   }

  185.   public void setPortaDelegataAzioneList(List<PortaDelegataAzione> portaDelegataAzione) {
  186.     this.portaDelegataAzione=portaDelegataAzione;
  187.   }

  188.   public int sizePortaDelegataAzioneList() {
  189.     return this.portaDelegataAzione.size();
  190.   }

  191.   private static final long serialVersionUID = 1L;

  192.   private static org.openspcoop2.core.commons.search.model.PortaDelegataModel modelStaticInstance = null;
  193.   private static synchronized void initModelStaticInstance(){
  194.       if(org.openspcoop2.core.commons.search.PortaDelegata.modelStaticInstance==null){
  195.             org.openspcoop2.core.commons.search.PortaDelegata.modelStaticInstance = new org.openspcoop2.core.commons.search.model.PortaDelegataModel();
  196.       }
  197.   }
  198.   public static org.openspcoop2.core.commons.search.model.PortaDelegataModel model(){
  199.       if(org.openspcoop2.core.commons.search.PortaDelegata.modelStaticInstance==null){
  200.             initModelStaticInstance();
  201.       }
  202.       return org.openspcoop2.core.commons.search.PortaDelegata.modelStaticInstance;
  203.   }


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

  207.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  208.   @XmlElement(name="stato",required=false,nillable=false)
  209.   protected java.lang.String stato;

  210.   @XmlElement(name="id-soggetto",required=true,nillable=false)
  211.   protected IdSoggetto idSoggetto;

  212.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  213.   @XmlElement(name="tipo_soggetto_erogatore",required=true,nillable=false)
  214.   protected java.lang.String tipoSoggettoErogatore;

  215.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  216.   @XmlElement(name="nome_soggetto_erogatore",required=true,nillable=false)
  217.   protected java.lang.String nomeSoggettoErogatore;

  218.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  219.   @XmlElement(name="tipo_servizio",required=true,nillable=false)
  220.   protected java.lang.String tipoServizio;

  221.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  222.   @XmlElement(name="nome_servizio",required=true,nillable=false)
  223.   protected java.lang.String nomeServizio;

  224.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  225.   @XmlElement(name="versione_servizio",required=true,nillable=false)
  226.   protected java.lang.Integer versioneServizio;

  227.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  228.   @XmlElement(name="mode_azione",required=true,nillable=false)
  229.   protected java.lang.String modeAzione;

  230.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  231.   @XmlElement(name="nome_azione",required=true,nillable=false)
  232.   protected java.lang.String nomeAzione;

  233.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  234.   @XmlElement(name="nome_porta_delegante_azione",required=true,nillable=false)
  235.   protected java.lang.String nomePortaDeleganteAzione;

  236.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  237.   @XmlElement(name="canale",required=true,nillable=false)
  238.   protected java.lang.String canale;

  239.   @XmlElement(name="porta-delegata-servizio-applicativo",required=true,nillable=false)
  240.   private List<PortaDelegataServizioApplicativo> portaDelegataServizioApplicativo = new ArrayList<>();

  241.   /**
  242.    * Use method getPortaDelegataServizioApplicativoList
  243.    * @return List&lt;PortaDelegataServizioApplicativo&gt;
  244.   */
  245.   public List<PortaDelegataServizioApplicativo> getPortaDelegataServizioApplicativo() {
  246.     return this.getPortaDelegataServizioApplicativoList();
  247.   }

  248.   /**
  249.    * Use method setPortaDelegataServizioApplicativoList
  250.    * @param portaDelegataServizioApplicativo List&lt;PortaDelegataServizioApplicativo&gt;
  251.   */
  252.   public void setPortaDelegataServizioApplicativo(List<PortaDelegataServizioApplicativo> portaDelegataServizioApplicativo) {
  253.     this.setPortaDelegataServizioApplicativoList(portaDelegataServizioApplicativo);
  254.   }

  255.   /**
  256.    * Use method sizePortaDelegataServizioApplicativoList
  257.    * @return lunghezza della lista
  258.   */
  259.   public int sizePortaDelegataServizioApplicativo() {
  260.     return this.sizePortaDelegataServizioApplicativoList();
  261.   }

  262.   @XmlElement(name="porta-delegata-azione",required=true,nillable=false)
  263.   private List<PortaDelegataAzione> portaDelegataAzione = new ArrayList<>();

  264.   /**
  265.    * Use method getPortaDelegataAzioneList
  266.    * @return List&lt;PortaDelegataAzione&gt;
  267.   */
  268.   public List<PortaDelegataAzione> getPortaDelegataAzione() {
  269.     return this.getPortaDelegataAzioneList();
  270.   }

  271.   /**
  272.    * Use method setPortaDelegataAzioneList
  273.    * @param portaDelegataAzione List&lt;PortaDelegataAzione&gt;
  274.   */
  275.   public void setPortaDelegataAzione(List<PortaDelegataAzione> portaDelegataAzione) {
  276.     this.setPortaDelegataAzioneList(portaDelegataAzione);
  277.   }

  278.   /**
  279.    * Use method sizePortaDelegataAzioneList
  280.    * @return lunghezza della lista
  281.   */
  282.   public int sizePortaDelegataAzione() {
  283.     return this.sizePortaDelegataAzioneList();
  284.   }

  285. }