RegistroServizi.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.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 registro-servizi complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="registro-servizi"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="accordo-cooperazione" type="{http://www.openspcoop2.org/core/registry}accordo-cooperazione" minOccurs="0" maxOccurs="unbounded"/&gt;
  37.  *          &lt;element name="accordo-servizio-parte-comune" type="{http://www.openspcoop2.org/core/registry}accordo-servizio-parte-comune" minOccurs="0" maxOccurs="unbounded"/&gt;
  38.  *          &lt;element name="porta-dominio" type="{http://www.openspcoop2.org/core/registry}porta-dominio" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="ruolo" type="{http://www.openspcoop2.org/core/registry}ruolo" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *          &lt;element name="scope" type="{http://www.openspcoop2.org/core/registry}scope" minOccurs="0" maxOccurs="unbounded"/&gt;
  41.  *          &lt;element name="gruppo" type="{http://www.openspcoop2.org/core/registry}gruppo" minOccurs="0" maxOccurs="unbounded"/&gt;
  42.  *          &lt;element name="soggetto" type="{http://www.openspcoop2.org/core/registry}soggetto" minOccurs="0" maxOccurs="unbounded"/&gt;
  43.  *          &lt;element name="connettore" type="{http://www.openspcoop2.org/core/registry}connettore" minOccurs="0" maxOccurs="unbounded"/&gt;
  44.  *      &lt;/sequence&gt;
  45.  * &lt;/complexType&gt;
  46.  * </pre>
  47.  *
  48.  * @version $Rev$, $Date$
  49.  *
  50.  * @author Poli Andrea (poli@link.it)
  51.  * @author $Author$
  52.  * */

  53. @XmlAccessorType(XmlAccessType.FIELD)
  54. @XmlType(name = "registro-servizi",
  55.   propOrder = {
  56.     "accordoCooperazione",
  57.     "accordoServizioParteComune",
  58.     "portaDominio",
  59.     "ruolo",
  60.     "scope",
  61.     "gruppo",
  62.     "soggetto",
  63.     "connettore"
  64.   }
  65. )

  66. @XmlRootElement(name = "registro-servizi")

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

  71.   public void addAccordoCooperazione(AccordoCooperazione accordoCooperazione) {
  72.     this.accordoCooperazione.add(accordoCooperazione);
  73.   }

  74.   public AccordoCooperazione getAccordoCooperazione(int index) {
  75.     return this.accordoCooperazione.get( index );
  76.   }

  77.   public AccordoCooperazione removeAccordoCooperazione(int index) {
  78.     return this.accordoCooperazione.remove( index );
  79.   }

  80.   public List<AccordoCooperazione> getAccordoCooperazioneList() {
  81.     return this.accordoCooperazione;
  82.   }

  83.   public void setAccordoCooperazioneList(List<AccordoCooperazione> accordoCooperazione) {
  84.     this.accordoCooperazione=accordoCooperazione;
  85.   }

  86.   public int sizeAccordoCooperazioneList() {
  87.     return this.accordoCooperazione.size();
  88.   }

  89.   public void addAccordoServizioParteComune(AccordoServizioParteComune accordoServizioParteComune) {
  90.     this.accordoServizioParteComune.add(accordoServizioParteComune);
  91.   }

  92.   public AccordoServizioParteComune getAccordoServizioParteComune(int index) {
  93.     return this.accordoServizioParteComune.get( index );
  94.   }

  95.   public AccordoServizioParteComune removeAccordoServizioParteComune(int index) {
  96.     return this.accordoServizioParteComune.remove( index );
  97.   }

  98.   public List<AccordoServizioParteComune> getAccordoServizioParteComuneList() {
  99.     return this.accordoServizioParteComune;
  100.   }

  101.   public void setAccordoServizioParteComuneList(List<AccordoServizioParteComune> accordoServizioParteComune) {
  102.     this.accordoServizioParteComune=accordoServizioParteComune;
  103.   }

  104.   public int sizeAccordoServizioParteComuneList() {
  105.     return this.accordoServizioParteComune.size();
  106.   }

  107.   public void addPortaDominio(PortaDominio portaDominio) {
  108.     this.portaDominio.add(portaDominio);
  109.   }

  110.   public PortaDominio getPortaDominio(int index) {
  111.     return this.portaDominio.get( index );
  112.   }

  113.   public PortaDominio removePortaDominio(int index) {
  114.     return this.portaDominio.remove( index );
  115.   }

  116.   public List<PortaDominio> getPortaDominioList() {
  117.     return this.portaDominio;
  118.   }

  119.   public void setPortaDominioList(List<PortaDominio> portaDominio) {
  120.     this.portaDominio=portaDominio;
  121.   }

  122.   public int sizePortaDominioList() {
  123.     return this.portaDominio.size();
  124.   }

  125.   public void addRuolo(Ruolo ruolo) {
  126.     this.ruolo.add(ruolo);
  127.   }

  128.   public Ruolo getRuolo(int index) {
  129.     return this.ruolo.get( index );
  130.   }

  131.   public Ruolo removeRuolo(int index) {
  132.     return this.ruolo.remove( index );
  133.   }

  134.   public List<Ruolo> getRuoloList() {
  135.     return this.ruolo;
  136.   }

  137.   public void setRuoloList(List<Ruolo> ruolo) {
  138.     this.ruolo=ruolo;
  139.   }

  140.   public int sizeRuoloList() {
  141.     return this.ruolo.size();
  142.   }

  143.   public void addScope(Scope scope) {
  144.     this.scope.add(scope);
  145.   }

  146.   public Scope getScope(int index) {
  147.     return this.scope.get( index );
  148.   }

  149.   public Scope removeScope(int index) {
  150.     return this.scope.remove( index );
  151.   }

  152.   public List<Scope> getScopeList() {
  153.     return this.scope;
  154.   }

  155.   public void setScopeList(List<Scope> scope) {
  156.     this.scope=scope;
  157.   }

  158.   public int sizeScopeList() {
  159.     return this.scope.size();
  160.   }

  161.   public void addGruppo(Gruppo gruppo) {
  162.     this.gruppo.add(gruppo);
  163.   }

  164.   public Gruppo getGruppo(int index) {
  165.     return this.gruppo.get( index );
  166.   }

  167.   public Gruppo removeGruppo(int index) {
  168.     return this.gruppo.remove( index );
  169.   }

  170.   public List<Gruppo> getGruppoList() {
  171.     return this.gruppo;
  172.   }

  173.   public void setGruppoList(List<Gruppo> gruppo) {
  174.     this.gruppo=gruppo;
  175.   }

  176.   public int sizeGruppoList() {
  177.     return this.gruppo.size();
  178.   }

  179.   public void addSoggetto(Soggetto soggetto) {
  180.     this.soggetto.add(soggetto);
  181.   }

  182.   public Soggetto getSoggetto(int index) {
  183.     return this.soggetto.get( index );
  184.   }

  185.   public Soggetto removeSoggetto(int index) {
  186.     return this.soggetto.remove( index );
  187.   }

  188.   public List<Soggetto> getSoggettoList() {
  189.     return this.soggetto;
  190.   }

  191.   public void setSoggettoList(List<Soggetto> soggetto) {
  192.     this.soggetto=soggetto;
  193.   }

  194.   public int sizeSoggettoList() {
  195.     return this.soggetto.size();
  196.   }

  197.   public void addConnettore(Connettore connettore) {
  198.     this.connettore.add(connettore);
  199.   }

  200.   public Connettore getConnettore(int index) {
  201.     return this.connettore.get( index );
  202.   }

  203.   public Connettore removeConnettore(int index) {
  204.     return this.connettore.remove( index );
  205.   }

  206.   public List<Connettore> getConnettoreList() {
  207.     return this.connettore;
  208.   }

  209.   public void setConnettoreList(List<Connettore> connettore) {
  210.     this.connettore=connettore;
  211.   }

  212.   public int sizeConnettoreList() {
  213.     return this.connettore.size();
  214.   }

  215.   private static final long serialVersionUID = 1L;



  216.   @XmlElement(name="accordo-cooperazione",required=true,nillable=false)
  217.   private List<AccordoCooperazione> accordoCooperazione = new ArrayList<>();

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

  225.   /**
  226.    * Use method setAccordoCooperazioneList
  227.    * @param accordoCooperazione List&lt;AccordoCooperazione&gt;
  228.   */
  229.   public void setAccordoCooperazione(List<AccordoCooperazione> accordoCooperazione) {
  230.     this.setAccordoCooperazioneList(accordoCooperazione);
  231.   }

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

  239.   @XmlElement(name="accordo-servizio-parte-comune",required=true,nillable=false)
  240.   private List<AccordoServizioParteComune> accordoServizioParteComune = new ArrayList<>();

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

  248.   /**
  249.    * Use method setAccordoServizioParteComuneList
  250.    * @param accordoServizioParteComune List&lt;AccordoServizioParteComune&gt;
  251.   */
  252.   public void setAccordoServizioParteComune(List<AccordoServizioParteComune> accordoServizioParteComune) {
  253.     this.setAccordoServizioParteComuneList(accordoServizioParteComune);
  254.   }

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

  262.   @XmlElement(name="porta-dominio",required=true,nillable=false)
  263.   private List<PortaDominio> portaDominio = new ArrayList<>();

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

  271.   /**
  272.    * Use method setPortaDominioList
  273.    * @param portaDominio List&lt;PortaDominio&gt;
  274.   */
  275.   public void setPortaDominio(List<PortaDominio> portaDominio) {
  276.     this.setPortaDominioList(portaDominio);
  277.   }

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

  285.   @XmlElement(name="ruolo",required=true,nillable=false)
  286.   private List<Ruolo> ruolo = new ArrayList<>();

  287.   /**
  288.    * Use method getRuoloList
  289.    * @return List&lt;Ruolo&gt;
  290.   */
  291.   public List<Ruolo> getRuolo() {
  292.     return this.getRuoloList();
  293.   }

  294.   /**
  295.    * Use method setRuoloList
  296.    * @param ruolo List&lt;Ruolo&gt;
  297.   */
  298.   public void setRuolo(List<Ruolo> ruolo) {
  299.     this.setRuoloList(ruolo);
  300.   }

  301.   /**
  302.    * Use method sizeRuoloList
  303.    * @return lunghezza della lista
  304.   */
  305.   public int sizeRuolo() {
  306.     return this.sizeRuoloList();
  307.   }

  308.   @XmlElement(name="scope",required=true,nillable=false)
  309.   private List<Scope> scope = new ArrayList<>();

  310.   /**
  311.    * Use method getScopeList
  312.    * @return List&lt;Scope&gt;
  313.   */
  314.   public List<Scope> getScope() {
  315.     return this.getScopeList();
  316.   }

  317.   /**
  318.    * Use method setScopeList
  319.    * @param scope List&lt;Scope&gt;
  320.   */
  321.   public void setScope(List<Scope> scope) {
  322.     this.setScopeList(scope);
  323.   }

  324.   /**
  325.    * Use method sizeScopeList
  326.    * @return lunghezza della lista
  327.   */
  328.   public int sizeScope() {
  329.     return this.sizeScopeList();
  330.   }

  331.   @XmlElement(name="gruppo",required=true,nillable=false)
  332.   private List<Gruppo> gruppo = new ArrayList<>();

  333.   /**
  334.    * Use method getGruppoList
  335.    * @return List&lt;Gruppo&gt;
  336.   */
  337.   public List<Gruppo> getGruppo() {
  338.     return this.getGruppoList();
  339.   }

  340.   /**
  341.    * Use method setGruppoList
  342.    * @param gruppo List&lt;Gruppo&gt;
  343.   */
  344.   public void setGruppo(List<Gruppo> gruppo) {
  345.     this.setGruppoList(gruppo);
  346.   }

  347.   /**
  348.    * Use method sizeGruppoList
  349.    * @return lunghezza della lista
  350.   */
  351.   public int sizeGruppo() {
  352.     return this.sizeGruppoList();
  353.   }

  354.   @XmlElement(name="soggetto",required=true,nillable=false)
  355.   private List<Soggetto> soggetto = new ArrayList<>();

  356.   /**
  357.    * Use method getSoggettoList
  358.    * @return List&lt;Soggetto&gt;
  359.   */
  360.   public List<Soggetto> getSoggetto() {
  361.     return this.getSoggettoList();
  362.   }

  363.   /**
  364.    * Use method setSoggettoList
  365.    * @param soggetto List&lt;Soggetto&gt;
  366.   */
  367.   public void setSoggetto(List<Soggetto> soggetto) {
  368.     this.setSoggettoList(soggetto);
  369.   }

  370.   /**
  371.    * Use method sizeSoggettoList
  372.    * @return lunghezza della lista
  373.   */
  374.   public int sizeSoggetto() {
  375.     return this.sizeSoggettoList();
  376.   }

  377.   @XmlElement(name="connettore",required=true,nillable=false)
  378.   private List<Connettore> connettore = new ArrayList<>();

  379.   /**
  380.    * Use method getConnettoreList
  381.    * @return List&lt;Connettore&gt;
  382.   */
  383.   public List<Connettore> getConnettore() {
  384.     return this.getConnettoreList();
  385.   }

  386.   /**
  387.    * Use method setConnettoreList
  388.    * @param connettore List&lt;Connettore&gt;
  389.   */
  390.   public void setConnettore(List<Connettore> connettore) {
  391.     this.setConnettoreList(connettore);
  392.   }

  393.   /**
  394.    * Use method sizeConnettoreList
  395.    * @return lunghezza della lista
  396.   */
  397.   public int sizeConnettore() {
  398.     return this.sizeConnettoreList();
  399.   }

  400. }