MessageSecurityFlow.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.XmlAttribute;
  24. import javax.xml.bind.annotation.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import org.openspcoop2.core.config.constants.StatoFunzionalita;
  28. import java.io.Serializable;
  29. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for message-security-flow complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="message-security-flow"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="parameter" type="{http://www.openspcoop2.org/core/config}message-security-flow-parameter" minOccurs="1" maxOccurs="unbounded"/&gt;
  39.  *      &lt;/sequence&gt;
  40.  *      &lt;attribute name="apply-to-mtom" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional"/&gt;
  41.  *      &lt;attribute name="mode" type="{http://www.w3.org/2001/XMLSchema}string" use="optional" default="default"/&gt;
  42.  * &lt;/complexType&gt;
  43.  * </pre>
  44.  *
  45.  * @version $Rev$, $Date$
  46.  *
  47.  * @author Poli Andrea (poli@link.it)
  48.  * @author $Author$
  49.  * */

  50. @XmlAccessorType(XmlAccessType.FIELD)
  51. @XmlType(name = "message-security-flow",
  52.   propOrder = {
  53.     "parameter"
  54.   }
  55. )

  56. @XmlRootElement(name = "message-security-flow")

  57. public class MessageSecurityFlow extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  58.   public MessageSecurityFlow() {
  59.     super();
  60.   }

  61.   public void addParameter(MessageSecurityFlowParameter parameter) {
  62.     this.parameter.add(parameter);
  63.   }

  64.   public MessageSecurityFlowParameter getParameter(int index) {
  65.     return this.parameter.get( index );
  66.   }

  67.   public MessageSecurityFlowParameter removeParameter(int index) {
  68.     return this.parameter.remove( index );
  69.   }

  70.   public List<MessageSecurityFlowParameter> getParameterList() {
  71.     return this.parameter;
  72.   }

  73.   public void setParameterList(List<MessageSecurityFlowParameter> parameter) {
  74.     this.parameter=parameter;
  75.   }

  76.   public int sizeParameterList() {
  77.     return this.parameter.size();
  78.   }

  79.   public void setApplyToMtomRawEnumValue(String value) {
  80.     this.applyToMtom = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  81.   }

  82.   public String getApplyToMtomRawEnumValue() {
  83.     if(this.applyToMtom == null){
  84.         return null;
  85.     }else{
  86.         return this.applyToMtom.toString();
  87.     }
  88.   }

  89.   public org.openspcoop2.core.config.constants.StatoFunzionalita getApplyToMtom() {
  90.     return this.applyToMtom;
  91.   }

  92.   public void setApplyToMtom(org.openspcoop2.core.config.constants.StatoFunzionalita applyToMtom) {
  93.     this.applyToMtom = applyToMtom;
  94.   }

  95.   public java.lang.String getMode() {
  96.     return this.mode;
  97.   }

  98.   public void setMode(java.lang.String mode) {
  99.     this.mode = mode;
  100.   }

  101.   private static final long serialVersionUID = 1L;



  102.   @XmlElement(name="parameter",required=true,nillable=false)
  103.   private List<MessageSecurityFlowParameter> parameter = new ArrayList<>();

  104.   /**
  105.    * Use method getParameterList
  106.    * @return List&lt;MessageSecurityFlowParameter&gt;
  107.   */
  108.   public List<MessageSecurityFlowParameter> getParameter() {
  109.     return this.getParameterList();
  110.   }

  111.   /**
  112.    * Use method setParameterList
  113.    * @param parameter List&lt;MessageSecurityFlowParameter&gt;
  114.   */
  115.   public void setParameter(List<MessageSecurityFlowParameter> parameter) {
  116.     this.setParameterList(parameter);
  117.   }

  118.   /**
  119.    * Use method sizeParameterList
  120.    * @return lunghezza della lista
  121.   */
  122.   public int sizeParameter() {
  123.     return this.sizeParameterList();
  124.   }

  125.   @javax.xml.bind.annotation.XmlTransient
  126.   protected java.lang.String applyToMtomRawEnumValue;

  127.   @XmlAttribute(name="apply-to-mtom",required=false)
  128.   protected StatoFunzionalita applyToMtom;

  129.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  130.   @XmlAttribute(name="mode",required=false)
  131.   protected java.lang.String mode = "default";

  132. }