PortaDelegataAzione.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.PortaDelegataAzioneIdentificazione;
  28. import org.openspcoop2.core.config.constants.StatoFunzionalita;
  29. import java.io.Serializable;
  30. import java.util.ArrayList;
  31. import java.util.List;


  32. /** <p>Java class for porta-delegata-azione complex type.
  33.  *
  34.  * <p>The following schema fragment specifies the expected content contained within this class.
  35.  *
  36.  * <pre>
  37.  * &lt;complexType name="porta-delegata-azione"&gt;
  38.  *      &lt;sequence&gt;
  39.  *          &lt;element name="azione-delegata" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  *      &lt;attribute name="identificazione" type="{http://www.openspcoop2.org/core/config}PortaDelegataAzioneIdentificazione" use="optional" default="static"/&gt;
  42.  *      &lt;attribute name="pattern" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  43.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  44.  *      &lt;attribute name="nome-porta-delegante" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  45.  *      &lt;attribute name="force-interface-based" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&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 = "porta-delegata-azione",
  56.   propOrder = {
  57.     "azioneDelegata"
  58.   }
  59. )

  60. @XmlRootElement(name = "porta-delegata-azione")

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

  65.   public void addAzioneDelegata(java.lang.String azioneDelegata) {
  66.     this.azioneDelegata.add(azioneDelegata);
  67.   }

  68.   public java.lang.String getAzioneDelegata(int index) {
  69.     return this.azioneDelegata.get( index );
  70.   }

  71.   public java.lang.String removeAzioneDelegata(int index) {
  72.     return this.azioneDelegata.remove( index );
  73.   }

  74.   public List<java.lang.String> getAzioneDelegataList() {
  75.     return this.azioneDelegata;
  76.   }

  77.   public void setAzioneDelegataList(List<java.lang.String> azioneDelegata) {
  78.     this.azioneDelegata=azioneDelegata;
  79.   }

  80.   public int sizeAzioneDelegataList() {
  81.     return this.azioneDelegata.size();
  82.   }

  83.   public void setIdentificazioneRawEnumValue(String value) {
  84.     this.identificazione = (PortaDelegataAzioneIdentificazione) PortaDelegataAzioneIdentificazione.toEnumConstantFromString(value);
  85.   }

  86.   public String getIdentificazioneRawEnumValue() {
  87.     if(this.identificazione == null){
  88.         return null;
  89.     }else{
  90.         return this.identificazione.toString();
  91.     }
  92.   }

  93.   public org.openspcoop2.core.config.constants.PortaDelegataAzioneIdentificazione getIdentificazione() {
  94.     return this.identificazione;
  95.   }

  96.   public void setIdentificazione(org.openspcoop2.core.config.constants.PortaDelegataAzioneIdentificazione identificazione) {
  97.     this.identificazione = identificazione;
  98.   }

  99.   public java.lang.String getPattern() {
  100.     return this.pattern;
  101.   }

  102.   public void setPattern(java.lang.String pattern) {
  103.     this.pattern = pattern;
  104.   }

  105.   public java.lang.String getNome() {
  106.     return this.nome;
  107.   }

  108.   public void setNome(java.lang.String nome) {
  109.     this.nome = nome;
  110.   }

  111.   public java.lang.String getNomePortaDelegante() {
  112.     return this.nomePortaDelegante;
  113.   }

  114.   public void setNomePortaDelegante(java.lang.String nomePortaDelegante) {
  115.     this.nomePortaDelegante = nomePortaDelegante;
  116.   }

  117.   public void setForceInterfaceBasedRawEnumValue(String value) {
  118.     this.forceInterfaceBased = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  119.   }

  120.   public String getForceInterfaceBasedRawEnumValue() {
  121.     if(this.forceInterfaceBased == null){
  122.         return null;
  123.     }else{
  124.         return this.forceInterfaceBased.toString();
  125.     }
  126.   }

  127.   public org.openspcoop2.core.config.constants.StatoFunzionalita getForceInterfaceBased() {
  128.     return this.forceInterfaceBased;
  129.   }

  130.   public void setForceInterfaceBased(org.openspcoop2.core.config.constants.StatoFunzionalita forceInterfaceBased) {
  131.     this.forceInterfaceBased = forceInterfaceBased;
  132.   }

  133.   private static final long serialVersionUID = 1L;



  134.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  135.   @XmlElement(name="azione-delegata",required=true,nillable=false)
  136.   private List<java.lang.String> azioneDelegata = new ArrayList<>();

  137.   /**
  138.    * Use method getAzioneDelegataList
  139.    * @return List&lt;java.lang.String&gt;
  140.   */
  141.   public List<java.lang.String> getAzioneDelegata() {
  142.     return this.getAzioneDelegataList();
  143.   }

  144.   /**
  145.    * Use method setAzioneDelegataList
  146.    * @param azioneDelegata List&lt;java.lang.String&gt;
  147.   */
  148.   public void setAzioneDelegata(List<java.lang.String> azioneDelegata) {
  149.     this.setAzioneDelegataList(azioneDelegata);
  150.   }

  151.   /**
  152.    * Use method sizeAzioneDelegataList
  153.    * @return lunghezza della lista
  154.   */
  155.   public int sizeAzioneDelegata() {
  156.     return this.sizeAzioneDelegataList();
  157.   }

  158.   @javax.xml.bind.annotation.XmlTransient
  159.   protected java.lang.String identificazioneRawEnumValue;

  160.   @XmlAttribute(name="identificazione",required=false)
  161.   protected PortaDelegataAzioneIdentificazione identificazione = (PortaDelegataAzioneIdentificazione) PortaDelegataAzioneIdentificazione.toEnumConstantFromString("static");

  162.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  163.   @XmlAttribute(name="pattern",required=false)
  164.   protected java.lang.String pattern;

  165.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  166.   @XmlAttribute(name="nome",required=false)
  167.   protected java.lang.String nome;

  168.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  169.   @XmlAttribute(name="nome-porta-delegante",required=false)
  170.   protected java.lang.String nomePortaDelegante;

  171.   @javax.xml.bind.annotation.XmlTransient
  172.   protected java.lang.String forceInterfaceBasedRawEnumValue;

  173.   @XmlAttribute(name="force-interface-based",required=false)
  174.   protected StatoFunzionalita forceInterfaceBased = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  175. }