OperationModel.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.Operation;

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

  34.     public OperationModel(){
  35.    
  36.         super();
  37.    
  38.         this.MESSAGE_INPUT = new org.openspcoop2.core.registry.model.MessageModel(new Field("message-input",org.openspcoop2.core.registry.Message.class,"operation",Operation.class));
  39.         this.MESSAGE_OUTPUT = new org.openspcoop2.core.registry.model.MessageModel(new Field("message-output",org.openspcoop2.core.registry.Message.class,"operation",Operation.class));
  40.         this.PROTOCOL_PROPERTY = new org.openspcoop2.core.registry.model.ProtocolPropertyModel(new Field("protocol-property",org.openspcoop2.core.registry.ProtocolProperty.class,"operation",Operation.class));
  41.         this.PROF_AZIONE = new Field("prof-azione",java.lang.String.class,"operation",Operation.class);
  42.         this.ID_PORT_TYPE = new Field("id-port-type",java.lang.Long.class,"operation",Operation.class);
  43.         this.NOME = new Field("nome",java.lang.String.class,"operation",Operation.class);
  44.         this.STYLE = new Field("style",java.lang.String.class,"operation",Operation.class);
  45.         this.SOAP_ACTION = new Field("soap-action",java.lang.String.class,"operation",Operation.class);
  46.         this.PROFILO_COLLABORAZIONE = new Field("profilo-collaborazione",java.lang.String.class,"operation",Operation.class);
  47.         this.FILTRO_DUPLICATI = new Field("filtro-duplicati",java.lang.String.class,"operation",Operation.class);
  48.         this.CONFERMA_RICEZIONE = new Field("conferma-ricezione",java.lang.String.class,"operation",Operation.class);
  49.         this.ID_COLLABORAZIONE = new Field("id-collaborazione",java.lang.String.class,"operation",Operation.class);
  50.         this.ID_RIFERIMENTO_RICHIESTA = new Field("id-riferimento-richiesta",java.lang.String.class,"operation",Operation.class);
  51.         this.CONSEGNA_IN_ORDINE = new Field("consegna-in-ordine",java.lang.String.class,"operation",Operation.class);
  52.         this.SCADENZA = new Field("scadenza",java.lang.String.class,"operation",Operation.class);
  53.         this.CORRELATA_SERVIZIO = new Field("correlata-servizio",java.lang.String.class,"operation",Operation.class);
  54.         this.CORRELATA = new Field("correlata",java.lang.String.class,"operation",Operation.class);
  55.    
  56.     }
  57.    
  58.     public OperationModel(IField father){
  59.    
  60.         super(father);
  61.    
  62.         this.MESSAGE_INPUT = new org.openspcoop2.core.registry.model.MessageModel(new ComplexField(father,"message-input",org.openspcoop2.core.registry.Message.class,"operation",Operation.class));
  63.         this.MESSAGE_OUTPUT = new org.openspcoop2.core.registry.model.MessageModel(new ComplexField(father,"message-output",org.openspcoop2.core.registry.Message.class,"operation",Operation.class));
  64.         this.PROTOCOL_PROPERTY = new org.openspcoop2.core.registry.model.ProtocolPropertyModel(new ComplexField(father,"protocol-property",org.openspcoop2.core.registry.ProtocolProperty.class,"operation",Operation.class));
  65.         this.PROF_AZIONE = new ComplexField(father,"prof-azione",java.lang.String.class,"operation",Operation.class);
  66.         this.ID_PORT_TYPE = new ComplexField(father,"id-port-type",java.lang.Long.class,"operation",Operation.class);
  67.         this.NOME = new ComplexField(father,"nome",java.lang.String.class,"operation",Operation.class);
  68.         this.STYLE = new ComplexField(father,"style",java.lang.String.class,"operation",Operation.class);
  69.         this.SOAP_ACTION = new ComplexField(father,"soap-action",java.lang.String.class,"operation",Operation.class);
  70.         this.PROFILO_COLLABORAZIONE = new ComplexField(father,"profilo-collaborazione",java.lang.String.class,"operation",Operation.class);
  71.         this.FILTRO_DUPLICATI = new ComplexField(father,"filtro-duplicati",java.lang.String.class,"operation",Operation.class);
  72.         this.CONFERMA_RICEZIONE = new ComplexField(father,"conferma-ricezione",java.lang.String.class,"operation",Operation.class);
  73.         this.ID_COLLABORAZIONE = new ComplexField(father,"id-collaborazione",java.lang.String.class,"operation",Operation.class);
  74.         this.ID_RIFERIMENTO_RICHIESTA = new ComplexField(father,"id-riferimento-richiesta",java.lang.String.class,"operation",Operation.class);
  75.         this.CONSEGNA_IN_ORDINE = new ComplexField(father,"consegna-in-ordine",java.lang.String.class,"operation",Operation.class);
  76.         this.SCADENZA = new ComplexField(father,"scadenza",java.lang.String.class,"operation",Operation.class);
  77.         this.CORRELATA_SERVIZIO = new ComplexField(father,"correlata-servizio",java.lang.String.class,"operation",Operation.class);
  78.         this.CORRELATA = new ComplexField(father,"correlata",java.lang.String.class,"operation",Operation.class);
  79.    
  80.     }
  81.    
  82.    

  83.     public org.openspcoop2.core.registry.model.MessageModel MESSAGE_INPUT = null;
  84.      
  85.     public org.openspcoop2.core.registry.model.MessageModel MESSAGE_OUTPUT = null;
  86.      
  87.     public org.openspcoop2.core.registry.model.ProtocolPropertyModel PROTOCOL_PROPERTY = null;
  88.      
  89.     public IField PROF_AZIONE = null;
  90.      
  91.     public IField ID_PORT_TYPE = null;
  92.      
  93.     public IField NOME = null;
  94.      
  95.     public IField STYLE = null;
  96.      
  97.     public IField SOAP_ACTION = null;
  98.      
  99.     public IField PROFILO_COLLABORAZIONE = null;
  100.      
  101.     public IField FILTRO_DUPLICATI = null;
  102.      
  103.     public IField CONFERMA_RICEZIONE = null;
  104.      
  105.     public IField ID_COLLABORAZIONE = null;
  106.      
  107.     public IField ID_RIFERIMENTO_RICHIESTA = null;
  108.      
  109.     public IField CONSEGNA_IN_ORDINE = null;
  110.      
  111.     public IField SCADENZA = null;
  112.      
  113.     public IField CORRELATA_SERVIZIO = null;
  114.      
  115.     public IField CORRELATA = null;
  116.      

  117.     @Override
  118.     public Class<Operation> getModeledClass(){
  119.         return Operation.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. }