Filtro.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.pdd.monitor;

  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.pdd.monitor.constants.StatoMessaggio;
  27. import java.io.Serializable;
  28. import java.util.ArrayList;
  29. import java.util.List;


  30. /** <p>Java class for filtro complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="filtro"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="correlazione-applicativa" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="busta" type="{http://www.openspcoop2.org/pdd/monitor}busta" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="id-messaggio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="message-pattern" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="soglia" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0" maxOccurs="1"/&gt;
  42.  *          &lt;element name="stato" type="{http://www.openspcoop2.org/pdd/monitor}StatoMessaggio" minOccurs="0" maxOccurs="1"/&gt;
  43.  *          &lt;element name="tipo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  44.  *          &lt;element name="soggetto" type="{http://www.openspcoop2.org/pdd/monitor}busta-soggetto" minOccurs="0" maxOccurs="unbounded"/&gt;
  45.  *          &lt;element name="proprieta" type="{http://www.openspcoop2.org/pdd/monitor}proprieta" minOccurs="0" maxOccurs="unbounded"/&gt;
  46.  *      &lt;/sequence&gt;
  47.  * &lt;/complexType&gt;
  48.  * </pre>
  49.  *
  50.  * @version $Rev$, $Date$
  51.  *
  52.  * @author Poli Andrea (poli@link.it)
  53.  * @author $Author$
  54.  * */

  55. @XmlAccessorType(XmlAccessType.FIELD)
  56. @XmlType(name = "filtro",
  57.   propOrder = {
  58.     "correlazioneApplicativa",
  59.     "busta",
  60.     "idMessaggio",
  61.     "messagePattern",
  62.     "soglia",
  63.     "stato",
  64.     "tipo",
  65.     "soggetto",
  66.     "proprieta"
  67.   }
  68. )

  69. @XmlRootElement(name = "filtro")

  70. public class Filtro extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  71.   public Filtro() {
  72.     super();
  73.   }

  74.   public java.lang.String getCorrelazioneApplicativa() {
  75.     return this.correlazioneApplicativa;
  76.   }

  77.   public void setCorrelazioneApplicativa(java.lang.String correlazioneApplicativa) {
  78.     this.correlazioneApplicativa = correlazioneApplicativa;
  79.   }

  80.   public Busta getBusta() {
  81.     return this.busta;
  82.   }

  83.   public void setBusta(Busta busta) {
  84.     this.busta = busta;
  85.   }

  86.   public java.lang.String getIdMessaggio() {
  87.     return this.idMessaggio;
  88.   }

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

  92.   public java.lang.String getMessagePattern() {
  93.     return this.messagePattern;
  94.   }

  95.   public void setMessagePattern(java.lang.String messagePattern) {
  96.     this.messagePattern = messagePattern;
  97.   }

  98.   public long getSoglia() {
  99.     return this.soglia;
  100.   }

  101.   public void setSoglia(long soglia) {
  102.     this.soglia = soglia;
  103.   }

  104.   public void setStatoRawEnumValue(String value) {
  105.     this.stato = (StatoMessaggio) StatoMessaggio.toEnumConstantFromString(value);
  106.   }

  107.   public String getStatoRawEnumValue() {
  108.     if(this.stato == null){
  109.         return null;
  110.     }else{
  111.         return this.stato.toString();
  112.     }
  113.   }

  114.   public org.openspcoop2.pdd.monitor.constants.StatoMessaggio getStato() {
  115.     return this.stato;
  116.   }

  117.   public void setStato(org.openspcoop2.pdd.monitor.constants.StatoMessaggio stato) {
  118.     this.stato = stato;
  119.   }

  120.   public java.lang.String getTipo() {
  121.     return this.tipo;
  122.   }

  123.   public void setTipo(java.lang.String tipo) {
  124.     this.tipo = tipo;
  125.   }

  126.   public void addSoggetto(BustaSoggetto soggetto) {
  127.     this.soggetto.add(soggetto);
  128.   }

  129.   public BustaSoggetto getSoggetto(int index) {
  130.     return this.soggetto.get( index );
  131.   }

  132.   public BustaSoggetto removeSoggetto(int index) {
  133.     return this.soggetto.remove( index );
  134.   }

  135.   public List<BustaSoggetto> getSoggettoList() {
  136.     return this.soggetto;
  137.   }

  138.   public void setSoggettoList(List<BustaSoggetto> soggetto) {
  139.     this.soggetto=soggetto;
  140.   }

  141.   public int sizeSoggettoList() {
  142.     return this.soggetto.size();
  143.   }

  144.   public void addProprieta(Proprieta proprieta) {
  145.     this.proprieta.add(proprieta);
  146.   }

  147.   public Proprieta getProprieta(int index) {
  148.     return this.proprieta.get( index );
  149.   }

  150.   public Proprieta removeProprieta(int index) {
  151.     return this.proprieta.remove( index );
  152.   }

  153.   public List<Proprieta> getProprietaList() {
  154.     return this.proprieta;
  155.   }

  156.   public void setProprietaList(List<Proprieta> proprieta) {
  157.     this.proprieta=proprieta;
  158.   }

  159.   public int sizeProprietaList() {
  160.     return this.proprieta.size();
  161.   }

  162.   private static final long serialVersionUID = 1L;



  163.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  164.   @XmlElement(name="correlazione-applicativa",required=false,nillable=false)
  165.   protected java.lang.String correlazioneApplicativa;

  166.   @XmlElement(name="busta",required=false,nillable=false)
  167.   protected Busta busta;

  168.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  169.   @XmlElement(name="id-messaggio",required=false,nillable=false)
  170.   protected java.lang.String idMessaggio;

  171.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  172.   @XmlElement(name="message-pattern",required=false,nillable=false)
  173.   protected java.lang.String messagePattern;

  174.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  175.   @XmlElement(name="soglia",required=false,nillable=false)
  176.   protected long soglia = -1; // default utilizzato dal driver

  177.   @javax.xml.bind.annotation.XmlTransient
  178.   protected java.lang.String statoRawEnumValue;

  179.   @XmlElement(name="stato",required=false,nillable=false)
  180.   protected StatoMessaggio stato;

  181.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  182.   @XmlElement(name="tipo",required=false,nillable=false)
  183.   protected java.lang.String tipo;

  184.   @XmlElement(name="soggetto",required=true,nillable=false)
  185.   private List<BustaSoggetto> soggetto = new ArrayList<>();

  186.   /**
  187.    * Use method getSoggettoList
  188.    * @return List&lt;BustaSoggetto&gt;
  189.   */
  190.   public List<BustaSoggetto> getSoggetto() {
  191.     return this.getSoggettoList();
  192.   }

  193.   /**
  194.    * Use method setSoggettoList
  195.    * @param soggetto List&lt;BustaSoggetto&gt;
  196.   */
  197.   public void setSoggetto(List<BustaSoggetto> soggetto) {
  198.     this.setSoggettoList(soggetto);
  199.   }

  200.   /**
  201.    * Use method sizeSoggettoList
  202.    * @return lunghezza della lista
  203.   */
  204.   public int sizeSoggetto() {
  205.     return this.sizeSoggettoList();
  206.   }

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

  209.   /**
  210.    * Use method getProprietaList
  211.    * @return List&lt;Proprieta&gt;
  212.   */
  213.   public List<Proprieta> getProprieta() {
  214.     return this.getProprietaList();
  215.   }

  216.   /**
  217.    * Use method setProprietaList
  218.    * @param proprieta List&lt;Proprieta&gt;
  219.   */
  220.   public void setProprieta(List<Proprieta> proprieta) {
  221.     this.setProprietaList(proprieta);
  222.   }

  223.   /**
  224.    * Use method sizeProprietaList
  225.    * @return lunghezza della lista
  226.   */
  227.   public int sizeProprieta() {
  228.     return this.sizeProprietaList();
  229.   }

  230. }