AllarmeFiltro.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.allarmi;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.allarmi.constants.RuoloPorta;
  27. import java.io.Serializable;


  28. /** <p>Java class for allarme-filtro complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="allarme-filtro"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="1" maxOccurs="1" default="false"/&gt;
  36.  *          &lt;element name="protocollo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="ruolo-porta" type="{http://www.openspcoop2.org/core/allarmi}ruolo-porta" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="nome-porta" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="tipo-fruitore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="nome-fruitore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="ruolo-fruitore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  42.  *          &lt;element name="servizio-applicativo-fruitore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  43.  *          &lt;element name="tipo-erogatore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  44.  *          &lt;element name="nome-erogatore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  45.  *          &lt;element name="ruolo-erogatore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  46.  *          &lt;element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  47.  *          &lt;element name="tipo-servizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  48.  *          &lt;element name="nome-servizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  49.  *          &lt;element name="versione-servizio" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0" maxOccurs="1"/&gt;
  50.  *          &lt;element name="azione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  51.  *      &lt;/sequence&gt;
  52.  * &lt;/complexType&gt;
  53.  * </pre>
  54.  *
  55.  * @version $Rev$, $Date$
  56.  *
  57.  * @author Poli Andrea (poli@link.it)
  58.  * @author $Author$
  59.  * */

  60. @XmlAccessorType(XmlAccessType.FIELD)
  61. @XmlType(name = "allarme-filtro",
  62.   propOrder = {
  63.     "enabled",
  64.     "protocollo",
  65.     "ruoloPorta",
  66.     "nomePorta",
  67.     "tipoFruitore",
  68.     "nomeFruitore",
  69.     "ruoloFruitore",
  70.     "servizioApplicativoFruitore",
  71.     "tipoErogatore",
  72.     "nomeErogatore",
  73.     "ruoloErogatore",
  74.     "tag",
  75.     "tipoServizio",
  76.     "nomeServizio",
  77.     "versioneServizio",
  78.     "azione"
  79.   }
  80. )

  81. @XmlRootElement(name = "allarme-filtro")

  82. public class AllarmeFiltro extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  83.   public AllarmeFiltro() {
  84.     super();
  85.   }

  86.   public boolean isEnabled() {
  87.     return this.enabled;
  88.   }

  89.   public boolean getEnabled() {
  90.     return this.enabled;
  91.   }

  92.   public void setEnabled(boolean enabled) {
  93.     this.enabled = enabled;
  94.   }

  95.   public java.lang.String getProtocollo() {
  96.     return this.protocollo;
  97.   }

  98.   public void setProtocollo(java.lang.String protocollo) {
  99.     this.protocollo = protocollo;
  100.   }

  101.   public void setRuoloPortaRawEnumValue(String value) {
  102.     this.ruoloPorta = (RuoloPorta) RuoloPorta.toEnumConstantFromString(value);
  103.   }

  104.   public String getRuoloPortaRawEnumValue() {
  105.     if(this.ruoloPorta == null){
  106.         return null;
  107.     }else{
  108.         return this.ruoloPorta.toString();
  109.     }
  110.   }

  111.   public org.openspcoop2.core.allarmi.constants.RuoloPorta getRuoloPorta() {
  112.     return this.ruoloPorta;
  113.   }

  114.   public void setRuoloPorta(org.openspcoop2.core.allarmi.constants.RuoloPorta ruoloPorta) {
  115.     this.ruoloPorta = ruoloPorta;
  116.   }

  117.   public java.lang.String getNomePorta() {
  118.     return this.nomePorta;
  119.   }

  120.   public void setNomePorta(java.lang.String nomePorta) {
  121.     this.nomePorta = nomePorta;
  122.   }

  123.   public java.lang.String getTipoFruitore() {
  124.     return this.tipoFruitore;
  125.   }

  126.   public void setTipoFruitore(java.lang.String tipoFruitore) {
  127.     this.tipoFruitore = tipoFruitore;
  128.   }

  129.   public java.lang.String getNomeFruitore() {
  130.     return this.nomeFruitore;
  131.   }

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

  135.   public java.lang.String getRuoloFruitore() {
  136.     return this.ruoloFruitore;
  137.   }

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

  141.   public java.lang.String getServizioApplicativoFruitore() {
  142.     return this.servizioApplicativoFruitore;
  143.   }

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

  147.   public java.lang.String getTipoErogatore() {
  148.     return this.tipoErogatore;
  149.   }

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

  153.   public java.lang.String getNomeErogatore() {
  154.     return this.nomeErogatore;
  155.   }

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

  159.   public java.lang.String getRuoloErogatore() {
  160.     return this.ruoloErogatore;
  161.   }

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

  165.   public java.lang.String getTag() {
  166.     return this.tag;
  167.   }

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

  171.   public java.lang.String getTipoServizio() {
  172.     return this.tipoServizio;
  173.   }

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

  177.   public java.lang.String getNomeServizio() {
  178.     return this.nomeServizio;
  179.   }

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

  183.   public java.lang.Integer getVersioneServizio() {
  184.     return this.versioneServizio;
  185.   }

  186.   public void setVersioneServizio(java.lang.Integer versioneServizio) {
  187.     this.versioneServizio = versioneServizio;
  188.   }

  189.   public java.lang.String getAzione() {
  190.     return this.azione;
  191.   }

  192.   public void setAzione(java.lang.String azione) {
  193.     this.azione = azione;
  194.   }

  195.   private static final long serialVersionUID = 1L;



  196.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  197.   @XmlElement(name="enabled",required=true,nillable=false,defaultValue="false")
  198.   protected boolean enabled = false;

  199.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  200.   @XmlElement(name="protocollo",required=false,nillable=false)
  201.   protected java.lang.String protocollo;

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

  204.   @XmlElement(name="ruolo-porta",required=false,nillable=false)
  205.   protected RuoloPorta ruoloPorta;

  206.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  207.   @XmlElement(name="nome-porta",required=false,nillable=false)
  208.   protected java.lang.String nomePorta;

  209.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  210.   @XmlElement(name="tipo-fruitore",required=false,nillable=false)
  211.   protected java.lang.String tipoFruitore;

  212.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  213.   @XmlElement(name="nome-fruitore",required=false,nillable=false)
  214.   protected java.lang.String nomeFruitore;

  215.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  216.   @XmlElement(name="ruolo-fruitore",required=false,nillable=false)
  217.   protected java.lang.String ruoloFruitore;

  218.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  219.   @XmlElement(name="servizio-applicativo-fruitore",required=false,nillable=false)
  220.   protected java.lang.String servizioApplicativoFruitore;

  221.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  222.   @XmlElement(name="tipo-erogatore",required=false,nillable=false)
  223.   protected java.lang.String tipoErogatore;

  224.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  225.   @XmlElement(name="nome-erogatore",required=false,nillable=false)
  226.   protected java.lang.String nomeErogatore;

  227.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  228.   @XmlElement(name="ruolo-erogatore",required=false,nillable=false)
  229.   protected java.lang.String ruoloErogatore;

  230.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  231.   @XmlElement(name="tag",required=false,nillable=false)
  232.   protected java.lang.String tag;

  233.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  234.   @XmlElement(name="tipo-servizio",required=false,nillable=false)
  235.   protected java.lang.String tipoServizio;

  236.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  237.   @XmlElement(name="nome-servizio",required=false,nillable=false)
  238.   protected java.lang.String nomeServizio;

  239.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  240.   @XmlElement(name="versione-servizio",required=false,nillable=false)
  241.   protected java.lang.Integer versioneServizio;

  242.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  243.   @XmlElement(name="azione",required=false,nillable=false)
  244.   protected java.lang.String azione;

  245. }