ConfigurazioneUrlInvocazioneRegola.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.RuoloContesto;
  28. import org.openspcoop2.core.config.constants.ServiceBinding;
  29. import org.openspcoop2.core.config.constants.StatoFunzionalita;
  30. import java.io.Serializable;


  31. /** <p>Java class for configurazione-url-invocazione-regola complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="configurazione-url-invocazione-regola"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="soggetto" type="{http://www.openspcoop2.org/core/config}id-soggetto" minOccurs="0" maxOccurs="1"/&gt;
  39.  *      &lt;/sequence&gt;
  40.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  41.  *      &lt;attribute name="posizione" type="{http://www.w3.org/2001/XMLSchema}int" use="required"/&gt;
  42.  *      &lt;attribute name="stato" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="abilitato"/&gt;
  43.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  44.  *      &lt;attribute name="regexpr" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  45.  *      &lt;attribute name="regola" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  46.  *      &lt;attribute name="contesto-esterno" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  47.  *      &lt;attribute name="base-url" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  48.  *      &lt;attribute name="protocollo" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  49.  *      &lt;attribute name="ruolo" type="{http://www.openspcoop2.org/core/config}RuoloContesto" use="optional"/&gt;
  50.  *      &lt;attribute name="service-binding" type="{http://www.openspcoop2.org/core/config}ServiceBinding" use="optional"/&gt;
  51.  * &lt;/complexType&gt;
  52.  * </pre>
  53.  *
  54.  * @version $Rev$, $Date$
  55.  *
  56.  * @author Poli Andrea (poli@link.it)
  57.  * @author $Author$
  58.  * */

  59. @XmlAccessorType(XmlAccessType.FIELD)
  60. @XmlType(name = "configurazione-url-invocazione-regola",
  61.   propOrder = {
  62.     "soggetto"
  63.   }
  64. )

  65. @XmlRootElement(name = "configurazione-url-invocazione-regola")

  66. public class ConfigurazioneUrlInvocazioneRegola extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  67.   public ConfigurazioneUrlInvocazioneRegola() {
  68.     super();
  69.   }

  70.   public String getOldNome() {
  71.     if(this.oldNome!=null && ("".equals(this.oldNome)==false)){
  72.         return this.oldNome.trim();
  73.     }else{
  74.         return null;
  75.     }

  76.   }

  77.   public void setOldNome(String oldNome) {
  78.     this.oldNome=oldNome;
  79.   }

  80.   public IdSoggetto getSoggetto() {
  81.     return this.soggetto;
  82.   }

  83.   public void setSoggetto(IdSoggetto soggetto) {
  84.     this.soggetto = soggetto;
  85.   }

  86.   public java.lang.String getNome() {
  87.     return this.nome;
  88.   }

  89.   public void setNome(java.lang.String nome) {
  90.     this.nome = nome;
  91.   }

  92.   public int getPosizione() {
  93.     return this.posizione;
  94.   }

  95.   public void setPosizione(int posizione) {
  96.     this.posizione = posizione;
  97.   }

  98.   public void setStatoRawEnumValue(String value) {
  99.     this.stato = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  100.   }

  101.   public String getStatoRawEnumValue() {
  102.     if(this.stato == null){
  103.         return null;
  104.     }else{
  105.         return this.stato.toString();
  106.     }
  107.   }

  108.   public org.openspcoop2.core.config.constants.StatoFunzionalita getStato() {
  109.     return this.stato;
  110.   }

  111.   public void setStato(org.openspcoop2.core.config.constants.StatoFunzionalita stato) {
  112.     this.stato = stato;
  113.   }

  114.   public java.lang.String getDescrizione() {
  115.     return this.descrizione;
  116.   }

  117.   public void setDescrizione(java.lang.String descrizione) {
  118.     this.descrizione = descrizione;
  119.   }

  120.   public boolean isRegexpr() {
  121.     return this.regexpr;
  122.   }

  123.   public boolean getRegexpr() {
  124.     return this.regexpr;
  125.   }

  126.   public void setRegexpr(boolean regexpr) {
  127.     this.regexpr = regexpr;
  128.   }

  129.   public java.lang.String getRegola() {
  130.     return this.regola;
  131.   }

  132.   public void setRegola(java.lang.String regola) {
  133.     this.regola = regola;
  134.   }

  135.   public java.lang.String getContestoEsterno() {
  136.     return this.contestoEsterno;
  137.   }

  138.   public void setContestoEsterno(java.lang.String contestoEsterno) {
  139.     this.contestoEsterno = contestoEsterno;
  140.   }

  141.   public java.lang.String getBaseUrl() {
  142.     return this.baseUrl;
  143.   }

  144.   public void setBaseUrl(java.lang.String baseUrl) {
  145.     this.baseUrl = baseUrl;
  146.   }

  147.   public java.lang.String getProtocollo() {
  148.     return this.protocollo;
  149.   }

  150.   public void setProtocollo(java.lang.String protocollo) {
  151.     this.protocollo = protocollo;
  152.   }

  153.   public void setRuoloRawEnumValue(String value) {
  154.     this.ruolo = (RuoloContesto) RuoloContesto.toEnumConstantFromString(value);
  155.   }

  156.   public String getRuoloRawEnumValue() {
  157.     if(this.ruolo == null){
  158.         return null;
  159.     }else{
  160.         return this.ruolo.toString();
  161.     }
  162.   }

  163.   public org.openspcoop2.core.config.constants.RuoloContesto getRuolo() {
  164.     return this.ruolo;
  165.   }

  166.   public void setRuolo(org.openspcoop2.core.config.constants.RuoloContesto ruolo) {
  167.     this.ruolo = ruolo;
  168.   }

  169.   public void setServiceBindingRawEnumValue(String value) {
  170.     this.serviceBinding = (ServiceBinding) ServiceBinding.toEnumConstantFromString(value);
  171.   }

  172.   public String getServiceBindingRawEnumValue() {
  173.     if(this.serviceBinding == null){
  174.         return null;
  175.     }else{
  176.         return this.serviceBinding.toString();
  177.     }
  178.   }

  179.   public org.openspcoop2.core.config.constants.ServiceBinding getServiceBinding() {
  180.     return this.serviceBinding;
  181.   }

  182.   public void setServiceBinding(org.openspcoop2.core.config.constants.ServiceBinding serviceBinding) {
  183.     this.serviceBinding = serviceBinding;
  184.   }

  185.   private static final long serialVersionUID = 1L;



  186.   @javax.xml.bind.annotation.XmlTransient
  187.   protected String oldNome;

  188.   @XmlElement(name="soggetto",required=false,nillable=false)
  189.   protected IdSoggetto soggetto;

  190.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  191.   @XmlAttribute(name="nome",required=true)
  192.   protected java.lang.String nome;

  193.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  194.   @XmlAttribute(name="posizione",required=true)
  195.   protected int posizione;

  196.   @javax.xml.bind.annotation.XmlTransient
  197.   protected java.lang.String statoRawEnumValue;

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

  200.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  201.   @XmlAttribute(name="descrizione",required=false)
  202.   protected java.lang.String descrizione;

  203.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  204.   @XmlAttribute(name="regexpr",required=false)
  205.   protected boolean regexpr = false;

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

  209.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  210.   @XmlAttribute(name="contesto-esterno",required=true)
  211.   protected java.lang.String contestoEsterno;

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

  215.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  216.   @XmlAttribute(name="protocollo",required=false)
  217.   protected java.lang.String protocollo;

  218.   @javax.xml.bind.annotation.XmlTransient
  219.   protected java.lang.String ruoloRawEnumValue;

  220.   @XmlAttribute(name="ruolo",required=false)
  221.   protected RuoloContesto ruolo;

  222.   @javax.xml.bind.annotation.XmlTransient
  223.   protected java.lang.String serviceBindingRawEnumValue;

  224.   @XmlAttribute(name="service-binding",required=false)
  225.   protected ServiceBinding serviceBinding;

  226. }