FiltroRicercaAllarmi.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.utils;

  21. import org.openspcoop2.core.allarmi.constants.RuoloPorta;

  22. /**
  23.  * FiltroRicercaAllarmi
  24.  *
  25.  * @author Poli Andrea (apoli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */
  29. public class FiltroRicercaAllarmi {

  30.     private String tipo;
  31.    
  32.     private String idParametroCluster;
  33.     private String idCluster;
  34.     private boolean idClusterOpzionale;
  35.    
  36.     private String idParametro;
  37.     private String valoreParametro;
  38.    
  39.     private boolean recuperaSoloAllarmiInStatoDiversoDaOk;
  40.    
  41.     private Boolean globale;
  42.     private RuoloPorta ruoloPorta;
  43.     private String nomePorta;

  44.     @Override
  45.     public String toString() {
  46.         return toString("\n");
  47.     }
  48.     public String toString(String separator) {
  49.         StringBuilder sb = new StringBuilder();
  50.         sb.append("tipo:").append(this.tipo);
  51.         sb.append(separator).append("idParametroCluster:").append(this.idParametroCluster!=null ? this.idParametroCluster : "");
  52.         sb.append(separator).append("idCluster:").append(this.idCluster!=null ? this.idCluster : "");
  53.         sb.append(separator).append("idClusterOpzionale:").append(this.idClusterOpzionale);
  54.         sb.append(separator).append("idParametro:").append(this.idParametro!=null ? this.idParametro : "");
  55.         sb.append(separator).append("valoreParametro:").append(this.valoreParametro!=null ? this.valoreParametro : "");
  56.         sb.append(separator).append("diversiOk:").append(this.recuperaSoloAllarmiInStatoDiversoDaOk);
  57.         sb.append(separator).append("globale:").append(this.globale!=null ? this.globale : "");
  58.         sb.append(separator).append("ruoloPorta:").append(this.ruoloPorta!=null ? this.ruoloPorta.getValue() : "");
  59.         sb.append(separator).append("nomePorta:").append(this.nomePorta!=null ? this.nomePorta : "");
  60.         return sb.toString();
  61.     }
  62.    
  63.    
  64.     public String getTipo() {
  65.         return this.tipo;
  66.     }

  67.     public void setTipo(String tipo) {
  68.         this.tipo = tipo;
  69.     }

  70.     public String getIdParametroCluster() {
  71.         return this.idParametroCluster;
  72.     }

  73.     public void setIdParametroCluster(String idParametroCluster) {
  74.         this.idParametroCluster = idParametroCluster;
  75.     }

  76.     public String getIdCluster() {
  77.         return this.idCluster;
  78.     }

  79.     public void setIdCluster(String idCluster) {
  80.         this.idCluster = idCluster;
  81.     }

  82.     public boolean isIdClusterOpzionale() {
  83.         return this.idClusterOpzionale;
  84.     }

  85.     public void setIdClusterOpzionale(boolean idClusterOpzionale) {
  86.         this.idClusterOpzionale = idClusterOpzionale;
  87.     }

  88.     public String getIdParametro() {
  89.         return this.idParametro;
  90.     }

  91.     public void setIdParametro(String idParametro) {
  92.         this.idParametro = idParametro;
  93.     }

  94.     public String getValoreParametro() {
  95.         return this.valoreParametro;
  96.     }

  97.     public void setValoreParametro(String valoreParametro) {
  98.         this.valoreParametro = valoreParametro;
  99.     }

  100.     public boolean isRecuperaSoloAllarmiInStatoDiversoDaOk() {
  101.         return this.recuperaSoloAllarmiInStatoDiversoDaOk;
  102.     }

  103.     public void setRecuperaSoloAllarmiInStatoDiversoDaOk(boolean recuperaSoloAllarmiInStatoDiversoDaOk) {
  104.         this.recuperaSoloAllarmiInStatoDiversoDaOk = recuperaSoloAllarmiInStatoDiversoDaOk;
  105.     }
  106.    
  107.     public Boolean getGlobale() {
  108.         return this.globale;
  109.     }
  110.     public void setGlobale(boolean globale) {
  111.         this.globale = globale;
  112.     }
  113.     public RuoloPorta getRuoloPorta() {
  114.         return this.ruoloPorta;
  115.     }
  116.     public void setRuoloPorta(RuoloPorta ruoloPorta) {
  117.         this.ruoloPorta = ruoloPorta;
  118.     }
  119.     public String getNomePorta() {
  120.         return this.nomePorta;
  121.     }
  122.     public void setNomePorta(String nomePorta) {
  123.         this.nomePorta = nomePorta;
  124.     }
  125.    
  126. }