SoggettoModel.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.config.model;

  21. import org.openspcoop2.core.config.Soggetto;

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

  34.     public SoggettoModel(){
  35.    
  36.         super();
  37.    
  38.         this.PORTA_DELEGATA = new org.openspcoop2.core.config.model.PortaDelegataModel(new Field("porta-delegata",org.openspcoop2.core.config.PortaDelegata.class,"soggetto",Soggetto.class));
  39.         this.PORTA_APPLICATIVA = new org.openspcoop2.core.config.model.PortaApplicativaModel(new Field("porta-applicativa",org.openspcoop2.core.config.PortaApplicativa.class,"soggetto",Soggetto.class));
  40.         this.SERVIZIO_APPLICATIVO = new org.openspcoop2.core.config.model.ServizioApplicativoModel(new Field("servizio-applicativo",org.openspcoop2.core.config.ServizioApplicativo.class,"soggetto",Soggetto.class));
  41.         this.CONNETTORE = new org.openspcoop2.core.config.model.ConnettoreModel(new Field("connettore",org.openspcoop2.core.config.Connettore.class,"soggetto",Soggetto.class));
  42.         this.SUPER_USER = new Field("super-user",java.lang.String.class,"soggetto",Soggetto.class);
  43.         this.TIPO = new Field("tipo",java.lang.String.class,"soggetto",Soggetto.class);
  44.         this.NOME = new Field("nome",java.lang.String.class,"soggetto",Soggetto.class);
  45.         this.IDENTIFICATIVO_PORTA = new Field("identificativo-porta",java.lang.String.class,"soggetto",Soggetto.class);
  46.         this.DESCRIZIONE = new Field("descrizione",java.lang.String.class,"soggetto",Soggetto.class);
  47.         this.DOMINIO_DEFAULT = new Field("dominio-default",boolean.class,"soggetto",Soggetto.class);
  48.         this.ROUTER = new Field("router",boolean.class,"soggetto",Soggetto.class);
  49.         this.PD_URL_PREFIX_REWRITER = new Field("pd-url-prefix-rewriter",java.lang.String.class,"soggetto",Soggetto.class);
  50.         this.PA_URL_PREFIX_REWRITER = new Field("pa-url-prefix-rewriter",java.lang.String.class,"soggetto",Soggetto.class);
  51.         this.ORA_REGISTRAZIONE = new Field("ora-registrazione",java.util.Date.class,"soggetto",Soggetto.class);
  52.    
  53.     }
  54.    
  55.     public SoggettoModel(IField father){
  56.    
  57.         super(father);
  58.    
  59.         this.PORTA_DELEGATA = new org.openspcoop2.core.config.model.PortaDelegataModel(new ComplexField(father,"porta-delegata",org.openspcoop2.core.config.PortaDelegata.class,"soggetto",Soggetto.class));
  60.         this.PORTA_APPLICATIVA = new org.openspcoop2.core.config.model.PortaApplicativaModel(new ComplexField(father,"porta-applicativa",org.openspcoop2.core.config.PortaApplicativa.class,"soggetto",Soggetto.class));
  61.         this.SERVIZIO_APPLICATIVO = new org.openspcoop2.core.config.model.ServizioApplicativoModel(new ComplexField(father,"servizio-applicativo",org.openspcoop2.core.config.ServizioApplicativo.class,"soggetto",Soggetto.class));
  62.         this.CONNETTORE = new org.openspcoop2.core.config.model.ConnettoreModel(new ComplexField(father,"connettore",org.openspcoop2.core.config.Connettore.class,"soggetto",Soggetto.class));
  63.         this.SUPER_USER = new ComplexField(father,"super-user",java.lang.String.class,"soggetto",Soggetto.class);
  64.         this.TIPO = new ComplexField(father,"tipo",java.lang.String.class,"soggetto",Soggetto.class);
  65.         this.NOME = new ComplexField(father,"nome",java.lang.String.class,"soggetto",Soggetto.class);
  66.         this.IDENTIFICATIVO_PORTA = new ComplexField(father,"identificativo-porta",java.lang.String.class,"soggetto",Soggetto.class);
  67.         this.DESCRIZIONE = new ComplexField(father,"descrizione",java.lang.String.class,"soggetto",Soggetto.class);
  68.         this.DOMINIO_DEFAULT = new ComplexField(father,"dominio-default",boolean.class,"soggetto",Soggetto.class);
  69.         this.ROUTER = new ComplexField(father,"router",boolean.class,"soggetto",Soggetto.class);
  70.         this.PD_URL_PREFIX_REWRITER = new ComplexField(father,"pd-url-prefix-rewriter",java.lang.String.class,"soggetto",Soggetto.class);
  71.         this.PA_URL_PREFIX_REWRITER = new ComplexField(father,"pa-url-prefix-rewriter",java.lang.String.class,"soggetto",Soggetto.class);
  72.         this.ORA_REGISTRAZIONE = new ComplexField(father,"ora-registrazione",java.util.Date.class,"soggetto",Soggetto.class);
  73.    
  74.     }
  75.    
  76.    

  77.     public org.openspcoop2.core.config.model.PortaDelegataModel PORTA_DELEGATA = null;
  78.      
  79.     public org.openspcoop2.core.config.model.PortaApplicativaModel PORTA_APPLICATIVA = null;
  80.      
  81.     public org.openspcoop2.core.config.model.ServizioApplicativoModel SERVIZIO_APPLICATIVO = null;
  82.      
  83.     public org.openspcoop2.core.config.model.ConnettoreModel CONNETTORE = null;
  84.      
  85.     public IField SUPER_USER = null;
  86.      
  87.     public IField TIPO = null;
  88.      
  89.     public IField NOME = null;
  90.      
  91.     public IField IDENTIFICATIVO_PORTA = null;
  92.      
  93.     public IField DESCRIZIONE = null;
  94.      
  95.     public IField DOMINIO_DEFAULT = null;
  96.      
  97.     public IField ROUTER = null;
  98.      
  99.     public IField PD_URL_PREFIX_REWRITER = null;
  100.      
  101.     public IField PA_URL_PREFIX_REWRITER = null;
  102.      
  103.     public IField ORA_REGISTRAZIONE = null;
  104.      

  105.     @Override
  106.     public Class<Soggetto> getModeledClass(){
  107.         return Soggetto.class;
  108.     }
  109.    
  110.     @Override
  111.     public String toString(){
  112.         if(this.getModeledClass()!=null){
  113.             return this.getModeledClass().getName();
  114.         }else{
  115.             return "N.D.";
  116.         }
  117.     }

  118. }