RegistroPlugin.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.config.constants.StatoFunzionalita;
  28. import java.io.Serializable;
  29. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for registro-plugin complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="registro-plugin"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="archivio" type="{http://www.openspcoop2.org/core/config}registro-plugin-archivio" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="compatibilita" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  *      &lt;attribute name="stato" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="abilitato"/&gt;
  42.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  43.  *      &lt;attribute name="posizione" type="{http://www.w3.org/2001/XMLSchema}int" use="required"/&gt;
  44.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  45.  *      &lt;attribute name="data" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="required"/&gt;
  46.  * &lt;/complexType&gt;
  47.  * </pre>
  48.  *
  49.  * @version $Rev$, $Date$
  50.  *
  51.  * @author Poli Andrea (poli@link.it)
  52.  * @author $Author$
  53.  * */

  54. @XmlAccessorType(XmlAccessType.FIELD)
  55. @XmlType(name = "registro-plugin",
  56.   propOrder = {
  57.     "archivio",
  58.     "compatibilita"
  59.   }
  60. )

  61. @XmlRootElement(name = "registro-plugin")

  62. public class RegistroPlugin extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  63.   public RegistroPlugin() {
  64.     super();
  65.   }

  66.   public String getOldNome() {
  67.     if(this.oldNome!=null && ("".equals(this.oldNome)==false)){
  68.         return this.oldNome.trim();
  69.     }else{
  70.         return null;
  71.     }

  72.   }

  73.   public void setOldNome(String oldNome) {
  74.     this.oldNome=oldNome;
  75.   }

  76.   public void addArchivio(RegistroPluginArchivio archivio) {
  77.     this.archivio.add(archivio);
  78.   }

  79.   public RegistroPluginArchivio getArchivio(int index) {
  80.     return this.archivio.get( index );
  81.   }

  82.   public RegistroPluginArchivio removeArchivio(int index) {
  83.     return this.archivio.remove( index );
  84.   }

  85.   public List<RegistroPluginArchivio> getArchivioList() {
  86.     return this.archivio;
  87.   }

  88.   public void setArchivioList(List<RegistroPluginArchivio> archivio) {
  89.     this.archivio=archivio;
  90.   }

  91.   public int sizeArchivioList() {
  92.     return this.archivio.size();
  93.   }

  94.   public void addCompatibilita(java.lang.String compatibilita) {
  95.     this.compatibilita.add(compatibilita);
  96.   }

  97.   public java.lang.String getCompatibilita(int index) {
  98.     return this.compatibilita.get( index );
  99.   }

  100.   public java.lang.String removeCompatibilita(int index) {
  101.     return this.compatibilita.remove( index );
  102.   }

  103.   public List<java.lang.String> getCompatibilitaList() {
  104.     return this.compatibilita;
  105.   }

  106.   public void setCompatibilitaList(List<java.lang.String> compatibilita) {
  107.     this.compatibilita=compatibilita;
  108.   }

  109.   public int sizeCompatibilitaList() {
  110.     return this.compatibilita.size();
  111.   }

  112.   public void setStatoRawEnumValue(String value) {
  113.     this.stato = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  114.   }

  115.   public String getStatoRawEnumValue() {
  116.     if(this.stato == null){
  117.         return null;
  118.     }else{
  119.         return this.stato.toString();
  120.     }
  121.   }

  122.   public org.openspcoop2.core.config.constants.StatoFunzionalita getStato() {
  123.     return this.stato;
  124.   }

  125.   public void setStato(org.openspcoop2.core.config.constants.StatoFunzionalita stato) {
  126.     this.stato = stato;
  127.   }

  128.   public java.lang.String getNome() {
  129.     return this.nome;
  130.   }

  131.   public void setNome(java.lang.String nome) {
  132.     this.nome = nome;
  133.   }

  134.   public int getPosizione() {
  135.     return this.posizione;
  136.   }

  137.   public void setPosizione(int posizione) {
  138.     this.posizione = posizione;
  139.   }

  140.   public java.lang.String getDescrizione() {
  141.     return this.descrizione;
  142.   }

  143.   public void setDescrizione(java.lang.String descrizione) {
  144.     this.descrizione = descrizione;
  145.   }

  146.   public java.util.Date getData() {
  147.     return this.data;
  148.   }

  149.   public void setData(java.util.Date data) {
  150.     this.data = data;
  151.   }

  152.   private static final long serialVersionUID = 1L;



  153.   @javax.xml.bind.annotation.XmlTransient
  154.   protected String oldNome;

  155.   @XmlElement(name="archivio",required=true,nillable=false)
  156.   private List<RegistroPluginArchivio> archivio = new ArrayList<>();

  157.   /**
  158.    * Use method getArchivioList
  159.    * @return List&lt;RegistroPluginArchivio&gt;
  160.   */
  161.   public List<RegistroPluginArchivio> getArchivio() {
  162.     return this.getArchivioList();
  163.   }

  164.   /**
  165.    * Use method setArchivioList
  166.    * @param archivio List&lt;RegistroPluginArchivio&gt;
  167.   */
  168.   public void setArchivio(List<RegistroPluginArchivio> archivio) {
  169.     this.setArchivioList(archivio);
  170.   }

  171.   /**
  172.    * Use method sizeArchivioList
  173.    * @return lunghezza della lista
  174.   */
  175.   public int sizeArchivio() {
  176.     return this.sizeArchivioList();
  177.   }

  178.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  179.   @XmlElement(name="compatibilita",required=true,nillable=false)
  180.   private List<java.lang.String> compatibilita = new ArrayList<>();

  181.   /**
  182.    * Use method getCompatibilitaList
  183.    * @return List&lt;java.lang.String&gt;
  184.   */
  185.   public List<java.lang.String> getCompatibilita() {
  186.     return this.getCompatibilitaList();
  187.   }

  188.   /**
  189.    * Use method setCompatibilitaList
  190.    * @param compatibilita List&lt;java.lang.String&gt;
  191.   */
  192.   public void setCompatibilita(List<java.lang.String> compatibilita) {
  193.     this.setCompatibilitaList(compatibilita);
  194.   }

  195.   /**
  196.    * Use method sizeCompatibilitaList
  197.    * @return lunghezza della lista
  198.   */
  199.   public int sizeCompatibilita() {
  200.     return this.sizeCompatibilitaList();
  201.   }

  202.   @javax.xml.bind.annotation.XmlTransient
  203.   protected java.lang.String statoRawEnumValue;

  204.   @XmlAttribute(name="stato",required=false)
  205.   protected StatoFunzionalita stato = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("abilitato");

  206.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  207.   @XmlAttribute(name="nome",required=true)
  208.   protected java.lang.String nome;

  209.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  210.   @XmlAttribute(name="posizione",required=true)
  211.   protected int posizione;

  212.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  213.   @XmlAttribute(name="descrizione",required=false)
  214.   protected java.lang.String descrizione;

  215.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  216.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  217.   @XmlAttribute(name="data",required=true)
  218.   protected java.util.Date data;

  219. }