TrasparenteTestsuiteDynamicConfiguration.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.protocol.trasparente.properties;

  21. import java.util.List;

  22. import org.openspcoop2.core.id.IDAccordo;
  23. import org.openspcoop2.core.id.IDAccordoAzione;
  24. import org.openspcoop2.core.id.IDFruizione;
  25. import org.openspcoop2.core.id.IDPortType;
  26. import org.openspcoop2.core.id.IDPortTypeAzione;
  27. import org.openspcoop2.core.id.IDResource;
  28. import org.openspcoop2.core.id.IDServizio;
  29. import org.openspcoop2.core.id.IDServizioApplicativo;
  30. import org.openspcoop2.core.id.IDSoggetto;
  31. import org.openspcoop2.core.registry.ProtocolProperty;
  32. import org.openspcoop2.protocol.basic.properties.BasicDynamicConfiguration;
  33. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  34. import org.openspcoop2.protocol.sdk.ProtocolException;
  35. import org.openspcoop2.protocol.sdk.constants.ConsoleOperationType;
  36. import org.openspcoop2.protocol.sdk.properties.ConsoleConfiguration;
  37. import org.openspcoop2.protocol.sdk.properties.IConsoleHelper;
  38. import org.openspcoop2.protocol.sdk.properties.ProtocolProperties;
  39. import org.openspcoop2.protocol.sdk.registry.IConfigIntegrationReader;
  40. import org.openspcoop2.protocol.sdk.registry.IRegistryReader;

  41. /**
  42.  * TrasparenteTestsuiteDynamicConfiguration
  43.  *
  44.  * @author Poli Andrea (apoli@link.it)
  45.  * @author $Author$
  46.  * @version $Rev$, $Date$
  47.  */
  48. public class TrasparenteTestsuiteDynamicConfiguration extends BasicDynamicConfiguration implements org.openspcoop2.protocol.sdk.properties.IConsoleDynamicConfiguration {

  49.     public TrasparenteTestsuiteDynamicConfiguration(IProtocolFactory<?> factory) throws ProtocolException{
  50.         super(factory);
  51.     }

  52.     /*** SOGGETTO ***/

  53.     @Override
  54.     public ConsoleConfiguration getDynamicConfigSoggetto(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDSoggetto id)
  55.                     throws ProtocolException {
  56.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, null);
  57.     }

  58.     @Override
  59.     public void updateDynamicConfigSoggetto(ConsoleConfiguration consoleConfiguration,
  60.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  61.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDSoggetto id) throws ProtocolException {
  62.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  63.     }

  64.     @Override
  65.     public void validateDynamicConfigSoggetto(ConsoleConfiguration consoleConfiguration,
  66.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  67.             IDSoggetto id) throws ProtocolException {
  68.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  69.     }


  70.     /*** ACCORDO SERVIZIO PARTE COMUNE ***/

  71.     @Override
  72.     public ConsoleConfiguration getDynamicConfigAccordoServizioParteComune(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDAccordo id)
  73.                     throws ProtocolException {

  74.         List<ProtocolProperty> protocolPropertyList = null;
  75.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);

  76.     }

  77.     @Override
  78.     public void updateDynamicConfigAccordoServizioParteComune(ConsoleConfiguration consoleConfiguration,
  79.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  80.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDAccordo id) throws ProtocolException {
  81.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  82.     }

  83.     @Override
  84.     public void validateDynamicConfigAccordoServizioParteComune(ConsoleConfiguration consoleConfiguration,
  85.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  86.             IDAccordo id) throws ProtocolException {
  87.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  88.     }

  89.     /*** ACCORDO SERVIZIO COMPOSTO ***/

  90.     @Override
  91.     public ConsoleConfiguration getDynamicConfigAccordoServizioComposto(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDAccordo id)
  92.                     throws ProtocolException {

  93.         List<ProtocolProperty> protocolPropertyList = null;
  94.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  95.     }

  96.     @Override
  97.     public void updateDynamicConfigAccordoServizioComposto(ConsoleConfiguration consoleConfiguration,
  98.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  99.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDAccordo id) throws ProtocolException {
  100.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  101.     }
  102.    
  103.     @Override
  104.     public void validateDynamicConfigAccordoServizioComposto(ConsoleConfiguration consoleConfiguration,
  105.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  106.             IDAccordo id) throws ProtocolException {
  107.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  108.     }

  109.     /*** AZIONE ACCORDO ***/

  110.     @Override
  111.     public ConsoleConfiguration getDynamicConfigAzione(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDAccordoAzione id)
  112.                     throws ProtocolException {
  113.         List<ProtocolProperty> protocolPropertyList = null;
  114.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  115.     }

  116.     @Override
  117.     public void updateDynamicConfigAzione(ConsoleConfiguration consoleConfiguration,
  118.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  119.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDAccordoAzione id)
  120.                     throws ProtocolException {
  121.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  122.     }
  123.    
  124.     @Override
  125.     public void validateDynamicConfigAzione(ConsoleConfiguration consoleConfiguration,
  126.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  127.             IDAccordoAzione id) throws ProtocolException {
  128.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  129.     }


  130.     /*** OPERATION PORT TYPE ***/

  131.     @Override
  132.     public ConsoleConfiguration getDynamicConfigOperation(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDPortTypeAzione id)
  133.                     throws ProtocolException {
  134.         List<ProtocolProperty> protocolPropertyList = null;
  135.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  136.     }

  137.     @Override
  138.     public void updateDynamicConfigOperation(ConsoleConfiguration consoleConfiguration,
  139.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  140.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDPortTypeAzione id)
  141.                     throws ProtocolException {
  142.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  143.     }
  144.    
  145.     @Override
  146.     public void validateDynamicConfigOperation(ConsoleConfiguration consoleConfiguration,
  147.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  148.             IDPortTypeAzione id) throws ProtocolException {
  149.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  150.     }


  151.     /*** PORT TYPE ***/

  152.     @Override
  153.     public ConsoleConfiguration getDynamicConfigPortType(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDPortType id)
  154.                     throws ProtocolException {
  155.         List<ProtocolProperty> protocolPropertyList = null;
  156.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  157.     }

  158.     @Override
  159.     public void updateDynamicConfigPortType(ConsoleConfiguration consoleConfiguration,
  160.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  161.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDPortType id) throws ProtocolException {
  162.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  163.     }
  164.    
  165.     @Override
  166.     public void validateDynamicConfigPortType(ConsoleConfiguration consoleConfiguration,
  167.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  168.             IDPortType id) throws ProtocolException {
  169.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  170.     }
  171.    
  172.     /*** RESOURCE ***/

  173.     @Override
  174.     public ConsoleConfiguration getDynamicConfigResource(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  175.             IDResource id, String httpMethod, String path)
  176.                     throws ProtocolException {
  177.         List<ProtocolProperty> protocolPropertyList = null;
  178.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  179.     }

  180.     @Override
  181.     public void updateDynamicConfigResource(ConsoleConfiguration consoleConfiguration,
  182.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  183.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDResource id, String httpMethod, String path) throws ProtocolException {
  184.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  185.     }
  186.    
  187.     @Override
  188.     public void validateDynamicConfigResource(ConsoleConfiguration consoleConfiguration,
  189.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  190.             IDResource id, String httpMethod, String path) throws ProtocolException {
  191.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  192.     }
  193.    
  194.     /*** ACCORDO COOPERAZIONE ***/
  195.    
  196.     @Override
  197.     public ConsoleConfiguration getDynamicConfigAccordoCooperazione(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDAccordo id)
  198.             throws ProtocolException {
  199.         List<ProtocolProperty> protocolPropertyList = null;
  200.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  201.     }
  202.    
  203.     @Override
  204.     public void updateDynamicConfigAccordoCooperazione(ConsoleConfiguration consoleConfiguration,
  205.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  206.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDAccordo id) throws ProtocolException {
  207.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  208.     }
  209.    
  210.     @Override
  211.     public void validateDynamicConfigCooperazione(ConsoleConfiguration consoleConfiguration,
  212.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  213.             IDAccordo id) throws ProtocolException {
  214.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  215.     }
  216.    
  217.    
  218.     /*** ACCORDI SERVIZIO PARTE SPECIFICA ***/
  219.    
  220.     @Override
  221.     public ConsoleConfiguration getDynamicConfigAccordoServizioParteSpecifica(ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDServizio id)
  222.             throws ProtocolException {
  223.         List<ProtocolProperty> protocolPropertyList = null;
  224.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  225.     }
  226.    
  227.     @Override
  228.     public void updateDynamicConfigAccordoServizioParteSpecifica(ConsoleConfiguration consoleConfiguration,
  229.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  230.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDServizio id) throws ProtocolException {
  231.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  232.     }
  233.    
  234.     @Override
  235.     public void validateDynamicConfigAccordoServizioParteSpecifica(ConsoleConfiguration consoleConfiguration,
  236.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  237.             IDServizio id) throws ProtocolException {
  238.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  239.     }
  240.    
  241.    
  242.     /*** FRUITORE ***/
  243.    
  244.     @Override
  245.     public ConsoleConfiguration getDynamicConfigFruizioneAccordoServizioParteSpecifica(
  246.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  247.             IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDFruizione id) throws ProtocolException {
  248.         List<ProtocolProperty> protocolPropertyList = null;
  249.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  250.     }
  251.    
  252.     @Override
  253.     public void updateDynamicConfigFruizioneAccordoServizioParteSpecifica(ConsoleConfiguration consoleConfiguration,
  254.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper,
  255.             ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDFruizione id) throws ProtocolException {
  256.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  257.     }
  258.    
  259.     @Override
  260.     public void validateDynamicConfigFruizioneAccordoServizioParteSpecifica(ConsoleConfiguration consoleConfiguration,
  261.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader,
  262.             IDFruizione id) throws ProtocolException {
  263.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  264.     }
  265.    
  266.    
  267.    
  268.     /*** SERVIZIO APPLICATIVO  ***/
  269.    
  270.     @Override
  271.     public ConsoleConfiguration getDynamicConfigServizioApplicativo(ConsoleOperationType consoleOperationType,
  272.             IConsoleHelper consoleHelper, IRegistryReader registryReader,
  273.             IConfigIntegrationReader configIntegrationReader, IDServizioApplicativo id) throws ProtocolException {
  274.         List<ProtocolProperty> protocolPropertyList = null;
  275.         return TrasparenteConfigurazioneTest.getDynamicConfigTest(consoleOperationType, consoleHelper, registryReader, this.protocolFactory, protocolPropertyList);
  276.     }

  277.     @Override
  278.     public void updateDynamicConfigServizioApplicativo(ConsoleConfiguration consoleConfiguration,
  279.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties,
  280.             IRegistryReader registryReader, IConfigIntegrationReader configIntegrationReader, IDServizioApplicativo id)
  281.             throws ProtocolException {
  282.         TrasparenteConfigurazioneTest.updateDynamicConfig(consoleConfiguration, consoleOperationType, consoleHelper, properties, registryReader);
  283.     }

  284.     @Override
  285.     public void validateDynamicConfigServizioApplicativo(ConsoleConfiguration consoleConfiguration,
  286.             ConsoleOperationType consoleOperationType, IConsoleHelper consoleHelper, ProtocolProperties properties, IRegistryReader registryReader,
  287.             IConfigIntegrationReader configIntegrationReader, IDServizioApplicativo id) throws ProtocolException {
  288.         TrasparenteConfigurazioneTest.validateDynamicConfig(consoleConfiguration, consoleOperationType, properties, registryReader);
  289.     }
  290. }