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


  31. /** <p>Java class for servizio-applicativo complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="servizio-applicativo"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="invocazione-porta" type="{http://www.openspcoop2.org/core/config}invocazione-porta" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="invocazione-servizio" type="{http://www.openspcoop2.org/core/config}invocazione-servizio" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="risposta-asincrona" type="{http://www.openspcoop2.org/core/config}risposta-asincrona" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="proprieta" type="{http://www.openspcoop2.org/core/config}proprieta" minOccurs="0" maxOccurs="unbounded"/&gt;
  42.  *          &lt;element name="protocol-property" type="{http://www.openspcoop2.org/core/config}protocol-property" minOccurs="0" maxOccurs="unbounded"/&gt;
  43.  *          &lt;element name="proprieta-oggetto" type="{http://www.openspcoop2.org/core/config}proprieta-oggetto" minOccurs="0" maxOccurs="1"/&gt;
  44.  *      &lt;/sequence&gt;
  45.  *      &lt;attribute name="id-soggetto" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" use="optional"/&gt;
  46.  *      &lt;attribute name="tipo-soggetto-proprietario" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  47.  *      &lt;attribute name="nome-soggetto-proprietario" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  48.  *      &lt;attribute name="tipologia-fruizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  49.  *      &lt;attribute name="tipologia-erogazione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  50.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  51.  *      &lt;attribute name="tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  52.  *      &lt;attribute name="use-as-client" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  53.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  54.  *      &lt;attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/&gt;
  55.  * &lt;/complexType&gt;
  56.  * </pre>
  57.  *
  58.  * @version $Rev$, $Date$
  59.  *
  60.  * @author Poli Andrea (poli@link.it)
  61.  * @author $Author$
  62.  * */

  63. @XmlAccessorType(XmlAccessType.FIELD)
  64. @XmlType(name = "servizio-applicativo",
  65.   propOrder = {
  66.     "invocazionePorta",
  67.     "invocazioneServizio",
  68.     "rispostaAsincrona",
  69.     "proprieta",
  70.     "protocolProperty",
  71.     "proprietaOggetto"
  72.   }
  73. )

  74. @XmlRootElement(name = "servizio-applicativo")

  75. public class ServizioApplicativo extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  76.   public ServizioApplicativo() {
  77.     super();
  78.   }

  79.   public IDServizioApplicativo getOldIDServizioApplicativoForUpdate() {
  80.     return this.oldIDServizioApplicativoForUpdate;
  81.   }

  82.   public void setOldIDServizioApplicativoForUpdate(IDServizioApplicativo oldIDServizioApplicativoForUpdate) {
  83.     this.oldIDServizioApplicativoForUpdate=oldIDServizioApplicativoForUpdate;
  84.   }

  85.   public InvocazionePorta getInvocazionePorta() {
  86.     return this.invocazionePorta;
  87.   }

  88.   public void setInvocazionePorta(InvocazionePorta invocazionePorta) {
  89.     this.invocazionePorta = invocazionePorta;
  90.   }

  91.   public InvocazioneServizio getInvocazioneServizio() {
  92.     return this.invocazioneServizio;
  93.   }

  94.   public void setInvocazioneServizio(InvocazioneServizio invocazioneServizio) {
  95.     this.invocazioneServizio = invocazioneServizio;
  96.   }

  97.   public RispostaAsincrona getRispostaAsincrona() {
  98.     return this.rispostaAsincrona;
  99.   }

  100.   public void setRispostaAsincrona(RispostaAsincrona rispostaAsincrona) {
  101.     this.rispostaAsincrona = rispostaAsincrona;
  102.   }

  103.   public void addProprieta(Proprieta proprieta) {
  104.     this.proprieta.add(proprieta);
  105.   }

  106.   public Proprieta getProprieta(int index) {
  107.     return this.proprieta.get( index );
  108.   }

  109.   public Proprieta removeProprieta(int index) {
  110.     return this.proprieta.remove( index );
  111.   }

  112.   public List<Proprieta> getProprietaList() {
  113.     return this.proprieta;
  114.   }

  115.   public void setProprietaList(List<Proprieta> proprieta) {
  116.     this.proprieta=proprieta;
  117.   }

  118.   public int sizeProprietaList() {
  119.     return this.proprieta.size();
  120.   }

  121.   public void addProtocolProperty(ProtocolProperty protocolProperty) {
  122.     this.protocolProperty.add(protocolProperty);
  123.   }

  124.   public ProtocolProperty getProtocolProperty(int index) {
  125.     return this.protocolProperty.get( index );
  126.   }

  127.   public ProtocolProperty removeProtocolProperty(int index) {
  128.     return this.protocolProperty.remove( index );
  129.   }

  130.   public List<ProtocolProperty> getProtocolPropertyList() {
  131.     return this.protocolProperty;
  132.   }

  133.   public void setProtocolPropertyList(List<ProtocolProperty> protocolProperty) {
  134.     this.protocolProperty=protocolProperty;
  135.   }

  136.   public int sizeProtocolPropertyList() {
  137.     return this.protocolProperty.size();
  138.   }

  139.   public ProprietaOggetto getProprietaOggetto() {
  140.     return this.proprietaOggetto;
  141.   }

  142.   public void setProprietaOggetto(ProprietaOggetto proprietaOggetto) {
  143.     this.proprietaOggetto = proprietaOggetto;
  144.   }

  145.   public java.lang.Long getIdSoggetto() {
  146.     return this.idSoggetto;
  147.   }

  148.   public void setIdSoggetto(java.lang.Long idSoggetto) {
  149.     this.idSoggetto = idSoggetto;
  150.   }

  151.   public java.lang.String getTipoSoggettoProprietario() {
  152.     return this.tipoSoggettoProprietario;
  153.   }

  154.   public void setTipoSoggettoProprietario(java.lang.String tipoSoggettoProprietario) {
  155.     this.tipoSoggettoProprietario = tipoSoggettoProprietario;
  156.   }

  157.   public java.lang.String getNomeSoggettoProprietario() {
  158.     return this.nomeSoggettoProprietario;
  159.   }

  160.   public void setNomeSoggettoProprietario(java.lang.String nomeSoggettoProprietario) {
  161.     this.nomeSoggettoProprietario = nomeSoggettoProprietario;
  162.   }

  163.   public java.lang.String getTipologiaFruizione() {
  164.     return this.tipologiaFruizione;
  165.   }

  166.   public void setTipologiaFruizione(java.lang.String tipologiaFruizione) {
  167.     this.tipologiaFruizione = tipologiaFruizione;
  168.   }

  169.   public java.lang.String getTipologiaErogazione() {
  170.     return this.tipologiaErogazione;
  171.   }

  172.   public void setTipologiaErogazione(java.lang.String tipologiaErogazione) {
  173.     this.tipologiaErogazione = tipologiaErogazione;
  174.   }

  175.   public java.lang.String getNome() {
  176.     return this.nome;
  177.   }

  178.   public void setNome(java.lang.String nome) {
  179.     this.nome = nome;
  180.   }

  181.   public java.lang.String getTipo() {
  182.     return this.tipo;
  183.   }

  184.   public void setTipo(java.lang.String tipo) {
  185.     this.tipo = tipo;
  186.   }

  187.   public boolean isUseAsClient() {
  188.     return this.useAsClient;
  189.   }

  190.   public boolean getUseAsClient() {
  191.     return this.useAsClient;
  192.   }

  193.   public void setUseAsClient(boolean useAsClient) {
  194.     this.useAsClient = useAsClient;
  195.   }

  196.   public java.lang.String getDescrizione() {
  197.     return this.descrizione;
  198.   }

  199.   public void setDescrizione(java.lang.String descrizione) {
  200.     this.descrizione = descrizione;
  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.config.model.ServizioApplicativoModel modelStaticInstance = null;
  210.   private static synchronized void initModelStaticInstance(){
  211.       if(org.openspcoop2.core.config.ServizioApplicativo.modelStaticInstance==null){
  212.             org.openspcoop2.core.config.ServizioApplicativo.modelStaticInstance = new org.openspcoop2.core.config.model.ServizioApplicativoModel();
  213.       }
  214.   }
  215.   public static org.openspcoop2.core.config.model.ServizioApplicativoModel model(){
  216.       if(org.openspcoop2.core.config.ServizioApplicativo.modelStaticInstance==null){
  217.             initModelStaticInstance();
  218.       }
  219.       return org.openspcoop2.core.config.ServizioApplicativo.modelStaticInstance;
  220.   }


  221.   @javax.xml.bind.annotation.XmlTransient
  222.   protected IDServizioApplicativo oldIDServizioApplicativoForUpdate;

  223.   @XmlElement(name="invocazione-porta",required=false,nillable=false)
  224.   protected InvocazionePorta invocazionePorta;

  225.   @XmlElement(name="invocazione-servizio",required=false,nillable=false)
  226.   protected InvocazioneServizio invocazioneServizio;

  227.   @XmlElement(name="risposta-asincrona",required=false,nillable=false)
  228.   protected RispostaAsincrona rispostaAsincrona;

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

  231.   /**
  232.    * Use method getProprietaList
  233.    * @return List&lt;Proprieta&gt;
  234.   */
  235.   public List<Proprieta> getProprieta() {
  236.     return this.getProprietaList();
  237.   }

  238.   /**
  239.    * Use method setProprietaList
  240.    * @param proprieta List&lt;Proprieta&gt;
  241.   */
  242.   public void setProprieta(List<Proprieta> proprieta) {
  243.     this.setProprietaList(proprieta);
  244.   }

  245.   /**
  246.    * Use method sizeProprietaList
  247.    * @return lunghezza della lista
  248.   */
  249.   public int sizeProprieta() {
  250.     return this.sizeProprietaList();
  251.   }

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

  254.   /**
  255.    * Use method getProtocolPropertyList
  256.    * @return List&lt;ProtocolProperty&gt;
  257.   */
  258.   public List<ProtocolProperty> getProtocolProperty() {
  259.     return this.getProtocolPropertyList();
  260.   }

  261.   /**
  262.    * Use method setProtocolPropertyList
  263.    * @param protocolProperty List&lt;ProtocolProperty&gt;
  264.   */
  265.   public void setProtocolProperty(List<ProtocolProperty> protocolProperty) {
  266.     this.setProtocolPropertyList(protocolProperty);
  267.   }

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

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

  277.   @javax.xml.bind.annotation.XmlTransient
  278.   protected java.lang.Long idSoggetto;

  279.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  280.   @XmlAttribute(name="tipo-soggetto-proprietario",required=false)
  281.   protected java.lang.String tipoSoggettoProprietario;

  282.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  283.   @XmlAttribute(name="nome-soggetto-proprietario",required=false)
  284.   protected java.lang.String nomeSoggettoProprietario;

  285.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  286.   @XmlAttribute(name="tipologia-fruizione",required=false)
  287.   protected java.lang.String tipologiaFruizione;

  288.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  289.   @XmlAttribute(name="tipologia-erogazione",required=false)
  290.   protected java.lang.String tipologiaErogazione;

  291.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  292.   @XmlAttribute(name="nome",required=true)
  293.   protected java.lang.String nome;

  294.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  295.   @XmlAttribute(name="tipo",required=false)
  296.   protected java.lang.String tipo;

  297.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  298.   @XmlAttribute(name="use-as-client",required=false)
  299.   protected boolean useAsClient = false;

  300.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  301.   @XmlAttribute(name="descrizione",required=false)
  302.   protected java.lang.String descrizione;

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

  307. }