AllarmeRaggruppamentoModel.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.AllarmeRaggruppamento;

  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 AllarmeRaggruppamento
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class AllarmeRaggruppamentoModel extends AbstractModel<AllarmeRaggruppamento> {

  34.     public AllarmeRaggruppamentoModel(){
  35.    
  36.         super();
  37.    
  38.         this.ENABLED = new Field("enabled",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  39.         this.RUOLO_PORTA = new Field("ruolo-porta",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  40.         this.PROTOCOLLO = new Field("protocollo",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  41.         this.FRUITORE = new Field("fruitore",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  42.         this.SERVIZIO_APPLICATIVO_FRUITORE = new Field("servizio-applicativo-fruitore",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  43.         this.IDENTIFICATIVO_AUTENTICATO = new Field("identificativo-autenticato",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  44.         this.TOKEN = new Field("token",java.lang.String.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  45.         this.EROGATORE = new Field("erogatore",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  46.         this.SERVIZIO = new Field("servizio",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  47.         this.AZIONE = new Field("azione",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  48.    
  49.     }
  50.    
  51.     public AllarmeRaggruppamentoModel(IField father){
  52.    
  53.         super(father);
  54.    
  55.         this.ENABLED = new ComplexField(father,"enabled",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  56.         this.RUOLO_PORTA = new ComplexField(father,"ruolo-porta",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  57.         this.PROTOCOLLO = new ComplexField(father,"protocollo",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  58.         this.FRUITORE = new ComplexField(father,"fruitore",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  59.         this.SERVIZIO_APPLICATIVO_FRUITORE = new ComplexField(father,"servizio-applicativo-fruitore",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  60.         this.IDENTIFICATIVO_AUTENTICATO = new ComplexField(father,"identificativo-autenticato",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  61.         this.TOKEN = new ComplexField(father,"token",java.lang.String.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  62.         this.EROGATORE = new ComplexField(father,"erogatore",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  63.         this.SERVIZIO = new ComplexField(father,"servizio",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  64.         this.AZIONE = new ComplexField(father,"azione",boolean.class,"allarme-raggruppamento",AllarmeRaggruppamento.class);
  65.    
  66.     }
  67.    
  68.    

  69.     public IField ENABLED = null;
  70.      
  71.     public IField RUOLO_PORTA = null;
  72.      
  73.     public IField PROTOCOLLO = null;
  74.      
  75.     public IField FRUITORE = null;
  76.      
  77.     public IField SERVIZIO_APPLICATIVO_FRUITORE = null;
  78.      
  79.     public IField IDENTIFICATIVO_AUTENTICATO = null;
  80.      
  81.     public IField TOKEN = null;
  82.      
  83.     public IField EROGATORE = null;
  84.      
  85.     public IField SERVIZIO = null;
  86.      
  87.     public IField AZIONE = null;
  88.      

  89.     @Override
  90.     public Class<AllarmeRaggruppamento> getModeledClass(){
  91.         return AllarmeRaggruppamento.class;
  92.     }
  93.    
  94.     @Override
  95.     public String toString(){
  96.         if(this.getModeledClass()!=null){
  97.             return this.getModeledClass().getName();
  98.         }else{
  99.             return "N.D.";
  100.         }
  101.     }

  102. }