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


  31. /** <p>Java class for soggetto complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="soggetto"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="connettore" type="{http://www.openspcoop2.org/core/registry}connettore" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="proprieta" type="{http://www.openspcoop2.org/core/registry}proprieta" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *          &lt;element name="protocol-property" type="{http://www.openspcoop2.org/core/registry}protocol-property" minOccurs="0" maxOccurs="unbounded"/&gt;
  41.  *          &lt;element name="credenziali" type="{http://www.openspcoop2.org/core/registry}credenziali-soggetto" minOccurs="0" maxOccurs="unbounded"/&gt;
  42.  *          &lt;element name="ruoli" type="{http://www.openspcoop2.org/core/registry}ruoli-soggetto" minOccurs="0" maxOccurs="1"/&gt;
  43.  *          &lt;element name="accordo-servizio-parte-specifica" type="{http://www.openspcoop2.org/core/registry}accordo-servizio-parte-specifica" minOccurs="0" maxOccurs="unbounded"/&gt;
  44.  *          &lt;element name="proprieta-oggetto" type="{http://www.openspcoop2.org/core/registry}proprieta-oggetto" minOccurs="0" maxOccurs="1"/&gt;
  45.  *      &lt;/sequence&gt;
  46.  *      &lt;attribute name="super-user" 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="tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  49.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  50.  *      &lt;attribute name="identificativo-porta" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  51.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  52.  *      &lt;attribute name="porta-dominio" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  53.  *      &lt;attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/&gt;
  54.  *      &lt;attribute name="versione-protocollo" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  55.  *      &lt;attribute name="codice-ipa" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  56.  * &lt;/complexType&gt;
  57.  * </pre>
  58.  *
  59.  * @version $Rev$, $Date$
  60.  *
  61.  * @author Poli Andrea (poli@link.it)
  62.  * @author $Author$
  63.  * */

  64. @XmlAccessorType(XmlAccessType.FIELD)
  65. @XmlType(name = "soggetto",
  66.   propOrder = {
  67.     "connettore",
  68.     "proprieta",
  69.     "protocolProperty",
  70.     "credenziali",
  71.     "ruoli",
  72.     "accordoServizioParteSpecifica",
  73.     "proprietaOggetto"
  74.   }
  75. )

  76. @XmlRootElement(name = "soggetto")

  77. public class Soggetto extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  78.   public Soggetto() {
  79.     super();
  80.   }

  81.   public IDSoggetto getOldIDSoggettoForUpdate() {
  82.     return this.oldIDSoggettoForUpdate;
  83.   }

  84.   public void setOldIDSoggettoForUpdate(IDSoggetto oldIDSoggettoForUpdate) {
  85.     this.oldIDSoggettoForUpdate=oldIDSoggettoForUpdate;
  86.   }

  87.   public Connettore getConnettore() {
  88.     return this.connettore;
  89.   }

  90.   public void setConnettore(Connettore connettore) {
  91.     this.connettore = connettore;
  92.   }

  93.   public void addProprieta(Proprieta proprieta) {
  94.     this.proprieta.add(proprieta);
  95.   }

  96.   public Proprieta getProprieta(int index) {
  97.     return this.proprieta.get( index );
  98.   }

  99.   public Proprieta removeProprieta(int index) {
  100.     return this.proprieta.remove( index );
  101.   }

  102.   public List<Proprieta> getProprietaList() {
  103.     return this.proprieta;
  104.   }

  105.   public void setProprietaList(List<Proprieta> proprieta) {
  106.     this.proprieta=proprieta;
  107.   }

  108.   public int sizeProprietaList() {
  109.     return this.proprieta.size();
  110.   }

  111.   public void addProtocolProperty(ProtocolProperty protocolProperty) {
  112.     this.protocolProperty.add(protocolProperty);
  113.   }

  114.   public ProtocolProperty getProtocolProperty(int index) {
  115.     return this.protocolProperty.get( index );
  116.   }

  117.   public ProtocolProperty removeProtocolProperty(int index) {
  118.     return this.protocolProperty.remove( index );
  119.   }

  120.   public List<ProtocolProperty> getProtocolPropertyList() {
  121.     return this.protocolProperty;
  122.   }

  123.   public void setProtocolPropertyList(List<ProtocolProperty> protocolProperty) {
  124.     this.protocolProperty=protocolProperty;
  125.   }

  126.   public int sizeProtocolPropertyList() {
  127.     return this.protocolProperty.size();
  128.   }

  129.   public void addCredenziali(CredenzialiSoggetto credenziali) {
  130.     this.credenziali.add(credenziali);
  131.   }

  132.   public CredenzialiSoggetto getCredenziali(int index) {
  133.     return this.credenziali.get( index );
  134.   }

  135.   public CredenzialiSoggetto removeCredenziali(int index) {
  136.     return this.credenziali.remove( index );
  137.   }

  138.   public List<CredenzialiSoggetto> getCredenzialiList() {
  139.     return this.credenziali;
  140.   }

  141.   public void setCredenzialiList(List<CredenzialiSoggetto> credenziali) {
  142.     this.credenziali=credenziali;
  143.   }

  144.   public int sizeCredenzialiList() {
  145.     return this.credenziali.size();
  146.   }

  147.   public RuoliSoggetto getRuoli() {
  148.     return this.ruoli;
  149.   }

  150.   public void setRuoli(RuoliSoggetto ruoli) {
  151.     this.ruoli = ruoli;
  152.   }

  153.   public void addAccordoServizioParteSpecifica(AccordoServizioParteSpecifica accordoServizioParteSpecifica) {
  154.     this.accordoServizioParteSpecifica.add(accordoServizioParteSpecifica);
  155.   }

  156.   public AccordoServizioParteSpecifica getAccordoServizioParteSpecifica(int index) {
  157.     return this.accordoServizioParteSpecifica.get( index );
  158.   }

  159.   public AccordoServizioParteSpecifica removeAccordoServizioParteSpecifica(int index) {
  160.     return this.accordoServizioParteSpecifica.remove( index );
  161.   }

  162.   public List<AccordoServizioParteSpecifica> getAccordoServizioParteSpecificaList() {
  163.     return this.accordoServizioParteSpecifica;
  164.   }

  165.   public void setAccordoServizioParteSpecificaList(List<AccordoServizioParteSpecifica> accordoServizioParteSpecifica) {
  166.     this.accordoServizioParteSpecifica=accordoServizioParteSpecifica;
  167.   }

  168.   public int sizeAccordoServizioParteSpecificaList() {
  169.     return this.accordoServizioParteSpecifica.size();
  170.   }

  171.   public ProprietaOggetto getProprietaOggetto() {
  172.     return this.proprietaOggetto;
  173.   }

  174.   public void setProprietaOggetto(ProprietaOggetto proprietaOggetto) {
  175.     this.proprietaOggetto = proprietaOggetto;
  176.   }

  177.   public java.lang.String getSuperUser() {
  178.     return this.superUser;
  179.   }

  180.   public void setSuperUser(java.lang.String superUser) {
  181.     this.superUser = superUser;
  182.   }

  183.   public Boolean getPrivato() {
  184.     return this.privato;
  185.   }

  186.   public void setPrivato(Boolean privato) {
  187.     this.privato = privato;
  188.   }

  189.   public java.lang.String getTipo() {
  190.     return this.tipo;
  191.   }

  192.   public void setTipo(java.lang.String tipo) {
  193.     this.tipo = tipo;
  194.   }

  195.   public java.lang.String getNome() {
  196.     return this.nome;
  197.   }

  198.   public void setNome(java.lang.String nome) {
  199.     this.nome = nome;
  200.   }

  201.   public java.lang.String getIdentificativoPorta() {
  202.     return this.identificativoPorta;
  203.   }

  204.   public void setIdentificativoPorta(java.lang.String identificativoPorta) {
  205.     this.identificativoPorta = identificativoPorta;
  206.   }

  207.   public java.lang.String getDescrizione() {
  208.     return this.descrizione;
  209.   }

  210.   public void setDescrizione(java.lang.String descrizione) {
  211.     this.descrizione = descrizione;
  212.   }

  213.   public java.lang.String getPortaDominio() {
  214.     return this.portaDominio;
  215.   }

  216.   public void setPortaDominio(java.lang.String portaDominio) {
  217.     this.portaDominio = portaDominio;
  218.   }

  219.   public java.util.Date getOraRegistrazione() {
  220.     return this.oraRegistrazione;
  221.   }

  222.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  223.     this.oraRegistrazione = oraRegistrazione;
  224.   }

  225.   public java.lang.String getVersioneProtocollo() {
  226.     return this.versioneProtocollo;
  227.   }

  228.   public void setVersioneProtocollo(java.lang.String versioneProtocollo) {
  229.     this.versioneProtocollo = versioneProtocollo;
  230.   }

  231.   public java.lang.String getCodiceIpa() {
  232.     return this.codiceIpa;
  233.   }

  234.   public void setCodiceIpa(java.lang.String codiceIpa) {
  235.     this.codiceIpa = codiceIpa;
  236.   }

  237.   private static final long serialVersionUID = 1L;

  238.   private static org.openspcoop2.core.registry.model.SoggettoModel modelStaticInstance = null;
  239.   private static synchronized void initModelStaticInstance(){
  240.       if(org.openspcoop2.core.registry.Soggetto.modelStaticInstance==null){
  241.             org.openspcoop2.core.registry.Soggetto.modelStaticInstance = new org.openspcoop2.core.registry.model.SoggettoModel();
  242.       }
  243.   }
  244.   public static org.openspcoop2.core.registry.model.SoggettoModel model(){
  245.       if(org.openspcoop2.core.registry.Soggetto.modelStaticInstance==null){
  246.             initModelStaticInstance();
  247.       }
  248.       return org.openspcoop2.core.registry.Soggetto.modelStaticInstance;
  249.   }


  250.   @javax.xml.bind.annotation.XmlTransient
  251.   protected IDSoggetto oldIDSoggettoForUpdate;

  252.   @XmlElement(name="connettore",required=false,nillable=false)
  253.   protected Connettore connettore;

  254.   @XmlElement(name="proprieta",required=true,nillable=false)
  255.   private List<Proprieta> proprieta = new ArrayList<>();

  256.   /**
  257.    * Use method getProprietaList
  258.    * @return List&lt;Proprieta&gt;
  259.   */
  260.   public List<Proprieta> getProprieta() {
  261.     return this.getProprietaList();
  262.   }

  263.   /**
  264.    * Use method setProprietaList
  265.    * @param proprieta List&lt;Proprieta&gt;
  266.   */
  267.   public void setProprieta(List<Proprieta> proprieta) {
  268.     this.setProprietaList(proprieta);
  269.   }

  270.   /**
  271.    * Use method sizeProprietaList
  272.    * @return lunghezza della lista
  273.   */
  274.   public int sizeProprieta() {
  275.     return this.sizeProprietaList();
  276.   }

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

  279.   /**
  280.    * Use method getProtocolPropertyList
  281.    * @return List&lt;ProtocolProperty&gt;
  282.   */
  283.   public List<ProtocolProperty> getProtocolProperty() {
  284.     return this.getProtocolPropertyList();
  285.   }

  286.   /**
  287.    * Use method setProtocolPropertyList
  288.    * @param protocolProperty List&lt;ProtocolProperty&gt;
  289.   */
  290.   public void setProtocolProperty(List<ProtocolProperty> protocolProperty) {
  291.     this.setProtocolPropertyList(protocolProperty);
  292.   }

  293.   /**
  294.    * Use method sizeProtocolPropertyList
  295.    * @return lunghezza della lista
  296.   */
  297.   public int sizeProtocolProperty() {
  298.     return this.sizeProtocolPropertyList();
  299.   }

  300.   @XmlElement(name="credenziali",required=true,nillable=false)
  301.   private List<CredenzialiSoggetto> credenziali = new ArrayList<>();

  302.   /**
  303.    * Use method getCredenzialiList
  304.    * @return List&lt;CredenzialiSoggetto&gt;
  305.   */
  306.   public List<CredenzialiSoggetto> getCredenziali() {
  307.     return this.getCredenzialiList();
  308.   }

  309.   /**
  310.    * Use method setCredenzialiList
  311.    * @param credenziali List&lt;CredenzialiSoggetto&gt;
  312.   */
  313.   public void setCredenziali(List<CredenzialiSoggetto> credenziali) {
  314.     this.setCredenzialiList(credenziali);
  315.   }

  316.   /**
  317.    * Use method sizeCredenzialiList
  318.    * @return lunghezza della lista
  319.   */
  320.   public int sizeCredenziali() {
  321.     return this.sizeCredenzialiList();
  322.   }

  323.   @XmlElement(name="ruoli",required=false,nillable=false)
  324.   protected RuoliSoggetto ruoli;

  325.   @XmlElement(name="accordo-servizio-parte-specifica",required=true,nillable=false)
  326.   private List<AccordoServizioParteSpecifica> accordoServizioParteSpecifica = new ArrayList<>();

  327.   /**
  328.    * Use method getAccordoServizioParteSpecificaList
  329.    * @return List&lt;AccordoServizioParteSpecifica&gt;
  330.   */
  331.   public List<AccordoServizioParteSpecifica> getAccordoServizioParteSpecifica() {
  332.     return this.getAccordoServizioParteSpecificaList();
  333.   }

  334.   /**
  335.    * Use method setAccordoServizioParteSpecificaList
  336.    * @param accordoServizioParteSpecifica List&lt;AccordoServizioParteSpecifica&gt;
  337.   */
  338.   public void setAccordoServizioParteSpecifica(List<AccordoServizioParteSpecifica> accordoServizioParteSpecifica) {
  339.     this.setAccordoServizioParteSpecificaList(accordoServizioParteSpecifica);
  340.   }

  341.   /**
  342.    * Use method sizeAccordoServizioParteSpecificaList
  343.    * @return lunghezza della lista
  344.   */
  345.   public int sizeAccordoServizioParteSpecifica() {
  346.     return this.sizeAccordoServizioParteSpecificaList();
  347.   }

  348.   @XmlElement(name="proprieta-oggetto",required=false,nillable=false)
  349.   protected ProprietaOggetto proprietaOggetto;

  350.   @javax.xml.bind.annotation.XmlTransient
  351.   protected java.lang.String superUser;

  352.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  353.   @XmlAttribute(name="privato",required=false)
  354.   protected Boolean privato = Boolean.valueOf("false");

  355.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  356.   @XmlAttribute(name="tipo",required=true)
  357.   protected java.lang.String tipo;

  358.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  359.   @XmlAttribute(name="nome",required=true)
  360.   protected java.lang.String nome;

  361.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  362.   @XmlAttribute(name="identificativo-porta",required=false)
  363.   protected java.lang.String identificativoPorta;

  364.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  365.   @XmlAttribute(name="descrizione",required=false)
  366.   protected java.lang.String descrizione;

  367.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  368.   @XmlAttribute(name="porta-dominio",required=false)
  369.   protected java.lang.String portaDominio;

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

  374.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  375.   @XmlAttribute(name="versione-protocollo",required=false)
  376.   protected java.lang.String versioneProtocollo;

  377.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  378.   @XmlAttribute(name="codice-ipa",required=false)
  379.   protected java.lang.String codiceIpa;

  380. }