Appender.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. /**
  24.  * Configurazione dell'appender
  25.  *
  26.  *
  27.  * @author Andrea Poli (apoli@link.it)
  28.  * @author Stefano Corallo (corallo@link.it)
  29.  * @author Sandra Giangrandi (sandra@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  *
  33.  */
  34. public class Appender implements Serializable {

  35.     /**
  36.      *
  37.      */
  38.     private static final long serialVersionUID = -263168495974586424L;
  39.    
  40.     private String nome;
  41.     private String className;
  42.     private ArrayList<AppenderProperty> properties = new ArrayList<AppenderProperty>();
  43.     private long id;
  44.    
  45.     public String getNome() {
  46.         return this.nome;
  47.     }
  48.     public void setNome(String nome) {
  49.         this.nome = nome;
  50.     }
  51.     public String getClassName() {
  52.         return this.className;
  53.     }
  54.     public void setClassName(String className) {
  55.         this.className = className;
  56.     }
  57.    
  58.     public ArrayList<AppenderProperty> getProperties() {
  59.         return this.properties;
  60.     }
  61.     public void setProperties(ArrayList<AppenderProperty> properties) {
  62.         this.properties = properties;
  63.     }
  64.     public int sizeProperties(){
  65.         return this.properties.size();
  66.     }
  67.     public AppenderProperty getProperty(int index){
  68.         return this.properties.get(index);
  69.     }
  70.     public AppenderProperty removeProperty(int index){
  71.         return this.properties.remove(index);
  72.     }
  73.     public void addProperty(AppenderProperty property){
  74.         this.properties.add(property);
  75.     }
  76.    
  77.    
  78.     public long getId() {
  79.         return this.id;
  80.     }
  81.     public void setId(long id) {
  82.         this.id = id;
  83.     }

  84.    
  85. }