AllarmeHistory.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.allarmi;

  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 allarme-history complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="allarme-history"&gt;
  33.  *      &lt;sequence&gt;
  34.  *          &lt;element name="id-allarme" type="{http://www.openspcoop2.org/core/allarmi}id-allarme" minOccurs="1" maxOccurs="1"/&gt;
  35.  *          &lt;element name="enabled" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="stato" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="dettaglio-stato" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="acknowledged" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="timestamp-update" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="utente" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  41.  *      &lt;/sequence&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 = "allarme-history",
  52.   propOrder = {
  53.     "idAllarme",
  54.     "enabled",
  55.     "stato",
  56.     "dettaglioStato",
  57.     "acknowledged",
  58.     "timestampUpdate",
  59.     "utente"
  60.   }
  61. )

  62. @XmlRootElement(name = "allarme-history")

  63. public class AllarmeHistory extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  64.   public AllarmeHistory() {
  65.     super();
  66.   }

  67.   public IdAllarme getIdAllarme() {
  68.     return this.idAllarme;
  69.   }

  70.   public void setIdAllarme(IdAllarme idAllarme) {
  71.     this.idAllarme = idAllarme;
  72.   }

  73.   public java.lang.Integer getEnabled() {
  74.     return this.enabled;
  75.   }

  76.   public void setEnabled(java.lang.Integer enabled) {
  77.     this.enabled = enabled;
  78.   }

  79.   public java.lang.Integer getStato() {
  80.     return this.stato;
  81.   }

  82.   public void setStato(java.lang.Integer stato) {
  83.     this.stato = stato;
  84.   }

  85.   public java.lang.String getDettaglioStato() {
  86.     return this.dettaglioStato;
  87.   }

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

  91.   public java.lang.Integer getAcknowledged() {
  92.     return this.acknowledged;
  93.   }

  94.   public void setAcknowledged(java.lang.Integer acknowledged) {
  95.     this.acknowledged = acknowledged;
  96.   }

  97.   public java.util.Date getTimestampUpdate() {
  98.     return this.timestampUpdate;
  99.   }

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

  103.   public java.lang.String getUtente() {
  104.     return this.utente;
  105.   }

  106.   public void setUtente(java.lang.String utente) {
  107.     this.utente = utente;
  108.   }

  109.   private static final long serialVersionUID = 1L;

  110.   private static org.openspcoop2.core.allarmi.model.AllarmeHistoryModel modelStaticInstance = null;
  111.   private static synchronized void initModelStaticInstance(){
  112.       if(org.openspcoop2.core.allarmi.AllarmeHistory.modelStaticInstance==null){
  113.             org.openspcoop2.core.allarmi.AllarmeHistory.modelStaticInstance = new org.openspcoop2.core.allarmi.model.AllarmeHistoryModel();
  114.       }
  115.   }
  116.   public static org.openspcoop2.core.allarmi.model.AllarmeHistoryModel model(){
  117.       if(org.openspcoop2.core.allarmi.AllarmeHistory.modelStaticInstance==null){
  118.             initModelStaticInstance();
  119.       }
  120.       return org.openspcoop2.core.allarmi.AllarmeHistory.modelStaticInstance;
  121.   }


  122.   @XmlElement(name="id-allarme",required=true,nillable=false)
  123.   protected IdAllarme idAllarme;

  124.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  125.   @XmlElement(name="enabled",required=true,nillable=false)
  126.   protected java.lang.Integer enabled;

  127.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  128.   @XmlElement(name="stato",required=true,nillable=false)
  129.   protected java.lang.Integer stato;

  130.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  131.   @XmlElement(name="dettaglio-stato",required=false,nillable=false)
  132.   protected java.lang.String dettaglioStato;

  133.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  134.   @XmlElement(name="acknowledged",required=true,nillable=false)
  135.   protected java.lang.Integer acknowledged;

  136.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  137.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  138.   @XmlElement(name="timestamp-update",required=true,nillable=false,type=java.lang.String.class)
  139.   protected java.util.Date timestampUpdate;

  140.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  141.   @XmlElement(name="utente",required=false,nillable=false)
  142.   protected java.lang.String utente;

  143. }