IdActivePolicy.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.controllo_traffico;

  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 org.openspcoop2.core.controllo_traffico.constants.RuoloPolicy;
  27. import java.io.Serializable;


  28. /** <p>Java class for id-active-policy complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="id-active-policy"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="nome" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="posizione" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="continua-valutazione" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="id-policy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="update-time" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="alias" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  42.  *          &lt;element name="filtro-ruolo-porta" type="{http://www.openspcoop2.org/core/controllo_traffico}ruolo-policy" minOccurs="0" maxOccurs="1"/&gt;
  43.  *          &lt;element name="filtro-nome-porta" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  44.  *      &lt;/sequence&gt;
  45.  * &lt;/complexType&gt;
  46.  * </pre>
  47.  *
  48.  * @version $Rev$, $Date$
  49.  *
  50.  * @author Poli Andrea (poli@link.it)
  51.  * @author $Author$
  52.  * */

  53. @XmlAccessorType(XmlAccessType.FIELD)
  54. @XmlType(name = "id-active-policy",
  55.   propOrder = {
  56.     "nome",
  57.     "posizione",
  58.     "continuaValutazione",
  59.     "idPolicy",
  60.     "enabled",
  61.     "updateTime",
  62.     "alias",
  63.     "filtroRuoloPorta",
  64.     "filtroNomePorta"
  65.   }
  66. )

  67. @XmlRootElement(name = "id-active-policy")

  68. public class IdActivePolicy extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  69.   public IdActivePolicy() {
  70.     super();
  71.   }

  72.   public java.lang.String getNome() {
  73.     return this.nome;
  74.   }

  75.   public void setNome(java.lang.String nome) {
  76.     this.nome = nome;
  77.   }

  78.   public int getPosizione() {
  79.     return this.posizione;
  80.   }

  81.   public void setPosizione(int posizione) {
  82.     this.posizione = posizione;
  83.   }

  84.   public boolean isContinuaValutazione() {
  85.     return this.continuaValutazione;
  86.   }

  87.   public boolean getContinuaValutazione() {
  88.     return this.continuaValutazione;
  89.   }

  90.   public void setContinuaValutazione(boolean continuaValutazione) {
  91.     this.continuaValutazione = continuaValutazione;
  92.   }

  93.   public java.lang.String getIdPolicy() {
  94.     return this.idPolicy;
  95.   }

  96.   public void setIdPolicy(java.lang.String idPolicy) {
  97.     this.idPolicy = idPolicy;
  98.   }

  99.   public boolean isEnabled() {
  100.     return this.enabled;
  101.   }

  102.   public boolean getEnabled() {
  103.     return this.enabled;
  104.   }

  105.   public void setEnabled(boolean enabled) {
  106.     this.enabled = enabled;
  107.   }

  108.   public java.util.Date getUpdateTime() {
  109.     return this.updateTime;
  110.   }

  111.   public void setUpdateTime(java.util.Date updateTime) {
  112.     this.updateTime = updateTime;
  113.   }

  114.   public java.lang.String getAlias() {
  115.     return this.alias;
  116.   }

  117.   public void setAlias(java.lang.String alias) {
  118.     this.alias = alias;
  119.   }

  120.   public void setFiltroRuoloPortaRawEnumValue(String value) {
  121.     this.filtroRuoloPorta = (RuoloPolicy) RuoloPolicy.toEnumConstantFromString(value);
  122.   }

  123.   public String getFiltroRuoloPortaRawEnumValue() {
  124.     if(this.filtroRuoloPorta == null){
  125.         return null;
  126.     }else{
  127.         return this.filtroRuoloPorta.toString();
  128.     }
  129.   }

  130.   public org.openspcoop2.core.controllo_traffico.constants.RuoloPolicy getFiltroRuoloPorta() {
  131.     return this.filtroRuoloPorta;
  132.   }

  133.   public void setFiltroRuoloPorta(org.openspcoop2.core.controllo_traffico.constants.RuoloPolicy filtroRuoloPorta) {
  134.     this.filtroRuoloPorta = filtroRuoloPorta;
  135.   }

  136.   public java.lang.String getFiltroNomePorta() {
  137.     return this.filtroNomePorta;
  138.   }

  139.   public void setFiltroNomePorta(java.lang.String filtroNomePorta) {
  140.     this.filtroNomePorta = filtroNomePorta;
  141.   }

  142.   private static final long serialVersionUID = 1L;



  143.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  144.   @XmlElement(name="nome",required=true,nillable=false)
  145.   protected java.lang.String nome;

  146.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  147.   @XmlElement(name="posizione",required=false,nillable=false)
  148.   protected int posizione;

  149.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  150.   @XmlElement(name="continua-valutazione",required=false,nillable=false)
  151.   protected boolean continuaValutazione;

  152.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  153.   @XmlElement(name="id-policy",required=false,nillable=false)
  154.   protected java.lang.String idPolicy;

  155.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  156.   @XmlElement(name="enabled",required=false,nillable=false)
  157.   protected boolean enabled;

  158.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  159.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  160.   @XmlElement(name="update-time",required=false,nillable=false,type=java.lang.String.class)
  161.   protected java.util.Date updateTime;

  162.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  163.   @XmlElement(name="alias",required=false,nillable=false)
  164.   protected java.lang.String alias;

  165.   @javax.xml.bind.annotation.XmlTransient
  166.   protected java.lang.String filtroRuoloPortaRawEnumValue;

  167.   @XmlElement(name="filtro-ruolo-porta",required=false,nillable=false)
  168.   protected RuoloPolicy filtroRuoloPorta;

  169.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  170.   @XmlElement(name="filtro-nome-porta",required=false,nillable=false)
  171.   protected java.lang.String filtroNomePorta;

  172. }