AccordoCooperazione.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.id.IDAccordoCooperazione;
  28. import java.io.Serializable;
  29. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for accordo-cooperazione complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="accordo-cooperazione"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="uri-servizi-composti" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="soggetto-referente" type="{http://www.openspcoop2.org/core/registry}id-soggetto" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="elenco-partecipanti" type="{http://www.openspcoop2.org/core/registry}accordo-cooperazione-partecipanti" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="allegato" type="{http://www.openspcoop2.org/core/registry}documento" minOccurs="0" maxOccurs="unbounded"/&gt;
  42.  *          &lt;element name="specifica-semiformale" type="{http://www.openspcoop2.org/core/registry}documento" minOccurs="0" maxOccurs="unbounded"/&gt;
  43.  *          &lt;element name="protocol-property" type="{http://www.openspcoop2.org/core/registry}protocol-property" minOccurs="0" maxOccurs="unbounded"/&gt;
  44.  *      &lt;/sequence&gt;
  45.  *      &lt;attribute name="super-user" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  46.  *      &lt;attribute name="stato-package" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  47.  *      &lt;attribute name="privato" type="{http://www.w3.org/2001/XMLSchema}string" use="optional" default="false"/&gt;
  48.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  49.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  50.  *      &lt;attribute name="versione" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" use="optional" default="1"/&gt;
  51.  *      &lt;attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/&gt;
  52.  * &lt;/complexType&gt;
  53.  * </pre>
  54.  *
  55.  * @version $Rev$, $Date$
  56.  *
  57.  * @author Poli Andrea (poli@link.it)
  58.  * @author $Author$
  59.  * */

  60. @XmlAccessorType(XmlAccessType.FIELD)
  61. @XmlType(name = "accordo-cooperazione",
  62.   propOrder = {
  63.     "uriServiziComposti",
  64.     "soggettoReferente",
  65.     "elencoPartecipanti",
  66.     "allegato",
  67.     "specificaSemiformale",
  68.     "protocolProperty"
  69.   }
  70. )

  71. @XmlRootElement(name = "accordo-cooperazione")

  72. public class AccordoCooperazione extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  73.   public AccordoCooperazione() {
  74.     super();
  75.   }

  76.   public IDAccordoCooperazione getOldIDAccordoForUpdate() {
  77.     return this.oldIDAccordoForUpdate;
  78.   }

  79.   public void setOldIDAccordoForUpdate(IDAccordoCooperazione oldIDAccordoForUpdate) {
  80.     this.oldIDAccordoForUpdate=oldIDAccordoForUpdate;
  81.   }

  82.   public void addUriServiziComposti(java.lang.String uriServiziComposti) {
  83.     this.uriServiziComposti.add(uriServiziComposti);
  84.   }

  85.   public java.lang.String getUriServiziComposti(int index) {
  86.     return this.uriServiziComposti.get( index );
  87.   }

  88.   public java.lang.String removeUriServiziComposti(int index) {
  89.     return this.uriServiziComposti.remove( index );
  90.   }

  91.   public List<java.lang.String> getUriServiziCompostiList() {
  92.     return this.uriServiziComposti;
  93.   }

  94.   public void setUriServiziCompostiList(List<java.lang.String> uriServiziComposti) {
  95.     this.uriServiziComposti=uriServiziComposti;
  96.   }

  97.   public int sizeUriServiziCompostiList() {
  98.     return this.uriServiziComposti.size();
  99.   }

  100.   public IdSoggetto getSoggettoReferente() {
  101.     return this.soggettoReferente;
  102.   }

  103.   public void setSoggettoReferente(IdSoggetto soggettoReferente) {
  104.     this.soggettoReferente = soggettoReferente;
  105.   }

  106.   public AccordoCooperazionePartecipanti getElencoPartecipanti() {
  107.     return this.elencoPartecipanti;
  108.   }

  109.   public void setElencoPartecipanti(AccordoCooperazionePartecipanti elencoPartecipanti) {
  110.     this.elencoPartecipanti = elencoPartecipanti;
  111.   }

  112.   public void addAllegato(Documento allegato) {
  113.     this.allegato.add(allegato);
  114.   }

  115.   public Documento getAllegato(int index) {
  116.     return this.allegato.get( index );
  117.   }

  118.   public Documento removeAllegato(int index) {
  119.     return this.allegato.remove( index );
  120.   }

  121.   public List<Documento> getAllegatoList() {
  122.     return this.allegato;
  123.   }

  124.   public void setAllegatoList(List<Documento> allegato) {
  125.     this.allegato=allegato;
  126.   }

  127.   public int sizeAllegatoList() {
  128.     return this.allegato.size();
  129.   }

  130.   public void addSpecificaSemiformale(Documento specificaSemiformale) {
  131.     this.specificaSemiformale.add(specificaSemiformale);
  132.   }

  133.   public Documento getSpecificaSemiformale(int index) {
  134.     return this.specificaSemiformale.get( index );
  135.   }

  136.   public Documento removeSpecificaSemiformale(int index) {
  137.     return this.specificaSemiformale.remove( index );
  138.   }

  139.   public List<Documento> getSpecificaSemiformaleList() {
  140.     return this.specificaSemiformale;
  141.   }

  142.   public void setSpecificaSemiformaleList(List<Documento> specificaSemiformale) {
  143.     this.specificaSemiformale=specificaSemiformale;
  144.   }

  145.   public int sizeSpecificaSemiformaleList() {
  146.     return this.specificaSemiformale.size();
  147.   }

  148.   public void addProtocolProperty(ProtocolProperty protocolProperty) {
  149.     this.protocolProperty.add(protocolProperty);
  150.   }

  151.   public ProtocolProperty getProtocolProperty(int index) {
  152.     return this.protocolProperty.get( index );
  153.   }

  154.   public ProtocolProperty removeProtocolProperty(int index) {
  155.     return this.protocolProperty.remove( index );
  156.   }

  157.   public List<ProtocolProperty> getProtocolPropertyList() {
  158.     return this.protocolProperty;
  159.   }

  160.   public void setProtocolPropertyList(List<ProtocolProperty> protocolProperty) {
  161.     this.protocolProperty=protocolProperty;
  162.   }

  163.   public int sizeProtocolPropertyList() {
  164.     return this.protocolProperty.size();
  165.   }

  166.   public java.lang.String getSuperUser() {
  167.     return this.superUser;
  168.   }

  169.   public void setSuperUser(java.lang.String superUser) {
  170.     this.superUser = superUser;
  171.   }

  172.   public java.lang.String getStatoPackage() {
  173.     return this.statoPackage;
  174.   }

  175.   public void setStatoPackage(java.lang.String statoPackage) {
  176.     this.statoPackage = statoPackage;
  177.   }

  178.   public Boolean getPrivato() {
  179.     return this.privato;
  180.   }

  181.   public void setPrivato(Boolean privato) {
  182.     this.privato = privato;
  183.   }

  184.   public java.lang.String getNome() {
  185.     return this.nome;
  186.   }

  187.   public void setNome(java.lang.String nome) {
  188.     this.nome = nome;
  189.   }

  190.   public java.lang.String getDescrizione() {
  191.     return this.descrizione;
  192.   }

  193.   public void setDescrizione(java.lang.String descrizione) {
  194.     this.descrizione = descrizione;
  195.   }

  196.   public java.lang.Integer getVersione() {
  197.     return this.versione;
  198.   }

  199.   public void setVersione(java.lang.Integer versione) {
  200.     this.versione = versione;
  201.   }

  202.   public java.util.Date getOraRegistrazione() {
  203.     return this.oraRegistrazione;
  204.   }

  205.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  206.     this.oraRegistrazione = oraRegistrazione;
  207.   }

  208.   private static final long serialVersionUID = 1L;

  209.   private static org.openspcoop2.core.registry.model.AccordoCooperazioneModel modelStaticInstance = null;
  210.   private static synchronized void initModelStaticInstance(){
  211.       if(org.openspcoop2.core.registry.AccordoCooperazione.modelStaticInstance==null){
  212.             org.openspcoop2.core.registry.AccordoCooperazione.modelStaticInstance = new org.openspcoop2.core.registry.model.AccordoCooperazioneModel();
  213.       }
  214.   }
  215.   public static org.openspcoop2.core.registry.model.AccordoCooperazioneModel model(){
  216.       if(org.openspcoop2.core.registry.AccordoCooperazione.modelStaticInstance==null){
  217.             initModelStaticInstance();
  218.       }
  219.       return org.openspcoop2.core.registry.AccordoCooperazione.modelStaticInstance;
  220.   }


  221.   @javax.xml.bind.annotation.XmlTransient
  222.   protected IDAccordoCooperazione oldIDAccordoForUpdate;

  223.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  224.   @XmlElement(name="uri-servizi-composti",required=true,nillable=false)
  225.   private List<java.lang.String> uriServiziComposti = new ArrayList<>();

  226.   /**
  227.    * Use method getUriServiziCompostiList
  228.    * @return List&lt;java.lang.String&gt;
  229.   */
  230.   public List<java.lang.String> getUriServiziComposti() {
  231.     return this.getUriServiziCompostiList();
  232.   }

  233.   /**
  234.    * Use method setUriServiziCompostiList
  235.    * @param uriServiziComposti List&lt;java.lang.String&gt;
  236.   */
  237.   public void setUriServiziComposti(List<java.lang.String> uriServiziComposti) {
  238.     this.setUriServiziCompostiList(uriServiziComposti);
  239.   }

  240.   /**
  241.    * Use method sizeUriServiziCompostiList
  242.    * @return lunghezza della lista
  243.   */
  244.   public int sizeUriServiziComposti() {
  245.     return this.sizeUriServiziCompostiList();
  246.   }

  247.   @XmlElement(name="soggetto-referente",required=false,nillable=false)
  248.   protected IdSoggetto soggettoReferente;

  249.   @XmlElement(name="elenco-partecipanti",required=false,nillable=false)
  250.   protected AccordoCooperazionePartecipanti elencoPartecipanti;

  251.   @XmlElement(name="allegato",required=true,nillable=false)
  252.   private List<Documento> allegato = new ArrayList<>();

  253.   /**
  254.    * Use method getAllegatoList
  255.    * @return List&lt;Documento&gt;
  256.   */
  257.   public List<Documento> getAllegato() {
  258.     return this.getAllegatoList();
  259.   }

  260.   /**
  261.    * Use method setAllegatoList
  262.    * @param allegato List&lt;Documento&gt;
  263.   */
  264.   public void setAllegato(List<Documento> allegato) {
  265.     this.setAllegatoList(allegato);
  266.   }

  267.   /**
  268.    * Use method sizeAllegatoList
  269.    * @return lunghezza della lista
  270.   */
  271.   public int sizeAllegato() {
  272.     return this.sizeAllegatoList();
  273.   }

  274.   @XmlElement(name="specifica-semiformale",required=true,nillable=false)
  275.   private List<Documento> specificaSemiformale = new ArrayList<>();

  276.   /**
  277.    * Use method getSpecificaSemiformaleList
  278.    * @return List&lt;Documento&gt;
  279.   */
  280.   public List<Documento> getSpecificaSemiformale() {
  281.     return this.getSpecificaSemiformaleList();
  282.   }

  283.   /**
  284.    * Use method setSpecificaSemiformaleList
  285.    * @param specificaSemiformale List&lt;Documento&gt;
  286.   */
  287.   public void setSpecificaSemiformale(List<Documento> specificaSemiformale) {
  288.     this.setSpecificaSemiformaleList(specificaSemiformale);
  289.   }

  290.   /**
  291.    * Use method sizeSpecificaSemiformaleList
  292.    * @return lunghezza della lista
  293.   */
  294.   public int sizeSpecificaSemiformale() {
  295.     return this.sizeSpecificaSemiformaleList();
  296.   }

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

  299.   /**
  300.    * Use method getProtocolPropertyList
  301.    * @return List&lt;ProtocolProperty&gt;
  302.   */
  303.   public List<ProtocolProperty> getProtocolProperty() {
  304.     return this.getProtocolPropertyList();
  305.   }

  306.   /**
  307.    * Use method setProtocolPropertyList
  308.    * @param protocolProperty List&lt;ProtocolProperty&gt;
  309.   */
  310.   public void setProtocolProperty(List<ProtocolProperty> protocolProperty) {
  311.     this.setProtocolPropertyList(protocolProperty);
  312.   }

  313.   /**
  314.    * Use method sizeProtocolPropertyList
  315.    * @return lunghezza della lista
  316.   */
  317.   public int sizeProtocolProperty() {
  318.     return this.sizeProtocolPropertyList();
  319.   }

  320.   @javax.xml.bind.annotation.XmlTransient
  321.   protected java.lang.String superUser;

  322.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  323.   @XmlAttribute(name="stato-package",required=false)
  324.   protected java.lang.String statoPackage;

  325.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  326.   @XmlAttribute(name="privato",required=false)
  327.   protected Boolean privato = Boolean.valueOf("false");

  328.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  329.   @XmlAttribute(name="nome",required=true)
  330.   protected java.lang.String nome;

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

  334.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedInt")
  335.   @XmlAttribute(name="versione",required=false)
  336.   protected java.lang.Integer versione = java.lang.Integer.valueOf("1");

  337.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  338.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  339.   @XmlAttribute(name="ora-registrazione",required=false)
  340.   protected java.util.Date oraRegistrazione;

  341. }