OutRequestStatefulObject.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.pdd.core.transazioni;

  21. import java.util.ArrayList;
  22. import java.util.Date;
  23. import java.util.List;

  24. /**    
  25.  * OutRequestStatefulObject
  26.  *
  27.  * @author Poli Andrea (poli@link.it)
  28.  * @author $Author$
  29.  * @version $Rev$, $Date$
  30.  */
  31. public class OutRequestStatefulObject {

  32.     private Date dataUscitaRichiesta;
  33.     private String scenarioCooperazione;
  34.     private String tipoConnettore;
  35.     private String location;
  36.     private List<String> serviziApplicativiErogatore = new ArrayList<>();
  37.    
  38.     private List<String> eventiGestione = new ArrayList<>();
  39.    
  40.     public List<String> getServiziApplicativiErogatore() {
  41.         return this.serviziApplicativiErogatore;
  42.     }
  43.     public void addServizioApplicativoErogatore(String servizioApplicativoErogatore) {
  44.         this.serviziApplicativiErogatore.add(servizioApplicativoErogatore);
  45.     }
  46.     public Date getDataUscitaRichiesta() {
  47.         return this.dataUscitaRichiesta;
  48.     }
  49.     public void setDataUscitaRichiesta(Date dataUscitaRichiesta) {
  50.         this.dataUscitaRichiesta = dataUscitaRichiesta;
  51.     }
  52.     public String getScenarioCooperazione() {
  53.         return this.scenarioCooperazione;
  54.     }
  55.     public void setScenarioCooperazione(String scenarioCooperazione) {
  56.         this.scenarioCooperazione = scenarioCooperazione;
  57.     }
  58.     public String getTipoConnettore() {
  59.         return this.tipoConnettore;
  60.     }
  61.     public void setTipoConnettore(String tipoConnettore) {
  62.         this.tipoConnettore = tipoConnettore;
  63.     }
  64.     public String getLocation() {
  65.         return this.location;
  66.     }
  67.     public void setLocation(String location) {
  68.         this.location = location;
  69.     }
  70.     public List<String> getEventiGestione() {
  71.         return this.eventiGestione;
  72.     }
  73.     public void addEventoGestione(String evento) {
  74.         if(evento.contains(",")){
  75.             throw new RuntimeException("EventoGestione ["+evento+"] non deve contenere il carattere ','");
  76.         }
  77.         this.eventiGestione.add(evento);
  78.     }
  79.    
  80. }