AllarmeModel.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.model;

  21. import org.openspcoop2.core.allarmi.Allarme;

  22. import org.openspcoop2.generic_project.beans.AbstractModel;
  23. import org.openspcoop2.generic_project.beans.IField;
  24. import org.openspcoop2.generic_project.beans.Field;
  25. import org.openspcoop2.generic_project.beans.ComplexField;


  26. /**    
  27.  * Model Allarme
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class AllarmeModel extends AbstractModel<Allarme> {

  34.     public AllarmeModel(){
  35.    
  36.         super();
  37.    
  38.         this.NOME = new Field("nome",java.lang.String.class,"allarme",Allarme.class);
  39.         this.ALIAS = new Field("alias",java.lang.String.class,"allarme",Allarme.class);
  40.         this.DESCRIZIONE = new Field("descrizione",java.lang.String.class,"allarme",Allarme.class);
  41.         this.TIPO = new Field("tipo",java.lang.String.class,"allarme",Allarme.class);
  42.         this.TIPO_ALLARME = new Field("tipo-allarme",java.lang.String.class,"allarme",Allarme.class);
  43.         this.MAIL = new org.openspcoop2.core.allarmi.model.AllarmeMailModel(new Field("mail",org.openspcoop2.core.allarmi.AllarmeMail.class,"allarme",Allarme.class));
  44.         this.SCRIPT = new org.openspcoop2.core.allarmi.model.AllarmeScriptModel(new Field("script",org.openspcoop2.core.allarmi.AllarmeScript.class,"allarme",Allarme.class));
  45.         this.STATO_PRECEDENTE = new Field("stato-precedente",java.lang.Integer.class,"allarme",Allarme.class);
  46.         this.STATO = new Field("stato",java.lang.Integer.class,"allarme",Allarme.class);
  47.         this.DETTAGLIO_STATO = new Field("dettaglio-stato",java.lang.String.class,"allarme",Allarme.class);
  48.         this.LASTTIMESTAMP_CREATE = new Field("lasttimestamp-create",java.util.Date.class,"allarme",Allarme.class);
  49.         this.LASTTIMESTAMP_UPDATE = new Field("lasttimestamp-update",java.util.Date.class,"allarme",Allarme.class);
  50.         this.ENABLED = new Field("enabled",java.lang.Integer.class,"allarme",Allarme.class);
  51.         this.ACKNOWLEDGED = new Field("acknowledged",java.lang.Integer.class,"allarme",Allarme.class);
  52.         this.DETTAGLIO_ACKNOWLEDGED = new Field("dettaglio-acknowledged",java.lang.String.class,"allarme",Allarme.class);
  53.         this.TIPO_PERIODO = new Field("tipo-periodo",java.lang.String.class,"allarme",Allarme.class);
  54.         this.PERIODO = new Field("periodo",java.lang.Integer.class,"allarme",Allarme.class);
  55.         this.FILTRO = new org.openspcoop2.core.allarmi.model.AllarmeFiltroModel(new Field("filtro",org.openspcoop2.core.allarmi.AllarmeFiltro.class,"allarme",Allarme.class));
  56.         this.GROUP_BY = new org.openspcoop2.core.allarmi.model.AllarmeRaggruppamentoModel(new Field("group-by",org.openspcoop2.core.allarmi.AllarmeRaggruppamento.class,"allarme",Allarme.class));
  57.         this.ALLARME_PARAMETRO = new org.openspcoop2.core.allarmi.model.AllarmeParametroModel(new Field("allarme-parametro",org.openspcoop2.core.allarmi.AllarmeParametro.class,"allarme",Allarme.class));
  58.    
  59.     }
  60.    
  61.     public AllarmeModel(IField father){
  62.    
  63.         super(father);
  64.    
  65.         this.NOME = new ComplexField(father,"nome",java.lang.String.class,"allarme",Allarme.class);
  66.         this.ALIAS = new ComplexField(father,"alias",java.lang.String.class,"allarme",Allarme.class);
  67.         this.DESCRIZIONE = new ComplexField(father,"descrizione",java.lang.String.class,"allarme",Allarme.class);
  68.         this.TIPO = new ComplexField(father,"tipo",java.lang.String.class,"allarme",Allarme.class);
  69.         this.TIPO_ALLARME = new ComplexField(father,"tipo-allarme",java.lang.String.class,"allarme",Allarme.class);
  70.         this.MAIL = new org.openspcoop2.core.allarmi.model.AllarmeMailModel(new ComplexField(father,"mail",org.openspcoop2.core.allarmi.AllarmeMail.class,"allarme",Allarme.class));
  71.         this.SCRIPT = new org.openspcoop2.core.allarmi.model.AllarmeScriptModel(new ComplexField(father,"script",org.openspcoop2.core.allarmi.AllarmeScript.class,"allarme",Allarme.class));
  72.         this.STATO_PRECEDENTE = new ComplexField(father,"stato-precedente",java.lang.Integer.class,"allarme",Allarme.class);
  73.         this.STATO = new ComplexField(father,"stato",java.lang.Integer.class,"allarme",Allarme.class);
  74.         this.DETTAGLIO_STATO = new ComplexField(father,"dettaglio-stato",java.lang.String.class,"allarme",Allarme.class);
  75.         this.LASTTIMESTAMP_CREATE = new ComplexField(father,"lasttimestamp-create",java.util.Date.class,"allarme",Allarme.class);
  76.         this.LASTTIMESTAMP_UPDATE = new ComplexField(father,"lasttimestamp-update",java.util.Date.class,"allarme",Allarme.class);
  77.         this.ENABLED = new ComplexField(father,"enabled",java.lang.Integer.class,"allarme",Allarme.class);
  78.         this.ACKNOWLEDGED = new ComplexField(father,"acknowledged",java.lang.Integer.class,"allarme",Allarme.class);
  79.         this.DETTAGLIO_ACKNOWLEDGED = new ComplexField(father,"dettaglio-acknowledged",java.lang.String.class,"allarme",Allarme.class);
  80.         this.TIPO_PERIODO = new ComplexField(father,"tipo-periodo",java.lang.String.class,"allarme",Allarme.class);
  81.         this.PERIODO = new ComplexField(father,"periodo",java.lang.Integer.class,"allarme",Allarme.class);
  82.         this.FILTRO = new org.openspcoop2.core.allarmi.model.AllarmeFiltroModel(new ComplexField(father,"filtro",org.openspcoop2.core.allarmi.AllarmeFiltro.class,"allarme",Allarme.class));
  83.         this.GROUP_BY = new org.openspcoop2.core.allarmi.model.AllarmeRaggruppamentoModel(new ComplexField(father,"group-by",org.openspcoop2.core.allarmi.AllarmeRaggruppamento.class,"allarme",Allarme.class));
  84.         this.ALLARME_PARAMETRO = new org.openspcoop2.core.allarmi.model.AllarmeParametroModel(new ComplexField(father,"allarme-parametro",org.openspcoop2.core.allarmi.AllarmeParametro.class,"allarme",Allarme.class));
  85.    
  86.     }
  87.    
  88.    

  89.     public IField NOME = null;
  90.      
  91.     public IField ALIAS = null;
  92.      
  93.     public IField DESCRIZIONE = null;
  94.      
  95.     public IField TIPO = null;
  96.      
  97.     public IField TIPO_ALLARME = null;
  98.      
  99.     public org.openspcoop2.core.allarmi.model.AllarmeMailModel MAIL = null;
  100.      
  101.     public org.openspcoop2.core.allarmi.model.AllarmeScriptModel SCRIPT = null;
  102.      
  103.     public IField STATO_PRECEDENTE = null;
  104.      
  105.     public IField STATO = null;
  106.      
  107.     public IField DETTAGLIO_STATO = null;
  108.      
  109.     public IField LASTTIMESTAMP_CREATE = null;
  110.      
  111.     public IField LASTTIMESTAMP_UPDATE = null;
  112.      
  113.     public IField ENABLED = null;
  114.      
  115.     public IField ACKNOWLEDGED = null;
  116.      
  117.     public IField DETTAGLIO_ACKNOWLEDGED = null;
  118.      
  119.     public IField TIPO_PERIODO = null;
  120.      
  121.     public IField PERIODO = null;
  122.      
  123.     public org.openspcoop2.core.allarmi.model.AllarmeFiltroModel FILTRO = null;
  124.      
  125.     public org.openspcoop2.core.allarmi.model.AllarmeRaggruppamentoModel GROUP_BY = null;
  126.      
  127.     public org.openspcoop2.core.allarmi.model.AllarmeParametroModel ALLARME_PARAMETRO = null;
  128.      

  129.     @Override
  130.     public Class<Allarme> getModeledClass(){
  131.         return Allarme.class;
  132.     }
  133.    
  134.     @Override
  135.     public String toString(){
  136.         if(this.getModeledClass()!=null){
  137.             return this.getModeledClass().getName();
  138.         }else{
  139.             return "N.D.";
  140.         }
  141.     }

  142. }