AzioneModel.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.Azione;

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

  34.     public AzioneModel(){
  35.    
  36.         super();
  37.    
  38.         this.PROTOCOL_PROPERTY = new org.openspcoop2.core.registry.model.ProtocolPropertyModel(new Field("protocol-property",org.openspcoop2.core.registry.ProtocolProperty.class,"azione",Azione.class));
  39.         this.PROF_AZIONE = new Field("prof-azione",java.lang.String.class,"azione",Azione.class);
  40.         this.ID_ACCORDO = new Field("id-accordo",java.lang.Long.class,"azione",Azione.class);
  41.         this.NOME = new Field("nome",java.lang.String.class,"azione",Azione.class);
  42.         this.PROFILO_COLLABORAZIONE = new Field("profilo-collaborazione",java.lang.String.class,"azione",Azione.class);
  43.         this.FILTRO_DUPLICATI = new Field("filtro-duplicati",java.lang.String.class,"azione",Azione.class);
  44.         this.CONFERMA_RICEZIONE = new Field("conferma-ricezione",java.lang.String.class,"azione",Azione.class);
  45.         this.ID_COLLABORAZIONE = new Field("id-collaborazione",java.lang.String.class,"azione",Azione.class);
  46.         this.ID_RIFERIMENTO_RICHIESTA = new Field("id-riferimento-richiesta",java.lang.String.class,"azione",Azione.class);
  47.         this.CONSEGNA_IN_ORDINE = new Field("consegna-in-ordine",java.lang.String.class,"azione",Azione.class);
  48.         this.SCADENZA = new Field("scadenza",java.lang.String.class,"azione",Azione.class);
  49.         this.CORRELATA = new Field("correlata",java.lang.String.class,"azione",Azione.class);
  50.    
  51.     }
  52.    
  53.     public AzioneModel(IField father){
  54.    
  55.         super(father);
  56.    
  57.         this.PROTOCOL_PROPERTY = new org.openspcoop2.core.registry.model.ProtocolPropertyModel(new ComplexField(father,"protocol-property",org.openspcoop2.core.registry.ProtocolProperty.class,"azione",Azione.class));
  58.         this.PROF_AZIONE = new ComplexField(father,"prof-azione",java.lang.String.class,"azione",Azione.class);
  59.         this.ID_ACCORDO = new ComplexField(father,"id-accordo",java.lang.Long.class,"azione",Azione.class);
  60.         this.NOME = new ComplexField(father,"nome",java.lang.String.class,"azione",Azione.class);
  61.         this.PROFILO_COLLABORAZIONE = new ComplexField(father,"profilo-collaborazione",java.lang.String.class,"azione",Azione.class);
  62.         this.FILTRO_DUPLICATI = new ComplexField(father,"filtro-duplicati",java.lang.String.class,"azione",Azione.class);
  63.         this.CONFERMA_RICEZIONE = new ComplexField(father,"conferma-ricezione",java.lang.String.class,"azione",Azione.class);
  64.         this.ID_COLLABORAZIONE = new ComplexField(father,"id-collaborazione",java.lang.String.class,"azione",Azione.class);
  65.         this.ID_RIFERIMENTO_RICHIESTA = new ComplexField(father,"id-riferimento-richiesta",java.lang.String.class,"azione",Azione.class);
  66.         this.CONSEGNA_IN_ORDINE = new ComplexField(father,"consegna-in-ordine",java.lang.String.class,"azione",Azione.class);
  67.         this.SCADENZA = new ComplexField(father,"scadenza",java.lang.String.class,"azione",Azione.class);
  68.         this.CORRELATA = new ComplexField(father,"correlata",java.lang.String.class,"azione",Azione.class);
  69.    
  70.     }
  71.    
  72.    

  73.     public org.openspcoop2.core.registry.model.ProtocolPropertyModel PROTOCOL_PROPERTY = null;
  74.      
  75.     public IField PROF_AZIONE = null;
  76.      
  77.     public IField ID_ACCORDO = null;
  78.      
  79.     public IField NOME = null;
  80.      
  81.     public IField PROFILO_COLLABORAZIONE = null;
  82.      
  83.     public IField FILTRO_DUPLICATI = null;
  84.      
  85.     public IField CONFERMA_RICEZIONE = null;
  86.      
  87.     public IField ID_COLLABORAZIONE = null;
  88.      
  89.     public IField ID_RIFERIMENTO_RICHIESTA = null;
  90.      
  91.     public IField CONSEGNA_IN_ORDINE = null;
  92.      
  93.     public IField SCADENZA = null;
  94.      
  95.     public IField CORRELATA = null;
  96.      

  97.     @Override
  98.     public Class<Azione> getModeledClass(){
  99.         return Azione.class;
  100.     }
  101.    
  102.     @Override
  103.     public String toString(){
  104.         if(this.getModeledClass()!=null){
  105.             return this.getModeledClass().getName();
  106.         }else{
  107.             return "N.D.";
  108.         }
  109.     }

  110. }