PdDControlStation.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.ctrlstat.dao;

  21. import java.io.Serializable;

  22. import org.openspcoop2.core.registry.PortaDominio;

  23. /**
  24.  * PdDControlStation
  25.  *
  26.  * @author Andrea Poli (apoli@link.it)
  27.  * @author Stefano Corallo (corallo@link.it)
  28.  * @author Sandra Giangrandi (sandra@link.it)
  29.  * @author $Author$
  30.  * @version $Rev$, $Date$
  31.  *
  32.  */
  33. public class PdDControlStation extends PortaDominio implements Serializable {

  34.     /**
  35.      *
  36.      */
  37.     private static final long serialVersionUID = 1L;

  38.     private String ip;
  39.     private int porta;
  40.     private String protocollo;
  41.    
  42.     private String ipGestione;
  43.     private int portaGestione;
  44.     private String protocolloGestione;
  45.    
  46.     private String tipo;
  47.     private String password;

  48.     public String getIp() {
  49.         return this.ip;
  50.     }

  51.     public void setIp(String ip) {
  52.         this.ip = ip;
  53.     }

  54.     public int getPorta() {
  55.         return this.porta;
  56.     }

  57.     public void setPorta(int porta) {
  58.         this.porta = porta;
  59.     }

  60.     public String getIpGestione() {
  61.         return this.ipGestione;
  62.     }

  63.     public void setIpGestione(String ipGestione) {
  64.         this.ipGestione = ipGestione;
  65.     }

  66.     public int getPortaGestione() {
  67.         return this.portaGestione;
  68.     }

  69.     public void setPortaGestione(int portaGestione) {
  70.         this.portaGestione = portaGestione;
  71.     }

  72.     public String getTipo() {
  73.         return this.tipo;
  74.     }

  75.     public void setTipo(String tipo) {
  76.         this.tipo = tipo;
  77.     }

  78.     public String getPassword() {
  79.         return this.password;
  80.     }

  81.     public void setPassword(String password) {
  82.         this.password = password;
  83.     }

  84.     public String getProtocollo() {
  85.         return this.protocollo;
  86.     }

  87.     public void setProtocollo(String protocollo) {
  88.         this.protocollo = protocollo;
  89.     }

  90.     @Override
  91.     public boolean equals(Object object) {
  92.         return this.equals(object, true);
  93.     }
  94.    
  95.     @Override
  96.     public int hashCode(){
  97.         return this.getNome()!=null ? this.getNome().hashCode() : -1;
  98.     }

  99.     public String getProtocolloGestione() {
  100.         return this.protocolloGestione;
  101.     }

  102.     public void setProtocolloGestione(String protocolloGestione) {
  103.         this.protocolloGestione = protocolloGestione;
  104.     }

  105. }