Configurazione.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.web.lib.audit.dao;

  21. import java.io.Serializable;
  22. import java.util.ArrayList;

  23. import org.openspcoop2.web.lib.audit.costanti.Costanti;

  24. /**
  25.  * Dao contenente i valori della Configurazione dell'audit
  26.  *
  27.  *
  28.  * @author Andrea Poli (apoli@link.it)
  29.  * @author Stefano Corallo (corallo@link.it)
  30.  * @author Sandra Giangrandi (sandra@link.it)
  31.  * @author $Author$
  32.  * @version $Rev$, $Date$
  33.  *
  34.  */
  35. public class Configurazione implements Serializable {

  36.     /**
  37.      *
  38.      */
  39.     private static final long serialVersionUID = 5876374583726748177L;
  40.    
  41.     private boolean auditEngineEnabled = false;
  42.     private boolean auditEnabled = false;
  43.     private boolean dumpEnabled = false;
  44.     private String dumpFormat = Costanti.DUMP_JSON_FORMAT;
  45.     private ArrayList<Filtro> filtri = new ArrayList<Filtro>();
  46.     private ArrayList<Appender> appender = new ArrayList<Appender>();
  47.    
  48.     public boolean isAuditEngineEnabled() {
  49.         return this.auditEngineEnabled;
  50.     }
  51.     public void setAuditEngineEnabled(boolean auditEngineEnabled) {
  52.         this.auditEngineEnabled = auditEngineEnabled;
  53.     }
  54.     public boolean isAuditEnabled() {
  55.         return this.auditEnabled;
  56.     }
  57.     public void setAuditEnabled(boolean auditEnabled) {
  58.         this.auditEnabled = auditEnabled;
  59.     }
  60.     public boolean isDumpEnabled() {
  61.         return this.dumpEnabled;
  62.     }
  63.     public void setDumpEnabled(boolean dumpEnabled) {
  64.         this.dumpEnabled = dumpEnabled;
  65.     }
  66.     public String getDumpFormat() {
  67.         return this.dumpFormat;
  68.     }
  69.     public void setDumpFormat(String dumpFormat) {
  70.         this.dumpFormat = dumpFormat;
  71.     }
  72.    
  73.     public ArrayList<Filtro> getFiltri() {
  74.         return this.filtri;
  75.     }
  76.     public void setFiltri(ArrayList<Filtro> filtri) {
  77.         this.filtri = filtri;
  78.     }
  79.     public int sizeFiltri(){
  80.         return this.filtri.size();
  81.     }
  82.     public Filtro getFiltro(int index){
  83.         return this.filtri.get(index);
  84.     }
  85.     public Filtro removeFiltro(int index){
  86.         return this.filtri.remove(index);
  87.     }
  88.     public void addFiltro(Filtro filtro){
  89.         this.filtri.add(filtro);
  90.     }
  91.    
  92.     public ArrayList<Appender> getAppender() {
  93.         return this.appender;
  94.     }
  95.     public void setAppender(ArrayList<Appender> appender) {
  96.         this.appender = appender;
  97.     }
  98.     public int sizeAppender(){
  99.         return this.appender.size();
  100.     }
  101.     public Appender getAppender(int index){
  102.         return this.appender.get(index);
  103.     }
  104.     public Appender removeAppender(int index){
  105.         return this.appender.remove(index);
  106.     }
  107.     public void addAppender(Appender appender){
  108.         this.appender.add(appender);
  109.     }
  110. }