AccessoConfigurazionePdD.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.config;

  21. import java.io.Serializable;

  22. /**
  23.  * Classe utilizzata per rappresentare le informazioni utilizzate dalla porta di dominio per accedere alla configurazione..
  24.  *
  25.  * @author Poli Andrea (apoli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */
  29. public class AccessoConfigurazionePdD extends org.openspcoop2.utils.beans.BaseBean  implements Serializable , Cloneable{

  30.     private static final long serialVersionUID = 1L;
  31.    
  32.     // Configurazione
  33.     /** Tipo di Configurazione */
  34.     private String tipo;
  35.     /** Location della Configurazione */
  36.     private String location;
  37.     /** Eventuale tipo di database */
  38.     private String tipoDatabase;
  39.     /** Contesto della Configurazione */
  40.     private java.util.Properties context;
  41.     /** condivisione database registro e pdd */
  42.     private boolean condivisioneDatabasePddRegistro;



  43.     /** ---------------- SETTER ---------------------- */

  44.     /**
  45.      * Tipo di configurazione
  46.      *
  47.      * @param tipo
  48.      */
  49.     public void setTipo(String tipo) {
  50.         this.tipo = tipo;
  51.     }
  52.     /**
  53.      * Location della configurazione
  54.      *
  55.      * @param location
  56.      */
  57.     public void setLocation(String location) {
  58.         this.location = location;
  59.     }
  60.     /**
  61.      * Contesto per la configurazione
  62.      *
  63.      * @param context
  64.      */
  65.     public void setContext(java.util.Properties context) {
  66.         this.context = context;
  67.     }

  68.     public void setTipoDatabase(String tipoDatabase) {
  69.         this.tipoDatabase = tipoDatabase;
  70.     }

  71.     public void setCondivisioneDatabasePddRegistro(
  72.             boolean condivisioneDatabasePddRegistro) {
  73.         this.condivisioneDatabasePddRegistro = condivisioneDatabasePddRegistro;
  74.     }







  75.     /** ---------------- GETTER ---------------------- */

  76.     /**
  77.      * Tipo di Configurazione
  78.      *
  79.      * @return Tipo di Configurazione
  80.      */
  81.     public String getTipo() {
  82.         return this.tipo;
  83.     }
  84.     /**
  85.      * Location della Configurazione
  86.      *
  87.      * @return Location della Configurazione
  88.      */
  89.     public String getLocation() {
  90.         return this.location;
  91.     }
  92.     /**
  93.      * Contesto della Configurazione
  94.      *
  95.      * @return Contesto della Configurazione
  96.      */
  97.     public java.util.Properties getContext() {
  98.         return this.context;
  99.     }

  100.     public String getTipoDatabase() {
  101.         return this.tipoDatabase;
  102.     }
  103.    
  104.     public boolean isCondivisioneDatabasePddRegistro() {
  105.         return this.condivisioneDatabasePddRegistro;
  106.     }

  107. }