ConfigurazioneServizio.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.plugins;

  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 configurazione-servizio complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="configurazione-servizio"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="accordo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="tipo-soggetto-referente" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="nome-soggetto-referente" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="versione" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="1" maxOccurs="1" default="1"/&gt;
  40.  *          &lt;element name="servizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="configurazione-servizio-azione" type="{http://www.openspcoop2.org/core/plugins}id-configurazione-servizio-azione" minOccurs="0" maxOccurs="unbounded"/&gt;
  42.  *      &lt;/sequence&gt;
  43.  * &lt;/complexType&gt;
  44.  * </pre>
  45.  *
  46.  * @version $Rev$, $Date$
  47.  *
  48.  * @author Poli Andrea (poli@link.it)
  49.  * @author $Author$
  50.  * */

  51. @XmlAccessorType(XmlAccessType.FIELD)
  52. @XmlType(name = "configurazione-servizio",
  53.   propOrder = {
  54.     "accordo",
  55.     "tipoSoggettoReferente",
  56.     "nomeSoggettoReferente",
  57.     "versione",
  58.     "servizio",
  59.     "configurazioneServizioAzione"
  60.   }
  61. )

  62. @XmlRootElement(name = "configurazione-servizio")

  63. public class ConfigurazioneServizio extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  64.   public ConfigurazioneServizio() {
  65.     super();
  66.   }

  67.   public java.lang.String getAccordo() {
  68.     return this.accordo;
  69.   }

  70.   public void setAccordo(java.lang.String accordo) {
  71.     this.accordo = accordo;
  72.   }

  73.   public java.lang.String getTipoSoggettoReferente() {
  74.     return this.tipoSoggettoReferente;
  75.   }

  76.   public void setTipoSoggettoReferente(java.lang.String tipoSoggettoReferente) {
  77.     this.tipoSoggettoReferente = tipoSoggettoReferente;
  78.   }

  79.   public java.lang.String getNomeSoggettoReferente() {
  80.     return this.nomeSoggettoReferente;
  81.   }

  82.   public void setNomeSoggettoReferente(java.lang.String nomeSoggettoReferente) {
  83.     this.nomeSoggettoReferente = nomeSoggettoReferente;
  84.   }

  85.   public java.lang.Integer getVersione() {
  86.     return this.versione;
  87.   }

  88.   public void setVersione(java.lang.Integer versione) {
  89.     this.versione = versione;
  90.   }

  91.   public java.lang.String getServizio() {
  92.     return this.servizio;
  93.   }

  94.   public void setServizio(java.lang.String servizio) {
  95.     this.servizio = servizio;
  96.   }

  97.   public void addConfigurazioneServizioAzione(IdConfigurazioneServizioAzione configurazioneServizioAzione) {
  98.     this.configurazioneServizioAzione.add(configurazioneServizioAzione);
  99.   }

  100.   public IdConfigurazioneServizioAzione getConfigurazioneServizioAzione(int index) {
  101.     return this.configurazioneServizioAzione.get( index );
  102.   }

  103.   public IdConfigurazioneServizioAzione removeConfigurazioneServizioAzione(int index) {
  104.     return this.configurazioneServizioAzione.remove( index );
  105.   }

  106.   public List<IdConfigurazioneServizioAzione> getConfigurazioneServizioAzioneList() {
  107.     return this.configurazioneServizioAzione;
  108.   }

  109.   public void setConfigurazioneServizioAzioneList(List<IdConfigurazioneServizioAzione> configurazioneServizioAzione) {
  110.     this.configurazioneServizioAzione=configurazioneServizioAzione;
  111.   }

  112.   public int sizeConfigurazioneServizioAzioneList() {
  113.     return this.configurazioneServizioAzione.size();
  114.   }

  115.   private static final long serialVersionUID = 1L;

  116.   private static org.openspcoop2.core.plugins.model.ConfigurazioneServizioModel modelStaticInstance = null;
  117.   private static synchronized void initModelStaticInstance(){
  118.       if(org.openspcoop2.core.plugins.ConfigurazioneServizio.modelStaticInstance==null){
  119.             org.openspcoop2.core.plugins.ConfigurazioneServizio.modelStaticInstance = new org.openspcoop2.core.plugins.model.ConfigurazioneServizioModel();
  120.       }
  121.   }
  122.   public static org.openspcoop2.core.plugins.model.ConfigurazioneServizioModel model(){
  123.       if(org.openspcoop2.core.plugins.ConfigurazioneServizio.modelStaticInstance==null){
  124.             initModelStaticInstance();
  125.       }
  126.       return org.openspcoop2.core.plugins.ConfigurazioneServizio.modelStaticInstance;
  127.   }


  128.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  129.   @XmlElement(name="accordo",required=true,nillable=false)
  130.   protected java.lang.String accordo;

  131.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  132.   @XmlElement(name="tipo-soggetto-referente",required=true,nillable=false)
  133.   protected java.lang.String tipoSoggettoReferente;

  134.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  135.   @XmlElement(name="nome-soggetto-referente",required=true,nillable=false)
  136.   protected java.lang.String nomeSoggettoReferente;

  137.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedInt")
  138.   @XmlElement(name="versione",required=true,nillable=false,defaultValue="1")
  139.   protected java.lang.Integer versione = java.lang.Integer.valueOf("1");

  140.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  141.   @XmlElement(name="servizio",required=false,nillable=false)
  142.   protected java.lang.String servizio;

  143.   @XmlElement(name="configurazione-servizio-azione",required=true,nillable=false)
  144.   private List<IdConfigurazioneServizioAzione> configurazioneServizioAzione = new ArrayList<>();

  145.   /**
  146.    * Use method getConfigurazioneServizioAzioneList
  147.    * @return List&lt;IdConfigurazioneServizioAzione&gt;
  148.   */
  149.   public List<IdConfigurazioneServizioAzione> getConfigurazioneServizioAzione() {
  150.     return this.getConfigurazioneServizioAzioneList();
  151.   }

  152.   /**
  153.    * Use method setConfigurazioneServizioAzioneList
  154.    * @param configurazioneServizioAzione List&lt;IdConfigurazioneServizioAzione&gt;
  155.   */
  156.   public void setConfigurazioneServizioAzione(List<IdConfigurazioneServizioAzione> configurazioneServizioAzione) {
  157.     this.setConfigurazioneServizioAzioneList(configurazioneServizioAzione);
  158.   }

  159.   /**
  160.    * Use method sizeConfigurazioneServizioAzioneList
  161.    * @return lunghezza della lista
  162.   */
  163.   public int sizeConfigurazioneServizioAzione() {
  164.     return this.sizeConfigurazioneServizioAzioneList();
  165.   }

  166. }