AttivazionePolicy.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 java.io.Serializable;


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

  56. @XmlAccessorType(XmlAccessType.FIELD)
  57. @XmlType(name = "attivazione-policy",
  58.   propOrder = {
  59.     "idActivePolicy",
  60.     "alias",
  61.     "updateTime",
  62.     "posizione",
  63.     "continuaValutazione",
  64.     "idPolicy",
  65.     "enabled",
  66.     "warningOnly",
  67.     "ridefinisci",
  68.     "valore",
  69.     "valore2",
  70.     "filtro",
  71.     "groupBy"
  72.   }
  73. )

  74. @XmlRootElement(name = "attivazione-policy")

  75. public class AttivazionePolicy extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  76.   public AttivazionePolicy() {
  77.     super();
  78.   }

  79.   public IdActivePolicy getOldIdActivePolicy() {
  80.     return this.oldIdActivePolicy;
  81.   }

  82.   public void setOldIdActivePolicy(IdActivePolicy oldIdActivePolicy) {
  83.     this.oldIdActivePolicy=oldIdActivePolicy;
  84.   }

  85.   public java.lang.String getIdActivePolicy() {
  86.     return this.idActivePolicy;
  87.   }

  88.   public void setIdActivePolicy(java.lang.String idActivePolicy) {
  89.     this.idActivePolicy = idActivePolicy;
  90.   }

  91.   public java.lang.String getAlias() {
  92.     return this.alias;
  93.   }

  94.   public void setAlias(java.lang.String alias) {
  95.     this.alias = alias;
  96.   }

  97.   public java.util.Date getUpdateTime() {
  98.     return this.updateTime;
  99.   }

  100.   public void setUpdateTime(java.util.Date updateTime) {
  101.     this.updateTime = updateTime;
  102.   }

  103.   public int getPosizione() {
  104.     return this.posizione;
  105.   }

  106.   public void setPosizione(int posizione) {
  107.     this.posizione = posizione;
  108.   }

  109.   public boolean isContinuaValutazione() {
  110.     return this.continuaValutazione;
  111.   }

  112.   public boolean getContinuaValutazione() {
  113.     return this.continuaValutazione;
  114.   }

  115.   public void setContinuaValutazione(boolean continuaValutazione) {
  116.     this.continuaValutazione = continuaValutazione;
  117.   }

  118.   public java.lang.String getIdPolicy() {
  119.     return this.idPolicy;
  120.   }

  121.   public void setIdPolicy(java.lang.String idPolicy) {
  122.     this.idPolicy = idPolicy;
  123.   }

  124.   public boolean isEnabled() {
  125.     return this.enabled;
  126.   }

  127.   public boolean getEnabled() {
  128.     return this.enabled;
  129.   }

  130.   public void setEnabled(boolean enabled) {
  131.     this.enabled = enabled;
  132.   }

  133.   public boolean isWarningOnly() {
  134.     return this.warningOnly;
  135.   }

  136.   public boolean getWarningOnly() {
  137.     return this.warningOnly;
  138.   }

  139.   public void setWarningOnly(boolean warningOnly) {
  140.     this.warningOnly = warningOnly;
  141.   }

  142.   public boolean isRidefinisci() {
  143.     return this.ridefinisci;
  144.   }

  145.   public boolean getRidefinisci() {
  146.     return this.ridefinisci;
  147.   }

  148.   public void setRidefinisci(boolean ridefinisci) {
  149.     this.ridefinisci = ridefinisci;
  150.   }

  151.   public java.lang.Long getValore() {
  152.     return this.valore;
  153.   }

  154.   public void setValore(java.lang.Long valore) {
  155.     this.valore = valore;
  156.   }

  157.   public java.lang.Long getValore2() {
  158.     return this.valore2;
  159.   }

  160.   public void setValore2(java.lang.Long valore2) {
  161.     this.valore2 = valore2;
  162.   }

  163.   public AttivazionePolicyFiltro getFiltro() {
  164.     return this.filtro;
  165.   }

  166.   public void setFiltro(AttivazionePolicyFiltro filtro) {
  167.     this.filtro = filtro;
  168.   }

  169.   public AttivazionePolicyRaggruppamento getGroupBy() {
  170.     return this.groupBy;
  171.   }

  172.   public void setGroupBy(AttivazionePolicyRaggruppamento groupBy) {
  173.     this.groupBy = groupBy;
  174.   }

  175.   private static final long serialVersionUID = 1L;

  176.   private static org.openspcoop2.core.controllo_traffico.model.AttivazionePolicyModel modelStaticInstance = null;
  177.   private static synchronized void initModelStaticInstance(){
  178.       if(org.openspcoop2.core.controllo_traffico.AttivazionePolicy.modelStaticInstance==null){
  179.             org.openspcoop2.core.controllo_traffico.AttivazionePolicy.modelStaticInstance = new org.openspcoop2.core.controllo_traffico.model.AttivazionePolicyModel();
  180.       }
  181.   }
  182.   public static org.openspcoop2.core.controllo_traffico.model.AttivazionePolicyModel model(){
  183.       if(org.openspcoop2.core.controllo_traffico.AttivazionePolicy.modelStaticInstance==null){
  184.             initModelStaticInstance();
  185.       }
  186.       return org.openspcoop2.core.controllo_traffico.AttivazionePolicy.modelStaticInstance;
  187.   }


  188.   @javax.xml.bind.annotation.XmlTransient
  189.   protected IdActivePolicy oldIdActivePolicy;

  190.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  191.   @XmlElement(name="id-active-policy",required=true,nillable=false)
  192.   protected java.lang.String idActivePolicy;

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

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

  200.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  201.   @XmlElement(name="posizione",required=true,nillable=false)
  202.   protected int posizione;

  203.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  204.   @XmlElement(name="continua-valutazione",required=true,nillable=false,defaultValue="false")
  205.   protected boolean continuaValutazione = false;

  206.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  207.   @XmlElement(name="id-policy",required=true,nillable=false)
  208.   protected java.lang.String idPolicy;

  209.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  210.   @XmlElement(name="enabled",required=true,nillable=false)
  211.   protected boolean enabled;

  212.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  213.   @XmlElement(name="warning-only",required=true,nillable=false,defaultValue="false")
  214.   protected boolean warningOnly = false;

  215.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  216.   @XmlElement(name="ridefinisci",required=true,nillable=false)
  217.   protected boolean ridefinisci;

  218.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  219.   @XmlElement(name="valore",required=false,nillable=false)
  220.   protected java.lang.Long valore;

  221.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  222.   @XmlElement(name="valore2",required=false,nillable=false)
  223.   protected java.lang.Long valore2;

  224.   @XmlElement(name="filtro",required=true,nillable=false)
  225.   protected AttivazionePolicyFiltro filtro;

  226.   @XmlElement(name="group-by",required=true,nillable=false)
  227.   protected AttivazionePolicyRaggruppamento groupBy;

  228. }