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.config;

  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="porta-delegata" type="{http://www.openspcoop2.org/core/config}porta-delegata" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="porta-applicativa" type="{http://www.openspcoop2.org/core/config}porta-applicativa" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *          &lt;element name="servizio-applicativo" type="{http://www.openspcoop2.org/core/config}servizio-applicativo" minOccurs="0" maxOccurs="unbounded"/&gt;
  41.  *          &lt;element name="connettore" type="{http://www.openspcoop2.org/core/config}connettore" minOccurs="0" maxOccurs="unbounded"/&gt;
  42.  *      &lt;/sequence&gt;
  43.  *      &lt;attribute name="super-user" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  44.  *      &lt;attribute name="tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  45.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  46.  *      &lt;attribute name="identificativo-porta" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  47.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  48.  *      &lt;attribute name="dominio-default" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  49.  *      &lt;attribute name="router" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  50.  *      &lt;attribute name="pd-url-prefix-rewriter" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  51.  *      &lt;attribute name="pa-url-prefix-rewriter" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  52.  *      &lt;attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/&gt;
  53.  * &lt;/complexType&gt;
  54.  * </pre>
  55.  *
  56.  * @version $Rev$, $Date$
  57.  *
  58.  * @author Poli Andrea (poli@link.it)
  59.  * @author $Author$
  60.  * */

  61. @XmlAccessorType(XmlAccessType.FIELD)
  62. @XmlType(name = "soggetto",
  63.   propOrder = {
  64.     "portaDelegata",
  65.     "portaApplicativa",
  66.     "servizioApplicativo",
  67.     "connettore"
  68.   }
  69. )

  70. @XmlRootElement(name = "soggetto")

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

  75.   public IDSoggetto getOldIDSoggettoForUpdate() {
  76.     return this.oldIDSoggettoForUpdate;
  77.   }

  78.   public void setOldIDSoggettoForUpdate(IDSoggetto oldIDSoggettoForUpdate) {
  79.     this.oldIDSoggettoForUpdate=oldIDSoggettoForUpdate;
  80.   }

  81.   public void addPortaDelegata(PortaDelegata portaDelegata) {
  82.     this.portaDelegata.add(portaDelegata);
  83.   }

  84.   public PortaDelegata getPortaDelegata(int index) {
  85.     return this.portaDelegata.get( index );
  86.   }

  87.   public PortaDelegata removePortaDelegata(int index) {
  88.     return this.portaDelegata.remove( index );
  89.   }

  90.   public List<PortaDelegata> getPortaDelegataList() {
  91.     return this.portaDelegata;
  92.   }

  93.   public void setPortaDelegataList(List<PortaDelegata> portaDelegata) {
  94.     this.portaDelegata=portaDelegata;
  95.   }

  96.   public int sizePortaDelegataList() {
  97.     return this.portaDelegata.size();
  98.   }

  99.   public void addPortaApplicativa(PortaApplicativa portaApplicativa) {
  100.     this.portaApplicativa.add(portaApplicativa);
  101.   }

  102.   public PortaApplicativa getPortaApplicativa(int index) {
  103.     return this.portaApplicativa.get( index );
  104.   }

  105.   public PortaApplicativa removePortaApplicativa(int index) {
  106.     return this.portaApplicativa.remove( index );
  107.   }

  108.   public List<PortaApplicativa> getPortaApplicativaList() {
  109.     return this.portaApplicativa;
  110.   }

  111.   public void setPortaApplicativaList(List<PortaApplicativa> portaApplicativa) {
  112.     this.portaApplicativa=portaApplicativa;
  113.   }

  114.   public int sizePortaApplicativaList() {
  115.     return this.portaApplicativa.size();
  116.   }

  117.   public void addServizioApplicativo(ServizioApplicativo servizioApplicativo) {
  118.     this.servizioApplicativo.add(servizioApplicativo);
  119.   }

  120.   public ServizioApplicativo getServizioApplicativo(int index) {
  121.     return this.servizioApplicativo.get( index );
  122.   }

  123.   public ServizioApplicativo removeServizioApplicativo(int index) {
  124.     return this.servizioApplicativo.remove( index );
  125.   }

  126.   public List<ServizioApplicativo> getServizioApplicativoList() {
  127.     return this.servizioApplicativo;
  128.   }

  129.   public void setServizioApplicativoList(List<ServizioApplicativo> servizioApplicativo) {
  130.     this.servizioApplicativo=servizioApplicativo;
  131.   }

  132.   public int sizeServizioApplicativoList() {
  133.     return this.servizioApplicativo.size();
  134.   }

  135.   public void addConnettore(Connettore connettore) {
  136.     this.connettore.add(connettore);
  137.   }

  138.   public Connettore getConnettore(int index) {
  139.     return this.connettore.get( index );
  140.   }

  141.   public Connettore removeConnettore(int index) {
  142.     return this.connettore.remove( index );
  143.   }

  144.   public List<Connettore> getConnettoreList() {
  145.     return this.connettore;
  146.   }

  147.   public void setConnettoreList(List<Connettore> connettore) {
  148.     this.connettore=connettore;
  149.   }

  150.   public int sizeConnettoreList() {
  151.     return this.connettore.size();
  152.   }

  153.   public java.lang.String getSuperUser() {
  154.     return this.superUser;
  155.   }

  156.   public void setSuperUser(java.lang.String superUser) {
  157.     this.superUser = superUser;
  158.   }

  159.   public java.lang.String getTipo() {
  160.     return this.tipo;
  161.   }

  162.   public void setTipo(java.lang.String tipo) {
  163.     this.tipo = tipo;
  164.   }

  165.   public java.lang.String getNome() {
  166.     return this.nome;
  167.   }

  168.   public void setNome(java.lang.String nome) {
  169.     this.nome = nome;
  170.   }

  171.   public java.lang.String getIdentificativoPorta() {
  172.     return this.identificativoPorta;
  173.   }

  174.   public void setIdentificativoPorta(java.lang.String identificativoPorta) {
  175.     this.identificativoPorta = identificativoPorta;
  176.   }

  177.   public java.lang.String getDescrizione() {
  178.     return this.descrizione;
  179.   }

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

  183.   public boolean isDominioDefault() {
  184.     return this.dominioDefault;
  185.   }

  186.   public boolean getDominioDefault() {
  187.     return this.dominioDefault;
  188.   }

  189.   public void setDominioDefault(boolean dominioDefault) {
  190.     this.dominioDefault = dominioDefault;
  191.   }

  192.   public boolean isRouter() {
  193.     return this.router;
  194.   }

  195.   public boolean getRouter() {
  196.     return this.router;
  197.   }

  198.   public void setRouter(boolean router) {
  199.     this.router = router;
  200.   }

  201.   public java.lang.String getPdUrlPrefixRewriter() {
  202.     return this.pdUrlPrefixRewriter;
  203.   }

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

  207.   public java.lang.String getPaUrlPrefixRewriter() {
  208.     return this.paUrlPrefixRewriter;
  209.   }

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

  213.   public java.util.Date getOraRegistrazione() {
  214.     return this.oraRegistrazione;
  215.   }

  216.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  217.     this.oraRegistrazione = oraRegistrazione;
  218.   }

  219.   private static final long serialVersionUID = 1L;

  220.   private static org.openspcoop2.core.config.model.SoggettoModel modelStaticInstance = null;
  221.   private static synchronized void initModelStaticInstance(){
  222.       if(org.openspcoop2.core.config.Soggetto.modelStaticInstance==null){
  223.             org.openspcoop2.core.config.Soggetto.modelStaticInstance = new org.openspcoop2.core.config.model.SoggettoModel();
  224.       }
  225.   }
  226.   public static org.openspcoop2.core.config.model.SoggettoModel model(){
  227.       if(org.openspcoop2.core.config.Soggetto.modelStaticInstance==null){
  228.             initModelStaticInstance();
  229.       }
  230.       return org.openspcoop2.core.config.Soggetto.modelStaticInstance;
  231.   }


  232.   @javax.xml.bind.annotation.XmlTransient
  233.   protected IDSoggetto oldIDSoggettoForUpdate;

  234.   @XmlElement(name="porta-delegata",required=true,nillable=false)
  235.   private List<PortaDelegata> portaDelegata = new ArrayList<>();

  236.   /**
  237.    * Use method getPortaDelegataList
  238.    * @return List&lt;PortaDelegata&gt;
  239.   */
  240.   public List<PortaDelegata> getPortaDelegata() {
  241.     return this.getPortaDelegataList();
  242.   }

  243.   /**
  244.    * Use method setPortaDelegataList
  245.    * @param portaDelegata List&lt;PortaDelegata&gt;
  246.   */
  247.   public void setPortaDelegata(List<PortaDelegata> portaDelegata) {
  248.     this.setPortaDelegataList(portaDelegata);
  249.   }

  250.   /**
  251.    * Use method sizePortaDelegataList
  252.    * @return lunghezza della lista
  253.   */
  254.   public int sizePortaDelegata() {
  255.     return this.sizePortaDelegataList();
  256.   }

  257.   @XmlElement(name="porta-applicativa",required=true,nillable=false)
  258.   private List<PortaApplicativa> portaApplicativa = new ArrayList<>();

  259.   /**
  260.    * Use method getPortaApplicativaList
  261.    * @return List&lt;PortaApplicativa&gt;
  262.   */
  263.   public List<PortaApplicativa> getPortaApplicativa() {
  264.     return this.getPortaApplicativaList();
  265.   }

  266.   /**
  267.    * Use method setPortaApplicativaList
  268.    * @param portaApplicativa List&lt;PortaApplicativa&gt;
  269.   */
  270.   public void setPortaApplicativa(List<PortaApplicativa> portaApplicativa) {
  271.     this.setPortaApplicativaList(portaApplicativa);
  272.   }

  273.   /**
  274.    * Use method sizePortaApplicativaList
  275.    * @return lunghezza della lista
  276.   */
  277.   public int sizePortaApplicativa() {
  278.     return this.sizePortaApplicativaList();
  279.   }

  280.   @XmlElement(name="servizio-applicativo",required=true,nillable=false)
  281.   private List<ServizioApplicativo> servizioApplicativo = new ArrayList<>();

  282.   /**
  283.    * Use method getServizioApplicativoList
  284.    * @return List&lt;ServizioApplicativo&gt;
  285.   */
  286.   public List<ServizioApplicativo> getServizioApplicativo() {
  287.     return this.getServizioApplicativoList();
  288.   }

  289.   /**
  290.    * Use method setServizioApplicativoList
  291.    * @param servizioApplicativo List&lt;ServizioApplicativo&gt;
  292.   */
  293.   public void setServizioApplicativo(List<ServizioApplicativo> servizioApplicativo) {
  294.     this.setServizioApplicativoList(servizioApplicativo);
  295.   }

  296.   /**
  297.    * Use method sizeServizioApplicativoList
  298.    * @return lunghezza della lista
  299.   */
  300.   public int sizeServizioApplicativo() {
  301.     return this.sizeServizioApplicativoList();
  302.   }

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

  305.   /**
  306.    * Use method getConnettoreList
  307.    * @return List&lt;Connettore&gt;
  308.   */
  309.   public List<Connettore> getConnettore() {
  310.     return this.getConnettoreList();
  311.   }

  312.   /**
  313.    * Use method setConnettoreList
  314.    * @param connettore List&lt;Connettore&gt;
  315.   */
  316.   public void setConnettore(List<Connettore> connettore) {
  317.     this.setConnettoreList(connettore);
  318.   }

  319.   /**
  320.    * Use method sizeConnettoreList
  321.    * @return lunghezza della lista
  322.   */
  323.   public int sizeConnettore() {
  324.     return this.sizeConnettoreList();
  325.   }

  326.   @javax.xml.bind.annotation.XmlTransient
  327.   protected java.lang.String superUser;

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

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

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

  337.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  338.   @XmlAttribute(name="descrizione",required=false)
  339.   protected java.lang.String descrizione;

  340.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  341.   @XmlAttribute(name="dominio-default",required=false)
  342.   protected boolean dominioDefault = false;

  343.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  344.   @XmlAttribute(name="router",required=false)
  345.   protected boolean router = false;

  346.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  347.   @XmlAttribute(name="pd-url-prefix-rewriter",required=false)
  348.   protected java.lang.String pdUrlPrefixRewriter;

  349.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  350.   @XmlAttribute(name="pa-url-prefix-rewriter",required=false)
  351.   protected java.lang.String paUrlPrefixRewriter;

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

  356. }