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

  21. import org.openspcoop2.core.registry.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.CONNETTORE = new org.openspcoop2.core.registry.model.ConnettoreModel(new Field("connettore",org.openspcoop2.core.registry.Connettore.class,"soggetto",Soggetto.class));
  39.         this.PROPRIETA = new org.openspcoop2.core.registry.model.ProprietaModel(new Field("proprieta",org.openspcoop2.core.registry.Proprieta.class,"soggetto",Soggetto.class));
  40.         this.PROTOCOL_PROPERTY = new org.openspcoop2.core.registry.model.ProtocolPropertyModel(new Field("protocol-property",org.openspcoop2.core.registry.ProtocolProperty.class,"soggetto",Soggetto.class));
  41.         this.CREDENZIALI = new org.openspcoop2.core.registry.model.CredenzialiSoggettoModel(new Field("credenziali",org.openspcoop2.core.registry.CredenzialiSoggetto.class,"soggetto",Soggetto.class));
  42.         this.RUOLI = new org.openspcoop2.core.registry.model.RuoliSoggettoModel(new Field("ruoli",org.openspcoop2.core.registry.RuoliSoggetto.class,"soggetto",Soggetto.class));
  43.         this.ACCORDO_SERVIZIO_PARTE_SPECIFICA = new org.openspcoop2.core.registry.model.AccordoServizioParteSpecificaModel(new Field("accordo-servizio-parte-specifica",org.openspcoop2.core.registry.AccordoServizioParteSpecifica.class,"soggetto",Soggetto.class));
  44.         this.PROPRIETA_OGGETTO = new org.openspcoop2.core.registry.model.ProprietaOggettoModel(new Field("proprieta-oggetto",org.openspcoop2.core.registry.ProprietaOggetto.class,"soggetto",Soggetto.class));
  45.         this.SUPER_USER = new Field("super-user",java.lang.String.class,"soggetto",Soggetto.class);
  46.         this.PRIVATO = new Field("privato",Boolean.class,"soggetto",Soggetto.class);
  47.         this.TIPO = new Field("tipo",java.lang.String.class,"soggetto",Soggetto.class);
  48.         this.NOME = new Field("nome",java.lang.String.class,"soggetto",Soggetto.class);
  49.         this.IDENTIFICATIVO_PORTA = new Field("identificativo-porta",java.lang.String.class,"soggetto",Soggetto.class);
  50.         this.DESCRIZIONE = new Field("descrizione",java.lang.String.class,"soggetto",Soggetto.class);
  51.         this.PORTA_DOMINIO = new Field("porta-dominio",java.lang.String.class,"soggetto",Soggetto.class);
  52.         this.ORA_REGISTRAZIONE = new Field("ora-registrazione",java.util.Date.class,"soggetto",Soggetto.class);
  53.         this.VERSIONE_PROTOCOLLO = new Field("versione-protocollo",java.lang.String.class,"soggetto",Soggetto.class);
  54.         this.CODICE_IPA = new Field("codice-ipa",java.lang.String.class,"soggetto",Soggetto.class);
  55.    
  56.     }
  57.    
  58.     public SoggettoModel(IField father){
  59.    
  60.         super(father);
  61.    
  62.         this.CONNETTORE = new org.openspcoop2.core.registry.model.ConnettoreModel(new ComplexField(father,"connettore",org.openspcoop2.core.registry.Connettore.class,"soggetto",Soggetto.class));
  63.         this.PROPRIETA = new org.openspcoop2.core.registry.model.ProprietaModel(new ComplexField(father,"proprieta",org.openspcoop2.core.registry.Proprieta.class,"soggetto",Soggetto.class));
  64.         this.PROTOCOL_PROPERTY = new org.openspcoop2.core.registry.model.ProtocolPropertyModel(new ComplexField(father,"protocol-property",org.openspcoop2.core.registry.ProtocolProperty.class,"soggetto",Soggetto.class));
  65.         this.CREDENZIALI = new org.openspcoop2.core.registry.model.CredenzialiSoggettoModel(new ComplexField(father,"credenziali",org.openspcoop2.core.registry.CredenzialiSoggetto.class,"soggetto",Soggetto.class));
  66.         this.RUOLI = new org.openspcoop2.core.registry.model.RuoliSoggettoModel(new ComplexField(father,"ruoli",org.openspcoop2.core.registry.RuoliSoggetto.class,"soggetto",Soggetto.class));
  67.         this.ACCORDO_SERVIZIO_PARTE_SPECIFICA = new org.openspcoop2.core.registry.model.AccordoServizioParteSpecificaModel(new ComplexField(father,"accordo-servizio-parte-specifica",org.openspcoop2.core.registry.AccordoServizioParteSpecifica.class,"soggetto",Soggetto.class));
  68.         this.PROPRIETA_OGGETTO = new org.openspcoop2.core.registry.model.ProprietaOggettoModel(new ComplexField(father,"proprieta-oggetto",org.openspcoop2.core.registry.ProprietaOggetto.class,"soggetto",Soggetto.class));
  69.         this.SUPER_USER = new ComplexField(father,"super-user",java.lang.String.class,"soggetto",Soggetto.class);
  70.         this.PRIVATO = new ComplexField(father,"privato",Boolean.class,"soggetto",Soggetto.class);
  71.         this.TIPO = new ComplexField(father,"tipo",java.lang.String.class,"soggetto",Soggetto.class);
  72.         this.NOME = new ComplexField(father,"nome",java.lang.String.class,"soggetto",Soggetto.class);
  73.         this.IDENTIFICATIVO_PORTA = new ComplexField(father,"identificativo-porta",java.lang.String.class,"soggetto",Soggetto.class);
  74.         this.DESCRIZIONE = new ComplexField(father,"descrizione",java.lang.String.class,"soggetto",Soggetto.class);
  75.         this.PORTA_DOMINIO = new ComplexField(father,"porta-dominio",java.lang.String.class,"soggetto",Soggetto.class);
  76.         this.ORA_REGISTRAZIONE = new ComplexField(father,"ora-registrazione",java.util.Date.class,"soggetto",Soggetto.class);
  77.         this.VERSIONE_PROTOCOLLO = new ComplexField(father,"versione-protocollo",java.lang.String.class,"soggetto",Soggetto.class);
  78.         this.CODICE_IPA = new ComplexField(father,"codice-ipa",java.lang.String.class,"soggetto",Soggetto.class);
  79.    
  80.     }
  81.    
  82.    

  83.     public org.openspcoop2.core.registry.model.ConnettoreModel CONNETTORE = null;
  84.      
  85.     public org.openspcoop2.core.registry.model.ProprietaModel PROPRIETA = null;
  86.      
  87.     public org.openspcoop2.core.registry.model.ProtocolPropertyModel PROTOCOL_PROPERTY = null;
  88.      
  89.     public org.openspcoop2.core.registry.model.CredenzialiSoggettoModel CREDENZIALI = null;
  90.      
  91.     public org.openspcoop2.core.registry.model.RuoliSoggettoModel RUOLI = null;
  92.      
  93.     public org.openspcoop2.core.registry.model.AccordoServizioParteSpecificaModel ACCORDO_SERVIZIO_PARTE_SPECIFICA = null;
  94.      
  95.     public org.openspcoop2.core.registry.model.ProprietaOggettoModel PROPRIETA_OGGETTO = null;
  96.      
  97.     public IField SUPER_USER = null;
  98.      
  99.     public IField PRIVATO = null;
  100.      
  101.     public IField TIPO = null;
  102.      
  103.     public IField NOME = null;
  104.      
  105.     public IField IDENTIFICATIVO_PORTA = null;
  106.      
  107.     public IField DESCRIZIONE = null;
  108.      
  109.     public IField PORTA_DOMINIO = null;
  110.      
  111.     public IField ORA_REGISTRAZIONE = null;
  112.      
  113.     public IField VERSIONE_PROTOCOLLO = null;
  114.      
  115.     public IField CODICE_IPA = null;
  116.      

  117.     @Override
  118.     public Class<Soggetto> getModeledClass(){
  119.         return Soggetto.class;
  120.     }
  121.    
  122.     @Override
  123.     public String toString(){
  124.         if(this.getModeledClass()!=null){
  125.             return this.getModeledClass().getName();
  126.         }else{
  127.             return "N.D.";
  128.         }
  129.     }

  130. }