ConfigurazioneServiceHandlers.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 javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;
  27. import java.util.ArrayList;
  28. import java.util.List;


  29. /** <p>Java class for configurazione-service-handlers complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="configurazione-service-handlers"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="init" type="{http://www.openspcoop2.org/core/config}configurazione-handler" minOccurs="0" maxOccurs="unbounded"/&gt;
  37.  *          &lt;element name="exit" type="{http://www.openspcoop2.org/core/config}configurazione-handler" minOccurs="0" maxOccurs="unbounded"/&gt;
  38.  *          &lt;element name="integrationManagerRequest" type="{http://www.openspcoop2.org/core/config}configurazione-handler" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="integrationManagerResponse" type="{http://www.openspcoop2.org/core/config}configurazione-handler" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  * &lt;/complexType&gt;
  42.  * </pre>
  43.  *
  44.  * @version $Rev$, $Date$
  45.  *
  46.  * @author Poli Andrea (poli@link.it)
  47.  * @author $Author$
  48.  * */

  49. @XmlAccessorType(XmlAccessType.FIELD)
  50. @XmlType(name = "configurazione-service-handlers",
  51.   propOrder = {
  52.     "init",
  53.     "exit",
  54.     "integrationManagerRequest",
  55.     "integrationManagerResponse"
  56.   }
  57. )

  58. @XmlRootElement(name = "configurazione-service-handlers")

  59. public class ConfigurazioneServiceHandlers extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  60.   public ConfigurazioneServiceHandlers() {
  61.     super();
  62.   }

  63.   public void addInit(ConfigurazioneHandler init) {
  64.     this.init.add(init);
  65.   }

  66.   public ConfigurazioneHandler getInit(int index) {
  67.     return this.init.get( index );
  68.   }

  69.   public ConfigurazioneHandler removeInit(int index) {
  70.     return this.init.remove( index );
  71.   }

  72.   public List<ConfigurazioneHandler> getInitList() {
  73.     return this.init;
  74.   }

  75.   public void setInitList(List<ConfigurazioneHandler> init) {
  76.     this.init=init;
  77.   }

  78.   public int sizeInitList() {
  79.     return this.init.size();
  80.   }

  81.   public void addExit(ConfigurazioneHandler exit) {
  82.     this.exit.add(exit);
  83.   }

  84.   public ConfigurazioneHandler getExit(int index) {
  85.     return this.exit.get( index );
  86.   }

  87.   public ConfigurazioneHandler removeExit(int index) {
  88.     return this.exit.remove( index );
  89.   }

  90.   public List<ConfigurazioneHandler> getExitList() {
  91.     return this.exit;
  92.   }

  93.   public void setExitList(List<ConfigurazioneHandler> exit) {
  94.     this.exit=exit;
  95.   }

  96.   public int sizeExitList() {
  97.     return this.exit.size();
  98.   }

  99.   public void addIntegrationManagerRequest(ConfigurazioneHandler integrationManagerRequest) {
  100.     this.integrationManagerRequest.add(integrationManagerRequest);
  101.   }

  102.   public ConfigurazioneHandler getIntegrationManagerRequest(int index) {
  103.     return this.integrationManagerRequest.get( index );
  104.   }

  105.   public ConfigurazioneHandler removeIntegrationManagerRequest(int index) {
  106.     return this.integrationManagerRequest.remove( index );
  107.   }

  108.   public List<ConfigurazioneHandler> getIntegrationManagerRequestList() {
  109.     return this.integrationManagerRequest;
  110.   }

  111.   public void setIntegrationManagerRequestList(List<ConfigurazioneHandler> integrationManagerRequest) {
  112.     this.integrationManagerRequest=integrationManagerRequest;
  113.   }

  114.   public int sizeIntegrationManagerRequestList() {
  115.     return this.integrationManagerRequest.size();
  116.   }

  117.   public void addIntegrationManagerResponse(ConfigurazioneHandler integrationManagerResponse) {
  118.     this.integrationManagerResponse.add(integrationManagerResponse);
  119.   }

  120.   public ConfigurazioneHandler getIntegrationManagerResponse(int index) {
  121.     return this.integrationManagerResponse.get( index );
  122.   }

  123.   public ConfigurazioneHandler removeIntegrationManagerResponse(int index) {
  124.     return this.integrationManagerResponse.remove( index );
  125.   }

  126.   public List<ConfigurazioneHandler> getIntegrationManagerResponseList() {
  127.     return this.integrationManagerResponse;
  128.   }

  129.   public void setIntegrationManagerResponseList(List<ConfigurazioneHandler> integrationManagerResponse) {
  130.     this.integrationManagerResponse=integrationManagerResponse;
  131.   }

  132.   public int sizeIntegrationManagerResponseList() {
  133.     return this.integrationManagerResponse.size();
  134.   }

  135.   private static final long serialVersionUID = 1L;



  136.   @XmlElement(name="init",required=true,nillable=false)
  137.   private List<ConfigurazioneHandler> init = new ArrayList<>();

  138.   /**
  139.    * Use method getInitList
  140.    * @return List&lt;ConfigurazioneHandler&gt;
  141.   */
  142.   public List<ConfigurazioneHandler> getInit() {
  143.     return this.getInitList();
  144.   }

  145.   /**
  146.    * Use method setInitList
  147.    * @param init List&lt;ConfigurazioneHandler&gt;
  148.   */
  149.   public void setInit(List<ConfigurazioneHandler> init) {
  150.     this.setInitList(init);
  151.   }

  152.   /**
  153.    * Use method sizeInitList
  154.    * @return lunghezza della lista
  155.   */
  156.   public int sizeInit() {
  157.     return this.sizeInitList();
  158.   }

  159.   @XmlElement(name="exit",required=true,nillable=false)
  160.   private List<ConfigurazioneHandler> exit = new ArrayList<>();

  161.   /**
  162.    * Use method getExitList
  163.    * @return List&lt;ConfigurazioneHandler&gt;
  164.   */
  165.   public List<ConfigurazioneHandler> getExit() {
  166.     return this.getExitList();
  167.   }

  168.   /**
  169.    * Use method setExitList
  170.    * @param exit List&lt;ConfigurazioneHandler&gt;
  171.   */
  172.   public void setExit(List<ConfigurazioneHandler> exit) {
  173.     this.setExitList(exit);
  174.   }

  175.   /**
  176.    * Use method sizeExitList
  177.    * @return lunghezza della lista
  178.   */
  179.   public int sizeExit() {
  180.     return this.sizeExitList();
  181.   }

  182.   @XmlElement(name="integrationManagerRequest",required=true,nillable=false)
  183.   private List<ConfigurazioneHandler> integrationManagerRequest = new ArrayList<>();

  184.   /**
  185.    * Use method getIntegrationManagerRequestList
  186.    * @return List&lt;ConfigurazioneHandler&gt;
  187.   */
  188.   public List<ConfigurazioneHandler> getIntegrationManagerRequest() {
  189.     return this.getIntegrationManagerRequestList();
  190.   }

  191.   /**
  192.    * Use method setIntegrationManagerRequestList
  193.    * @param integrationManagerRequest List&lt;ConfigurazioneHandler&gt;
  194.   */
  195.   public void setIntegrationManagerRequest(List<ConfigurazioneHandler> integrationManagerRequest) {
  196.     this.setIntegrationManagerRequestList(integrationManagerRequest);
  197.   }

  198.   /**
  199.    * Use method sizeIntegrationManagerRequestList
  200.    * @return lunghezza della lista
  201.   */
  202.   public int sizeIntegrationManagerRequest() {
  203.     return this.sizeIntegrationManagerRequestList();
  204.   }

  205.   @XmlElement(name="integrationManagerResponse",required=true,nillable=false)
  206.   private List<ConfigurazioneHandler> integrationManagerResponse = new ArrayList<>();

  207.   /**
  208.    * Use method getIntegrationManagerResponseList
  209.    * @return List&lt;ConfigurazioneHandler&gt;
  210.   */
  211.   public List<ConfigurazioneHandler> getIntegrationManagerResponse() {
  212.     return this.getIntegrationManagerResponseList();
  213.   }

  214.   /**
  215.    * Use method setIntegrationManagerResponseList
  216.    * @param integrationManagerResponse List&lt;ConfigurazioneHandler&gt;
  217.   */
  218.   public void setIntegrationManagerResponse(List<ConfigurazioneHandler> integrationManagerResponse) {
  219.     this.setIntegrationManagerResponseList(integrationManagerResponse);
  220.   }

  221.   /**
  222.    * Use method sizeIntegrationManagerResponseList
  223.    * @return lunghezza della lista
  224.   */
  225.   public int sizeIntegrationManagerResponse() {
  226.     return this.sizeIntegrationManagerResponseList();
  227.   }

  228. }