ConfigurazionePdD.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.pdd.core.jmx;

  21. import java.sql.Connection;
  22. import java.util.ArrayList;
  23. import java.util.Iterator;
  24. import java.util.List;

  25. import javax.management.Attribute;
  26. import javax.management.AttributeList;
  27. import javax.management.AttributeNotFoundException;
  28. import javax.management.DynamicMBean;
  29. import javax.management.InvalidAttributeValueException;
  30. import javax.management.JMException;
  31. import javax.management.MBeanAttributeInfo;
  32. import javax.management.MBeanConstructorInfo;
  33. import javax.management.MBeanException;
  34. import javax.management.MBeanInfo;
  35. import javax.management.MBeanOperationInfo;
  36. import javax.management.MBeanParameterInfo;
  37. import javax.management.NotificationBroadcasterSupport;
  38. import javax.management.ReflectionException;

  39. import org.openspcoop2.core.commons.CoreException;
  40. import org.openspcoop2.core.config.MessaggiDiagnostici;
  41. import org.openspcoop2.core.config.OpenspcoopAppender;
  42. import org.openspcoop2.core.config.PortaApplicativa;
  43. import org.openspcoop2.core.config.PortaApplicativaServizioApplicativo;
  44. import org.openspcoop2.core.config.Tracciamento;
  45. import org.openspcoop2.core.config.constants.CostantiConfigurazione;
  46. import org.openspcoop2.core.config.constants.StatoFunzionalita;
  47. import org.openspcoop2.core.id.IDPortaApplicativa;
  48. import org.openspcoop2.core.id.IDPortaDelegata;
  49. import org.openspcoop2.core.id.IDServizioApplicativo;
  50. import org.openspcoop2.core.id.IDSoggetto;
  51. import org.openspcoop2.pdd.config.ConfigurazionePdDManager;
  52. import org.openspcoop2.pdd.config.ConfigurazionePdDReader;
  53. import org.openspcoop2.pdd.config.DBManager;
  54. import org.openspcoop2.pdd.config.Resource;
  55. import org.openspcoop2.pdd.core.GestoreMessaggi;
  56. import org.openspcoop2.pdd.core.cache.GestoreCacheCleaner;
  57. import org.openspcoop2.pdd.core.connettori.ConnettoreCheck;
  58. import org.openspcoop2.pdd.logger.LogLevels;
  59. import org.openspcoop2.pdd.logger.OpenSPCoop2Logger;
  60. import org.openspcoop2.pdd.logger.filetrace.FileTraceConfig;
  61. import org.openspcoop2.pdd.timers.TimerClusterDinamicoThread;
  62. import org.openspcoop2.pdd.timers.TimerConsegnaContenutiApplicativi;
  63. import org.openspcoop2.pdd.timers.TimerConsegnaContenutiApplicativiThread;
  64. import org.openspcoop2.pdd.timers.TimerEventiThread;
  65. import org.openspcoop2.pdd.timers.TimerFileSystemRecoveryThread;
  66. import org.openspcoop2.pdd.timers.TimerGestoreBusteNonRiscontrate;
  67. import org.openspcoop2.pdd.timers.TimerGestoreBusteNonRiscontrateLib;
  68. import org.openspcoop2.pdd.timers.TimerGestoreMessaggi;
  69. import org.openspcoop2.pdd.timers.TimerGestoreMessaggiLib;
  70. import org.openspcoop2.pdd.timers.TimerGestorePuliziaMessaggiAnomali;
  71. import org.openspcoop2.pdd.timers.TimerGestorePuliziaMessaggiAnomaliLib;
  72. import org.openspcoop2.pdd.timers.TimerGestoreRepositoryBuste;
  73. import org.openspcoop2.pdd.timers.TimerGestoreRepositoryBusteLib;
  74. import org.openspcoop2.pdd.timers.TimerMonitoraggioRisorseThread;
  75. import org.openspcoop2.pdd.timers.TimerRepositoryStatefulThread;
  76. import org.openspcoop2.pdd.timers.TimerState;
  77. import org.openspcoop2.pdd.timers.TimerStatisticheLib;
  78. import org.openspcoop2.pdd.timers.TimerStatisticheThread;
  79. import org.openspcoop2.pdd.timers.TimerThresholdThread;
  80. import org.openspcoop2.pdd.timers.pdnd.TimerGestoreCacheChiaviPDND;
  81. import org.openspcoop2.pdd.timers.pdnd.TimerGestoreCacheChiaviPDNDLib;
  82. import org.openspcoop2.pdd.timers.pdnd.TimerGestoreChiaviPDND;
  83. import org.openspcoop2.pdd.timers.pdnd.TimerGestoreChiaviPDNDLib;
  84. import org.openspcoop2.pdd.timers.proxy.TimerGestoreOperazioniRemoteLib;
  85. import org.openspcoop2.pdd.timers.proxy.TimerSvecchiamentoOperazioniRemoteLib;
  86. import org.openspcoop2.protocol.basic.Costanti;
  87. import org.openspcoop2.protocol.registry.CertificateCheck;
  88. import org.openspcoop2.protocol.utils.ErroriProperties;
  89. import org.openspcoop2.utils.resources.Loader;
  90. import org.slf4j.Logger;


  91. /**
  92.  * Implementazione JMX per la gestione della Configurazione di OpenSPCoop
  93.  *  
  94.  * @author Poli Andrea (apoli@link.it)
  95.  * @author $Author$
  96.  * @version $Rev$, $Date$
  97.  */
  98. public class ConfigurazionePdD extends NotificationBroadcasterSupport implements DynamicMBean {

  99.     /** Nomi proprieta' */
  100.     public static final String MSG_DIAGNOSTICI_SEVERITA_LIVELLO = "msgDiagnosticiLivelloSeverita";
  101.     public static final String MSG_DIAGNOSTICI_SEVERITA_LIVELLO_LOG4J = "msgDiagnosticiLivelloSeveritaLog4J";
  102.     public static final String MSG_DIAGNOSTICI_APPENDER = "msgDiagnosticiAppender";
  103.     public static final String TRACCIAMENTO_ABILITATO = "tracciamentoAbilitato";
  104.     public static final String DUMP_BINARIO_PD_ABILITATO = "dumpBinarioPortaDelegataAbilitato";
  105.     public static final String DUMP_BINARIO_PA_ABILITATO = "dumpBinarioPortaApplicativaAbilitato";
  106.     public static final String TRACCIAMENTO_APPENDER = "tracciamentoAppender";
  107.     public static final String LOG4J_DIAGNOSTICA_ABILITATO = "log4jLogFileDiagnosticaAbilitato";
  108.     public static final String LOG4J_OPENSPCOOP_ABILITATO = "log4jLogFileOpenSPCoopAbilitato";
  109.     public static final String LOG4J_INTEGRATION_MANAGER_ABILITATO = "log4jLogFileIntegrationManagerAbilitato";
  110.     public static final String LOG4J_TRACCIAMENTO_ABILITATO = "log4jLogFileTracciamentoAbilitato";
  111.     public static final String LOG4J_DUMP_ABILITATO = "log4jLogFileDumpAbilitato";
  112.     public static final String ERRORI_STATUS_CODE_ABILITATO = "transactionErrorStatusAbilitato";
  113.     public static final String ERRORI_INSTANCE_ID_ABILITATO = "transactionErrorInstanceIdAbilitato";
  114.     public static final String ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_BAD_REQUEST = "transactionErrorForceSpecificTypeInternalBadRequest";
  115.     public static final String ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_BAD_RESPONSE = "transactionErrorForceSpecificTypeBadResponse";
  116.     public static final String ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_RESPONSE_ERROR = "transactionErrorForceSpecificTypeInternalResponseError";
  117.     public static final String ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_ERROR= "transactionErrorForceSpecificTypeInternalError";
  118.     public static final String ERRORI_FORCE_SPECIFIC_DETAILS = "transactionErrorForceSpecificDetails";
  119.     public static final String ERRORI_SOAP_USE_GOVWAY_STATUS_AS_FAULT_CODE = "transactionErrorUseGovWayStatusAsSoapFaultCode";
  120.     public static final String ERRORI_SOAP_GENERATE_HTTP_HEADER_GOVWAY_CODE = "transactionErrorGenerateHttpHeaderGovWayCode";
  121.    
  122.     public static final String TIMER_CONSEGNA_CONTENUTI_APPLICATIVI = "timerConsegnaContenutiApplicativi";
  123.     public static final String TIMER_EVENTI = "timerEventi";
  124.     public static final String TIMER_FILE_SYSTEM_RECOVERY = "timerFileSystemRecovery";
  125.     public static final String TIMER_GESTORE_BUSTE_ONEWAY_NON_RISCONTRATE = "timerGestoreBusteOnewayNonRiscontrate";
  126.     public static final String TIMER_GESTORE_BUSTE_ASINCRONE_NON_RISCONTRATE = "timerGestoreBusteAsincroneNonRiscontrate";
  127.     public static final String TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_ELIMINATI = "timerGestoreMessaggiPuliziaMessaggiEliminati";
  128.     public static final String TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_SCADUTI = "timerGestoreMessaggiPuliziaMessaggiScaduti";
  129.     public static final String TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_NON_GESTITI = "timerGestoreMessaggiPuliziaMessaggiNonGestiti";
  130.     public static final String TIMER_GESTORE_MESSAGGI_PULIZIA_CORRELAZIONE_APPLICATIVA = "timerGestoreMessaggiPuliziaCorrelazioneApplicativa";
  131.     public static final String TIMER_GESTORE_MESSAGGI_VERIFICA_CONNESSIONI_ATTIVE = "timerGestoreMessaggiVerificaConnessioniAttive";
  132.     public static final String TIMER_GESTORE_PULIZIA_MESSAGGI_ANOMALI = "timerGestorePuliziaMessaggiAnomali";
  133.     public static final String TIMER_GESTORE_REPOSITORY_BUSTE = "timerGestoreRepositoryBuste";
  134.     public static final String TIMER_MONITORAGGIO_RISORSE_THREAD = "timerMonitoraggioRisorseThread";
  135.     public static final String TIMER_REPOSITORY_STATEFUL_THREAD = "timerRepositoryStatefulThread";
  136.     public static final String TIMER_STATISTICHE_ORARIE = "timerStatisticheOrarie";
  137.     public static final String TIMER_STATISTICHE_GIORNALIERE = "timerStatisticheGiornaliere";
  138.     public static final String TIMER_STATISTICHE_SETTIMANALI = "timerStatisticheSettimanali";
  139.     public static final String TIMER_STATISTICHE_MENSILI = "timerStatisticheMensili";
  140.     public static final String TIMER_GESTORE_CHIAVI_PDND = "timerGestoreChiaviPDND";
  141.     public static final String TIMER_GESTORE_CACHE_CHIAVI_PDND = "timerGestoreCacheChiaviPDND";
  142.     public static final String TIMER_GESTORE_OPERAZIONI_REMOTE = "timerGestoreOperazioniRemote";
  143.     public static final String TIMER_SVECCHIAMENTO_OPERAZIONI_REMOTE = "timerSvecchiamentoOperazioniRemote";
  144.     public static final String TIMER_THRESHOLD_THREAD = "timerThresholdThread";
  145.     public static final String TIMER_CLUSTER_DINAMICO = "timerClusterDinamico";
  146.        
  147.     /** Nomi metodi' */
  148.     public static final String CHECK_CONNETTORE_BY_ID = "checkConnettoreById";
  149.     public static final String CHECK_CONNETTORE_BY_NOME = "checkConnettoreByNome";
  150.     public static final String CHECK_CONNETTORE_TOKEN_POLICY_VALIDATION = "checkConnettoreTokenPolicyValidazione";
  151.     public static final String CHECK_CONNETTORE_TOKEN_POLICY_RETRIEVE = "checkConnettoreTokenPolicyNegoziazione";
  152.     public static final String CHECK_CONNETTORE_ATTRIBUTE_AUTHORITY = "checkConnettoreAttributeAuthority";
  153.     public static final String GET_CERTIFICATI_CONNETTORE_BY_ID = "getCertificatiConnettoreById";
  154.     public static final String GET_CERTIFICATI_CONNETTORE_BY_NOME = "getCertificatiConnettoreByNome";
  155.     public static final String GET_CERTIFICATI_TOKEN_POLICY_VALIDATION = "getCertificatiConnettoreTokenPolicyValidazione";
  156.     public static final String GET_CERTIFICATI_TOKEN_POLICY_RETRIEVE = "getCertificatiConnettoreTokenPolicyNegoziazione";
  157.     public static final String GET_CERTIFICATI_ATTRIBUTE_AUTHORITY = "getCertificatiConnettoreAttributeAuthority";
  158.     public static final String CHECK_CERTIFICATI_CONNETTORE_HTTPS_BY_ID = "checkCertificatiConnettoreHttpsById";
  159.     public static final String CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_ID = "checkCertificatoApplicativoById";
  160.     public static final String CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_NOME = "checkCertificatoApplicativoByNome";
  161.     public static final String CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_ID = "checkCertificatoModIApplicativoById";
  162.     public static final String CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_NOME = "checkCertificatoModIApplicativoByNome";
  163.     public static final String CHECK_CERTIFICATI_CONFIGURAZIONE_JVM = "checkCertificatiJvm";
  164.     public static final String CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_VALIDAZIONE = "checkCertificatiConnettoreHttpsTokenPolicyValidazione";
  165.     public static final String CHECK_CERTIFICATI_VALIDAZIONE_JWT_TOKEN_POLICY_VALIDAZIONE = "checkCertificatiValidazioneJwtTokenPolicyValidazione";
  166.     public static final String CHECK_CERTIFICATI_FORWARD_TO_JWT_TOKEN_POLICY_VALIDAZIONE = "checkCertificatiForwardToJwtTokenPolicyValidazione";
  167.     public static final String CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_NEGOZIAZIONE = "checkCertificatiConnettoreHttpsTokenPolicyNegoziazione";
  168.     public static final String CHECK_CERTIFICATI_SIGNED_JWT_TOKEN_POLICY_NEGOZIAZIONE = "checkCertificatiSignedJwtTokenPolicyNegoziazione";
  169.     public static final String CHECK_CERTIFICATI_CONNETTORE_HTTPS_ATTRIBUTE_AUTHORITY = "checkCertificatiConnettoreHttpsAttributeAuthority";
  170.     public static final String CHECK_CERTIFICATI_ATTRIBUTE_AUTHORITY_JWT_RICHIESTA = "checkCertificatiAttributeAuthorityJwtRichiesta";
  171.     public static final String CHECK_CERTIFICATI_ATTRIBUTE_AUTHORITY_JWT_RISPOSTA = "checkCertificatiAttributeAuthorityJwtRisposta";
  172.     public static final String CHECK_CERTIFICATI_MESSAGE_SECURITY_EROGAZIONE_BY_ID = "checkCertificatiMessageSecurityErogazioneById";
  173.     public static final String CHECK_CERTIFICATI_MESSAGE_SECURITY_FRUIZIONE_BY_ID = "checkCertificatiMessageSecurityFruizioneById";
  174.     public static final String CHECK_PROXY_CONFIGURAZIONE_JVM = "checkProxyJvm";
  175.     public static final String ABILITA_PORTA_DELEGATA = "enablePortaDelegata";
  176.     public static final String DISABILITA_PORTA_DELEGATA = "disablePortaDelegata";
  177.     public static final String ABILITA_PORTA_APPLICATIVA = "enablePortaApplicativa";
  178.     public static final String DISABILITA_PORTA_APPLICATIVA = "disablePortaApplicativa";
  179.     public static final String ABILITA_CONNETTORE_MULTIPLO = "enableConnettoreMultiplo";
  180.     public static final String DISABILITA_CONNETTORE_MULTIPLO = "disableConnettoreMultiplo";
  181.     public static final String ABILITA_SCHEDULING_CONNETTORE_MULTIPLO = "enableSchedulingConnettoreMultiplo";
  182.     public static final String DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO = "disableSchedulingConnettoreMultiplo";
  183.     public static final String ABILITA_CONNETTORE_MULTIPLO_USERNAME = "enableConnettoreMultiploByUsername";
  184.     public static final String DISABILITA_CONNETTORE_MULTIPLO_USERNAME = "disableConnettoreMultiploByUsername";
  185.     public static final String ABILITA_SCHEDULING_CONNETTORE_MULTIPLO_USERNAME = "enableSchedulingConnettoreMultiploByUsername";
  186.     public static final String DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO_USERNAME = "disableSchedulingConnettoreMultiploByUsername";
  187.     public static final String ABILITA_SCHEDULING_CONNETTORE_MULTIPLO_RUNTIME = "enableSchedulingConnettoreMultiploRuntimeRepository";
  188.     public static final String DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO_RUNTIME = "disableSchedulingConnettoreMultiploRuntimeRepository";
  189.     public static final String RIPULISCI_RIFERIMENTI_CACHE_PREFIX = "ripulisciRiferimentiCache";
  190.     public static final String RIPULISCI_RIFERIMENTI_CACHE_ACCORDO_COOPERAZIONE = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"AccordoCooperazione";
  191.     public static final String RIPULISCI_RIFERIMENTI_CACHE_API = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"Api";
  192.     public static final String RIPULISCI_RIFERIMENTI_CACHE_EROGAZIONE = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"Erogazione";
  193.     public static final String RIPULISCI_RIFERIMENTI_CACHE_FRUIZIONE = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"Fruizione";
  194.     public static final String RIPULISCI_RIFERIMENTI_CACHE_SOGGETTO = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"Soggetto";
  195.     public static final String RIPULISCI_RIFERIMENTI_CACHE_APPLICATIVO = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"Applicativo";
  196.     public static final String RIPULISCI_RIFERIMENTI_CACHE_RUOLO = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"Ruolo";
  197.     public static final String RIPULISCI_RIFERIMENTI_CACHE_SCOPE = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"Scope";
  198.     public static final String RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_VALIDAZIONE = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"TokenPolicyValidazione";
  199.     public static final String RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_NEGOZIAZIONE = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"TokenPolicyNegoziazione";
  200.     public static final String RIPULISCI_RIFERIMENTI_CACHE_ATTRIBUTE_AUTHORITY = RIPULISCI_RIFERIMENTI_CACHE_PREFIX+"AttributeAuthority";
  201.    
  202.    
  203.     /** Attributi */
  204.     private boolean cacheAbilitata = false;
  205.     private String msgDiagnosticiLivelloSeverita = "";
  206.     private String msgDiagnosticiLivelloSeveritaLog4J = "";
  207.     private String[] msgDiagnosticiAppender = null;
  208.     private boolean tracciamentoAbilitato = true;
  209.     private boolean dumpBinarioPDAbilitato = false;
  210.     private boolean dumpBinarioPAAbilitato = false;
  211.     private String[] tracciamentoAppender = null;
  212.     private boolean log4jDiagnosticaAbilitato = false;
  213.     private boolean log4jOpenSPCoopAbilitato = false;
  214.     private boolean log4jIntegrationManagerAbilitato = false;
  215.     private boolean log4jTracciamentoAbilitato = false;
  216.     private boolean log4jDumpAbilitato = false;
  217.        
  218.     private static final String PARAMETRO_NON_FORNITO = "parametro richiesto non fornito";
  219.     private static final String FORMATO_NON_VALIDO_NOME_SOGGETTO = "Formato non valido (nome@tipoSoggetto/nomeSoggetto)";
  220.    
  221.     /** getAttribute */
  222.     @Override
  223.     public Object getAttribute(String attributeName) throws AttributeNotFoundException,MBeanException,ReflectionException{
  224.        
  225.         if( (attributeName==null) || (attributeName.equals("")) )
  226.             throw new IllegalArgumentException("Il nome dell'attributo e' nullo o vuoto");
  227.        
  228.         if(attributeName.equals(JMXUtils.CACHE_ATTRIBUTE_ABILITATA))
  229.             return this.cacheAbilitata;
  230.        
  231.         if(attributeName.equals(ConfigurazionePdD.MSG_DIAGNOSTICI_SEVERITA_LIVELLO))
  232.             return this.msgDiagnosticiLivelloSeverita;
  233.        
  234.         if(attributeName.equals(ConfigurazionePdD.MSG_DIAGNOSTICI_SEVERITA_LIVELLO_LOG4J))
  235.             return this.msgDiagnosticiLivelloSeveritaLog4J;
  236.        
  237.         if(attributeName.equals(ConfigurazionePdD.MSG_DIAGNOSTICI_APPENDER))
  238.             return this.msgDiagnosticiAppender;
  239.        
  240.         if(attributeName.equals(ConfigurazionePdD.TRACCIAMENTO_ABILITATO))
  241.             return this.tracciamentoAbilitato;
  242.        
  243.         if(attributeName.equals(ConfigurazionePdD.DUMP_BINARIO_PD_ABILITATO))
  244.             return this.dumpBinarioPDAbilitato;
  245.        
  246.         if(attributeName.equals(ConfigurazionePdD.DUMP_BINARIO_PA_ABILITATO))
  247.             return this.dumpBinarioPAAbilitato;
  248.        
  249.         if(attributeName.equals(ConfigurazionePdD.TRACCIAMENTO_APPENDER))
  250.             return this.tracciamentoAppender;
  251.        
  252.         if(attributeName.equals(ConfigurazionePdD.LOG4J_DIAGNOSTICA_ABILITATO))
  253.             return this.log4jDiagnosticaAbilitato;
  254.        
  255.         if(attributeName.equals(ConfigurazionePdD.LOG4J_OPENSPCOOP_ABILITATO))
  256.             return this.log4jOpenSPCoopAbilitato;
  257.        
  258.         if(attributeName.equals(ConfigurazionePdD.LOG4J_INTEGRATION_MANAGER_ABILITATO))
  259.             return this.log4jIntegrationManagerAbilitato;
  260.        
  261.         if(attributeName.equals(ConfigurazionePdD.LOG4J_TRACCIAMENTO_ABILITATO))
  262.             return this.log4jTracciamentoAbilitato;
  263.        
  264.         if(attributeName.equals(ConfigurazionePdD.LOG4J_DUMP_ABILITATO))
  265.             return this.log4jDumpAbilitato;
  266.        
  267.         if(attributeName.equals(ConfigurazionePdD.ERRORI_STATUS_CODE_ABILITATO))
  268.             return Costanti.isTRANSACTION_ERROR_STATUS_ABILITATO();
  269.        
  270.         if(attributeName.equals(ConfigurazionePdD.ERRORI_INSTANCE_ID_ABILITATO))
  271.             return Costanti.isTRANSACTION_ERROR_INSTANCE_ID_ABILITATO();
  272.        
  273.         if(attributeName.equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_BAD_REQUEST))
  274.             return ErroriProperties.isFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_BAD_REQUEST();
  275.        
  276.         if(attributeName.equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_BAD_RESPONSE))
  277.             return ErroriProperties.isFORCE_SPECIFIC_ERROR_TYPE_FOR_BAD_RESPONSE();
  278.        
  279.         if(attributeName.equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_RESPONSE_ERROR))
  280.             return ErroriProperties.isFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_RESPONSE_ERROR();
  281.                        
  282.         if(attributeName.equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_ERROR))
  283.             return ErroriProperties.isFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_ERROR();
  284.        
  285.         if(attributeName.equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_DETAILS))
  286.             return Costanti.isTRANSACTION_FORCE_SPECIFIC_ERROR_DETAILS();

  287.         if(attributeName.equals(ConfigurazionePdD.ERRORI_SOAP_USE_GOVWAY_STATUS_AS_FAULT_CODE))
  288.             return Costanti.isTRANSACTION_ERROR_SOAP_USE_GOVWAY_STATUS_AS_FAULT_CODE();
  289.        
  290.         if(attributeName.equals(ConfigurazionePdD.ERRORI_SOAP_GENERATE_HTTP_HEADER_GOVWAY_CODE))
  291.             return Costanti.isTRANSACTION_ERROR_SOAP_GENERATE_HTTP_HEADER_GOVWAY_CODE();
  292.        
  293.         if(attributeName.equals(ConfigurazionePdD.TIMER_CONSEGNA_CONTENUTI_APPLICATIVI))
  294.             return TimerConsegnaContenutiApplicativi.getSTATE().name();
  295.        
  296.         if(attributeName.equals(ConfigurazionePdD.TIMER_EVENTI))
  297.             return TimerEventiThread.getSTATE().name();
  298.        
  299.         if(attributeName.equals(ConfigurazionePdD.TIMER_FILE_SYSTEM_RECOVERY))
  300.             return TimerFileSystemRecoveryThread.getSTATE().name();
  301.        
  302.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_BUSTE_ONEWAY_NON_RISCONTRATE))
  303.             return TimerGestoreBusteNonRiscontrateLib.getSTATE_ONEWAY().name();
  304.        
  305.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_BUSTE_ASINCRONE_NON_RISCONTRATE))
  306.             return TimerGestoreBusteNonRiscontrateLib.getSTATE_ASINCRONI().name();
  307.        
  308.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_ELIMINATI))
  309.             return TimerGestoreMessaggiLib.getSTATE_MESSAGGI_ELIMINATI().name();
  310.        
  311.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_SCADUTI))
  312.             return TimerGestoreMessaggiLib.getSTATE_MESSAGGI_SCADUTI().name();
  313.        
  314.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_NON_GESTITI))
  315.             return TimerGestoreMessaggiLib.getSTATE_MESSAGGI_NON_GESTITI().name();
  316.        
  317.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_CORRELAZIONE_APPLICATIVA))
  318.             return TimerGestoreMessaggiLib.getSTATE_CORRELAZIONE_APPLICATIVA().name();
  319.        
  320.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_VERIFICA_CONNESSIONI_ATTIVE))
  321.             return TimerGestoreMessaggiLib.getSTATE_VERIFICA_CONNESSIONI_ATTIVE().name();
  322.        
  323.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_PULIZIA_MESSAGGI_ANOMALI))
  324.             return TimerGestorePuliziaMessaggiAnomaliLib.getSTATE().name();
  325.        
  326.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_REPOSITORY_BUSTE))
  327.             return TimerGestoreRepositoryBusteLib.getSTATE().name();
  328.        
  329.         if(attributeName.equals(ConfigurazionePdD.TIMER_MONITORAGGIO_RISORSE_THREAD))
  330.             return TimerMonitoraggioRisorseThread.getSTATE().name();
  331.        
  332.         if(attributeName.equals(ConfigurazionePdD.TIMER_REPOSITORY_STATEFUL_THREAD))
  333.             return TimerRepositoryStatefulThread.getSTATE().name();
  334.        
  335.         if(attributeName.equals(ConfigurazionePdD.TIMER_STATISTICHE_ORARIE))
  336.             return TimerStatisticheLib.getSTATE_STATISTICHE_ORARIE().name();
  337.        
  338.         if(attributeName.equals(ConfigurazionePdD.TIMER_STATISTICHE_GIORNALIERE))
  339.             return TimerStatisticheLib.getSTATE_STATISTICHE_GIORNALIERE().name();
  340.        
  341.         if(attributeName.equals(ConfigurazionePdD.TIMER_STATISTICHE_SETTIMANALI))
  342.             return TimerStatisticheLib.getSTATE_STATISTICHE_SETTIMANALI().name();
  343.        
  344.         if(attributeName.equals(ConfigurazionePdD.TIMER_STATISTICHE_MENSILI))
  345.             return TimerStatisticheLib.getSTATE_STATISTICHE_MENSILI().name();
  346.        
  347.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_CHIAVI_PDND))
  348.             return TimerGestoreChiaviPDNDLib.getState().name();
  349.        
  350.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_CACHE_CHIAVI_PDND))
  351.             return TimerGestoreCacheChiaviPDNDLib.getState().name();
  352.        
  353.         if(attributeName.equals(ConfigurazionePdD.TIMER_GESTORE_OPERAZIONI_REMOTE))
  354.             return TimerGestoreOperazioniRemoteLib.getState().name();
  355.        
  356.         if(attributeName.equals(ConfigurazionePdD.TIMER_SVECCHIAMENTO_OPERAZIONI_REMOTE))
  357.             return TimerSvecchiamentoOperazioniRemoteLib.getState().name();
  358.        
  359.         if(attributeName.equals(ConfigurazionePdD.TIMER_THRESHOLD_THREAD))
  360.             return TimerThresholdThread.getSTATE().name();
  361.        
  362.         if(attributeName.equals(ConfigurazionePdD.TIMER_CLUSTER_DINAMICO))
  363.             return TimerClusterDinamicoThread.getSTATE().name();
  364.                
  365.         throw new AttributeNotFoundException("Attributo "+attributeName+" non trovato");
  366.     }
  367.    
  368.     /** getAttributes */
  369.     @Override
  370.     public AttributeList getAttributes(String [] attributesNames){
  371.        
  372.         if(attributesNames==null)
  373.             throw new IllegalArgumentException("Array nullo");
  374.        
  375.         AttributeList list = new AttributeList();
  376.         for (int i=0; i<attributesNames.length; i++){
  377.             try{
  378.                 list.add(new Attribute(attributesNames[i],getAttribute(attributesNames[i])));
  379.             }catch(JMException ex){
  380.                 // ignore
  381.             }
  382.         }
  383.         return list;
  384.     }
  385.    
  386.     /** setAttribute */
  387.     @Override
  388.     public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException{
  389.        
  390.         if( attribute==null )
  391.             throw new IllegalArgumentException("Il nome dell'attributo e' nullo");
  392.        
  393.         try{
  394.            
  395.             if(attribute.getName().equals(JMXUtils.CACHE_ATTRIBUTE_ABILITATA)){
  396.                 boolean v = (Boolean) attribute.getValue();
  397.                 if(v){
  398.                     // la cache DEVE essere abilitata
  399.                     if(!this.cacheAbilitata){
  400.                         this.abilitaCache();
  401.                     }
  402.                 }
  403.                 else{
  404.                     // la cache DEVE essere disabilitata
  405.                     if(this.cacheAbilitata){
  406.                         this.disabilitaCache();
  407.                     }
  408.                 }
  409.             }
  410.            
  411.             else if(attribute.getName().equals(ConfigurazionePdD.MSG_DIAGNOSTICI_SEVERITA_LIVELLO))
  412.                 this.setMsgDiagnosticiLivelloSeverita( (String) attribute.getValue() );
  413.            
  414.             else if(attribute.getName().equals(ConfigurazionePdD.MSG_DIAGNOSTICI_SEVERITA_LIVELLO_LOG4J))
  415.                 this.setMsgDiagnosticiLivelloSeveritaLog4J( (String) attribute.getValue() );
  416.            
  417.             else if(attribute.getName().equals(ConfigurazionePdD.MSG_DIAGNOSTICI_APPENDER))
  418.                 this.msgDiagnosticiAppender = (String[]) attribute.getValue();
  419.            
  420.             else if(attribute.getName().equals(ConfigurazionePdD.TRACCIAMENTO_ABILITATO))
  421.                 this.setTracciamentoAbilitato((Boolean) attribute.getValue());
  422.            
  423.             else if(attribute.getName().equals(ConfigurazionePdD.DUMP_BINARIO_PD_ABILITATO))
  424.                 this.setDumpBinarioPD((Boolean) attribute.getValue());
  425.            
  426.             else if(attribute.getName().equals(ConfigurazionePdD.DUMP_BINARIO_PA_ABILITATO))
  427.                 this.setDumpBinarioPA((Boolean) attribute.getValue());
  428.            
  429.             else if(attribute.getName().equals(ConfigurazionePdD.TRACCIAMENTO_APPENDER))
  430.                 this.tracciamentoAppender = (String[]) attribute.getValue();
  431.            
  432.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_STATUS_CODE_ABILITATO))
  433.                 Costanti.setTRANSACTION_ERROR_STATUS_ABILITATO( (Boolean) attribute.getValue() );
  434.            
  435.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_INSTANCE_ID_ABILITATO))
  436.                 Costanti.setTRANSACTION_ERROR_INSTANCE_ID_ABILITATO( (Boolean) attribute.getValue() );
  437.            
  438.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_BAD_REQUEST))
  439.                 this.setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_BAD_REQUEST( (Boolean) attribute.getValue() );
  440.            
  441.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_BAD_RESPONSE))
  442.                 this.setFORCE_SPECIFIC_ERROR_TYPE_FOR_BAD_RESPONSE( (Boolean) attribute.getValue() );
  443.            
  444.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_RESPONSE_ERROR))
  445.                 this.setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_RESPONSE_ERROR( (Boolean) attribute.getValue() );
  446.                        
  447.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_ERROR))
  448.                 this.setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_ERROR( (Boolean) attribute.getValue() );

  449.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_DETAILS))
  450.                 Costanti.setTRANSACTION_FORCE_SPECIFIC_ERROR_DETAILS( (Boolean) attribute.getValue() );
  451.            
  452.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_SOAP_USE_GOVWAY_STATUS_AS_FAULT_CODE))
  453.                 Costanti.setTRANSACTION_ERROR_SOAP_USE_GOVWAY_STATUS_AS_FAULT_CODE( (Boolean) attribute.getValue() );
  454.            
  455.             else if(attribute.getName().equals(ConfigurazionePdD.ERRORI_SOAP_GENERATE_HTTP_HEADER_GOVWAY_CODE))
  456.                 Costanti.setTRANSACTION_ERROR_SOAP_GENERATE_HTTP_HEADER_GOVWAY_CODE( (Boolean) attribute.getValue() );
  457.            
  458.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_CONSEGNA_CONTENUTI_APPLICATIVI))
  459.                 TimerConsegnaContenutiApplicativi.setSTATE( getTimerState(attribute.getValue()) );
  460.            
  461.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_EVENTI))
  462.                 TimerEventiThread.setSTATE( getTimerState(attribute.getValue()) );
  463.            
  464.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_FILE_SYSTEM_RECOVERY))
  465.                 TimerFileSystemRecoveryThread.setSTATE( getTimerState(attribute.getValue()) );
  466.            
  467.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_BUSTE_ONEWAY_NON_RISCONTRATE))
  468.                 TimerGestoreBusteNonRiscontrateLib.setSTATE_ONEWAY( getTimerState(attribute.getValue()) );
  469.            
  470.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_BUSTE_ASINCRONE_NON_RISCONTRATE))
  471.                 TimerGestoreBusteNonRiscontrateLib.setSTATE_ASINCRONI( getTimerState(attribute.getValue()) );
  472.            
  473.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_ELIMINATI))
  474.                 TimerGestoreMessaggiLib.setSTATE_MESSAGGI_ELIMINATI( getTimerState(attribute.getValue()) );
  475.            
  476.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_SCADUTI))
  477.                 TimerGestoreMessaggiLib.setSTATE_MESSAGGI_SCADUTI( getTimerState(attribute.getValue()) );
  478.            
  479.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_NON_GESTITI))
  480.                 TimerGestoreMessaggiLib.setSTATE_MESSAGGI_NON_GESTITI( getTimerState(attribute.getValue()) );
  481.            
  482.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_CORRELAZIONE_APPLICATIVA))
  483.                 TimerGestoreMessaggiLib.setSTATE_CORRELAZIONE_APPLICATIVA( getTimerState(attribute.getValue()) );
  484.            
  485.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_VERIFICA_CONNESSIONI_ATTIVE))
  486.                 TimerGestoreMessaggiLib.setSTATE_VERIFICA_CONNESSIONI_ATTIVE( getTimerState(attribute.getValue()) );
  487.            
  488.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_PULIZIA_MESSAGGI_ANOMALI))
  489.                 TimerGestorePuliziaMessaggiAnomaliLib.setSTATE( getTimerState(attribute.getValue()) );
  490.            
  491.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_REPOSITORY_BUSTE))
  492.                 TimerGestoreRepositoryBusteLib.setSTATE( getTimerState(attribute.getValue()) );
  493.            
  494.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_MONITORAGGIO_RISORSE_THREAD))
  495.                 TimerMonitoraggioRisorseThread.setSTATE( getTimerState(attribute.getValue()) );
  496.            
  497.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_REPOSITORY_STATEFUL_THREAD))
  498.                 TimerRepositoryStatefulThread.setSTATE( getTimerState(attribute.getValue()) );
  499.            
  500.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_STATISTICHE_ORARIE))
  501.                 TimerStatisticheLib.setSTATE_STATISTICHE_ORARIE( getTimerState(attribute.getValue()) );
  502.            
  503.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_STATISTICHE_GIORNALIERE))
  504.                 TimerStatisticheLib.setSTATE_STATISTICHE_GIORNALIERE( getTimerState(attribute.getValue()) );
  505.            
  506.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_STATISTICHE_SETTIMANALI))
  507.                 TimerStatisticheLib.setSTATE_STATISTICHE_SETTIMANALI( getTimerState(attribute.getValue()) );
  508.            
  509.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_STATISTICHE_MENSILI))
  510.                 TimerStatisticheLib.setSTATE_STATISTICHE_MENSILI( getTimerState(attribute.getValue()) );
  511.            
  512.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_CHIAVI_PDND))
  513.                 TimerGestoreChiaviPDNDLib.setState( getTimerState(attribute.getValue()) );
  514.            
  515.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_CACHE_CHIAVI_PDND))
  516.                 TimerGestoreCacheChiaviPDNDLib.setState( getTimerState(attribute.getValue()) );
  517.            
  518.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_GESTORE_OPERAZIONI_REMOTE))
  519.                 TimerGestoreOperazioniRemoteLib.setState( getTimerState(attribute.getValue()) );
  520.            
  521.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_SVECCHIAMENTO_OPERAZIONI_REMOTE))
  522.                 TimerSvecchiamentoOperazioniRemoteLib.setState( getTimerState(attribute.getValue()) );
  523.            
  524.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_THRESHOLD_THREAD))
  525.                 TimerThresholdThread.setSTATE( getTimerState(attribute.getValue()) );
  526.            
  527.             else if(attribute.getName().equals(ConfigurazionePdD.TIMER_CLUSTER_DINAMICO))
  528.                 TimerClusterDinamicoThread.setSTATE( getTimerState(attribute.getValue()) );
  529.            
  530.             else
  531.                 throw new AttributeNotFoundException("Attributo "+attribute.getName()+" non trovato");
  532.            
  533.         }catch(ClassCastException ce){
  534.             throw new InvalidAttributeValueException("il tipo "+attribute.getValue().getClass()+" dell'attributo "+attribute.getName()+" non e' valido");
  535.         }catch(JMException j){
  536.             throw new MBeanException(j);
  537.         }
  538.        
  539.     }
  540.     private TimerState getTimerState(Object o) throws ClassCastException {
  541.         TimerState state = TimerState.valueOf((String)o);
  542.         if(state==null) {
  543.             throw new ClassCastException("Valore indicato '"+o+"' non valido");
  544.         }
  545.         if(TimerState.OFF.equals(state)) {
  546.             throw new ClassCastException("Valore indicato '"+o+"' non supportato");
  547.         }
  548.         return state;
  549.     }
  550.    
  551.     /** setAttributes */
  552.     @Override
  553.     public AttributeList setAttributes(AttributeList list){
  554.        
  555.         if(list==null)
  556.             throw new IllegalArgumentException("Lista degli attributi e' nulla");
  557.        
  558.         AttributeList ret = new AttributeList();
  559.         Iterator<?> it = ret.iterator();
  560.        
  561.         while(it.hasNext()){
  562.             try{
  563.                 Attribute attribute = (Attribute) it.next();
  564.                 setAttribute(attribute);
  565.                 ret.add(attribute);
  566.             }catch(JMException ex){
  567.                 // ignore
  568.             }
  569.         }
  570.        
  571.         return ret;
  572.        
  573.     }
  574.    
  575.     /** invoke */
  576.     @Override
  577.     public Object invoke(String actionName, Object[]params, String[]signature) throws MBeanException,ReflectionException{
  578.        
  579.         if( (actionName==null) || (actionName.equals("")) )
  580.             throw new IllegalArgumentException("Nessuna operazione definita");
  581.        
  582.         if(actionName.equals(JMXUtils.CACHE_METHOD_NAME_RESET)){
  583.             return this.resetCache();
  584.         }
  585.        
  586.         if(actionName.equals(JMXUtils.CACHE_METHOD_NAME_PREFILL)){
  587.             return this.prefillCache();
  588.         }
  589.        
  590.         if(actionName.equals(JMXUtils.CACHE_METHOD_NAME_PRINT_STATS)){
  591.             return this.printStatCache();
  592.         }
  593.                
  594.         if(actionName.equals(JMXUtils.CACHE_METHOD_NAME_DISABILITA)){
  595.             return this.disabilitaCacheConEsito();
  596.         }
  597.        
  598.         if(actionName.equals(JMXUtils.CACHE_METHOD_NAME_ABILITA)){
  599.             if(params.length != 4)
  600.                 throw new MBeanException(new Exception("["+JMXUtils.CACHE_METHOD_NAME_ABILITA+"] Lunghezza parametri non corretta: "+params.length));
  601.            
  602.             Long param1 = null;
  603.             if(params[0]!=null && !"".equals(params[0])){
  604.                 param1 = (Long)params[0];
  605.                 if(param1<0){
  606.                     param1 = null;
  607.                 }
  608.             }
  609.            
  610.             Boolean param2 = null;
  611.             if(params[1]!=null && !"".equals(params[1])){
  612.                 param2 = (Boolean)params[1];
  613.             }
  614.            
  615.             Long param3 = null;
  616.             if(params[2]!=null && !"".equals(params[2])){
  617.                 param3 = (Long)params[2];
  618.                 if(param3<0){
  619.                     param3 = null;
  620.                 }
  621.             }
  622.            
  623.             Long param4 = null;
  624.             if(params[3]!=null && !"".equals(params[3])){
  625.                 param4 = (Long)params[3];
  626.                 if(param4<0){
  627.                     param4 = null;
  628.                 }
  629.             }
  630.                    
  631.             return this.abilitaCache(param1, param2, param3, param4 );
  632.         }
  633.        
  634.         if(actionName.equals(JMXUtils.CACHE_METHOD_NAME_LIST_KEYS)){
  635.             return this.listKeysCache();
  636.         }
  637.        
  638.         if(actionName.equals(JMXUtils.CACHE_METHOD_NAME_GET_OBJECT)){
  639.            
  640.             if(params.length != 1)
  641.                 throw new MBeanException(new Exception("["+JMXUtils.CACHE_METHOD_NAME_GET_OBJECT+"] Lunghezza parametri non corretta: "+params.length));
  642.            
  643.             String param1 = null;
  644.             if(params[0]!=null && !"".equals(params[0])){
  645.                 param1 = (String)params[0];
  646.             }
  647.            
  648.             return this.getObjectCache(param1);
  649.         }
  650.        
  651.         if(actionName.equals(JMXUtils.CACHE_METHOD_NAME_REMOVE_OBJECT)){
  652.            
  653.             if(params.length != 1)
  654.                 throw new MBeanException(new Exception("["+JMXUtils.CACHE_METHOD_NAME_REMOVE_OBJECT+"] Lunghezza parametri non corretta: "+params.length));
  655.            
  656.             String param1 = null;
  657.             if(params[0]!=null && !"".equals(params[0])){
  658.                 param1 = (String)params[0];
  659.             }
  660.            
  661.             return this.removeObjectCache(param1);
  662.         }
  663.            
  664.         if(actionName.equals(CHECK_CONNETTORE_BY_ID)){
  665.             if(params.length != 1)
  666.                 throw new MBeanException(new Exception("["+CHECK_CONNETTORE_BY_ID+"] Lunghezza parametri non corretta: "+params.length));
  667.            
  668.             Long param1 = null;
  669.             if(params[0]!=null && !"".equals(params[0])){
  670.                 if(params[0] instanceof Long) {
  671.                     param1 = (Long)params[0];
  672.                 }
  673.                 else {
  674.                     param1 = Long.valueOf(params[0].toString());
  675.                 }
  676.                 if(param1<0){
  677.                     param1 = null;
  678.                 }
  679.             }
  680.            
  681.             if(param1==null) {
  682.                 throw new MBeanException(new Exception("["+CHECK_CONNETTORE_BY_ID+"] "+PARAMETRO_NON_FORNITO));
  683.             }
  684.             return this.checkConnettoreById(param1);
  685.         }
  686.        
  687.         if(actionName.equals(CHECK_CONNETTORE_BY_NOME)){
  688.             if(params.length != 1)
  689.                 throw new MBeanException(new Exception("["+CHECK_CONNETTORE_BY_NOME+"] Lunghezza parametri non corretta: "+params.length));
  690.            
  691.             String param1 = null;
  692.             if(params[0]!=null && !"".equals(params[0])){
  693.                 param1 = (String)params[0];
  694.             }
  695.             return this.checkConnettoreByNome(param1);
  696.         }
  697.        
  698.         if(actionName.equals(CHECK_CONNETTORE_TOKEN_POLICY_VALIDATION)){
  699.             if(params.length != 1 && params.length != 2)
  700.                 throw new MBeanException(new Exception("["+CHECK_CONNETTORE_TOKEN_POLICY_VALIDATION+"] Lunghezza parametri non corretta: "+params.length));
  701.            
  702.             String param1 = null;
  703.             if(params[0]!=null && !"".equals(params[0])){
  704.                 param1 = (String)params[0];
  705.             }
  706.             if(params.length==1) {
  707.                 return this.checkConnettoreTokenPolicyValidazione(param1);
  708.             }
  709.             else {
  710.                 String param2 = null;
  711.                 if(params[1]!=null && !"".equals(params[1])){
  712.                     param2 = (String)params[1];
  713.                 }
  714.                 return this.checkConnettoreTokenPolicyValidazione(param1,param2);
  715.             }
  716.         }
  717.        
  718.         if(actionName.equals(CHECK_CONNETTORE_TOKEN_POLICY_RETRIEVE)){
  719.             if(params.length != 1)
  720.                 throw new MBeanException(new Exception("["+CHECK_CONNETTORE_TOKEN_POLICY_RETRIEVE+"] Lunghezza parametri non corretta: "+params.length));
  721.            
  722.             String param1 = null;
  723.             if(params[0]!=null && !"".equals(params[0])){
  724.                 param1 = (String)params[0];
  725.             }
  726.             return this.checkConnettoreTokenPolicyNegoziazione(param1);
  727.         }
  728.        
  729.         if(actionName.equals(CHECK_CONNETTORE_ATTRIBUTE_AUTHORITY)){
  730.             if(params.length != 1)
  731.                 throw new MBeanException(new Exception("["+CHECK_CONNETTORE_ATTRIBUTE_AUTHORITY+"] Lunghezza parametri non corretta: "+params.length));
  732.            
  733.             String param1 = null;
  734.             if(params[0]!=null && !"".equals(params[0])){
  735.                 param1 = (String)params[0];
  736.             }
  737.             return this.checkConnettoreAttributeAuthority(param1);
  738.         }
  739.        
  740.         if(actionName.equals(GET_CERTIFICATI_CONNETTORE_BY_ID)){
  741.             if(params.length != 1)
  742.                 throw new MBeanException(new Exception("["+GET_CERTIFICATI_CONNETTORE_BY_ID+"] Lunghezza parametri non corretta: "+params.length));
  743.            
  744.             Long param1 = null;
  745.             if(params[0]!=null && !"".equals(params[0])){
  746.                 if(params[0] instanceof Long) {
  747.                     param1 = (Long)params[0];
  748.                 }
  749.                 else {
  750.                     param1 = Long.valueOf(params[0].toString());
  751.                 }
  752.                 if(param1<0){
  753.                     param1 = null;
  754.                 }
  755.             }
  756.            
  757.             if(param1==null) {
  758.                 throw new MBeanException(new Exception("["+GET_CERTIFICATI_CONNETTORE_BY_ID+"] "+PARAMETRO_NON_FORNITO));
  759.             }
  760.             return this.getCertificatiConnettoreById(param1);
  761.         }
  762.        
  763.         if(actionName.equals(GET_CERTIFICATI_CONNETTORE_BY_NOME)){
  764.             if(params.length != 1)
  765.                 throw new MBeanException(new Exception("["+GET_CERTIFICATI_CONNETTORE_BY_NOME+"] Lunghezza parametri non corretta: "+params.length));
  766.            
  767.             String param1 = null;
  768.             if(params[0]!=null && !"".equals(params[0])){
  769.                 param1 = (String)params[0];
  770.             }
  771.             return this.getCertificatiConnettoreByNome(param1);
  772.         }
  773.        
  774.         if(actionName.equals(GET_CERTIFICATI_TOKEN_POLICY_VALIDATION)){
  775.             if(params.length != 1 && params.length != 2)
  776.                 throw new MBeanException(new Exception("["+GET_CERTIFICATI_TOKEN_POLICY_VALIDATION+"] Lunghezza parametri non corretta: "+params.length));
  777.            
  778.             String param1 = null;
  779.             if(params[0]!=null && !"".equals(params[0])){
  780.                 param1 = (String)params[0];
  781.             }
  782.            
  783.             if(params.length==1) {
  784.                 return this.getCertificatiConnettoreTokenPolicyValidazione(param1);
  785.             }
  786.             else {
  787.                 String param2 = null;
  788.                 if(params[1]!=null && !"".equals(params[1])){
  789.                     param2 = (String)params[1];
  790.                 }
  791.                 return this.getCertificatiConnettoreTokenPolicyValidazione(param1,param2);
  792.             }
  793.            
  794.         }
  795.        
  796.         if(actionName.equals(GET_CERTIFICATI_TOKEN_POLICY_RETRIEVE)){
  797.             if(params.length != 1)
  798.                 throw new MBeanException(new Exception("["+GET_CERTIFICATI_TOKEN_POLICY_RETRIEVE+"] Lunghezza parametri non corretta: "+params.length));
  799.            
  800.             String param1 = null;
  801.             if(params[0]!=null && !"".equals(params[0])){
  802.                 param1 = (String)params[0];
  803.             }
  804.             return this.getCertificatiConnettoreTokenPolicyNegoziazione(param1);
  805.         }
  806.        
  807.         if(actionName.equals(GET_CERTIFICATI_ATTRIBUTE_AUTHORITY)){
  808.             if(params.length != 1)
  809.                 throw new MBeanException(new Exception("["+GET_CERTIFICATI_ATTRIBUTE_AUTHORITY+"] Lunghezza parametri non corretta: "+params.length));
  810.            
  811.             String param1 = null;
  812.             if(params[0]!=null && !"".equals(params[0])){
  813.                 param1 = (String)params[0];
  814.             }
  815.             return this.getCertificatiConnettoreAttributeAuthority(param1);
  816.         }
  817.        
  818.         if(actionName.equals(CHECK_CERTIFICATI_CONNETTORE_HTTPS_BY_ID)){
  819.             if(params.length != 2)
  820.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_CONNETTORE_HTTPS_BY_ID+"] Lunghezza parametri non corretta: "+params.length));
  821.            
  822.             Long param1 = null;
  823.             if(params[0]!=null && !"".equals(params[0])){
  824.                 if(params[0] instanceof Long) {
  825.                     param1 = (Long)params[0];
  826.                 }
  827.                 else {
  828.                     param1 = Long.valueOf(params[0].toString());
  829.                 }
  830.                 if(param1<0){
  831.                     param1 = null;
  832.                 }
  833.             }
  834.            
  835.             int soglia = -1;
  836.             if(params[1] instanceof Integer) {
  837.                 soglia = (Integer)params[1];
  838.             }
  839.             else {
  840.                 soglia = Integer.valueOf(params[1].toString());
  841.             }
  842.            
  843.             if(param1==null) {
  844.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_CONNETTORE_HTTPS_BY_ID+"] "+PARAMETRO_NON_FORNITO));
  845.             }
  846.             return this.checkCertificatiConnettoreHttpsById(param1, soglia);
  847.         }
  848.        
  849.         if(actionName.equals(CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_ID)){
  850.             if(params.length != 2)
  851.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_ID+"] Lunghezza parametri non corretta: "+params.length));
  852.            
  853.             Long param1 = null;
  854.             if(params[0]!=null && !"".equals(params[0])){
  855.                 if(params[0] instanceof Long) {
  856.                     param1 = (Long)params[0];
  857.                 }
  858.                 else {
  859.                     param1 = Long.valueOf(params[0].toString());
  860.                 }
  861.                 if(param1<0){
  862.                     param1 = null;
  863.                 }
  864.             }
  865.            
  866.             int soglia = -1;
  867.             if(params[1] instanceof Integer) {
  868.                 soglia = (Integer)params[1];
  869.             }
  870.             else {
  871.                 soglia = Integer.valueOf(params[1].toString());
  872.             }
  873.            
  874.             if(param1==null) {
  875.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_ID+"] "+PARAMETRO_NON_FORNITO));
  876.             }
  877.             return this.checkCertificatoApplicativoById(param1, soglia);
  878.         }
  879.         if(actionName.equals(CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_NOME)){
  880.             if(params.length != 2)
  881.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_NOME+"] Lunghezza parametri non corretta: "+params.length));
  882.            
  883.             String param1 = null;
  884.             if(params[0]!=null && !"".equals(params[0])){
  885.                 param1 = (String)params[0];
  886.             }
  887.            
  888.             int soglia = -1;
  889.             if(params[1] instanceof Integer) {
  890.                 soglia = (Integer)params[1];
  891.             }
  892.             else {
  893.                 soglia = Integer.valueOf(params[1].toString());
  894.             }
  895.            
  896.             if(param1==null) {
  897.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_NOME+"] "+PARAMETRO_NON_FORNITO));
  898.             }
  899.             return this.checkCertificatoApplicativoByNome(param1, soglia);
  900.         }
  901.        
  902.         if(actionName.equals(CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_ID)){
  903.             if(params.length != 2)
  904.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_ID+"] Lunghezza parametri non corretta: "+params.length));
  905.            
  906.             Long param1 = null;
  907.             if(params[0]!=null && !"".equals(params[0])){
  908.                 if(params[0] instanceof Long) {
  909.                     param1 = (Long)params[0];
  910.                 }
  911.                 else {
  912.                     param1 = Long.valueOf(params[0].toString());
  913.                 }
  914.                 if(param1<0){
  915.                     param1 = null;
  916.                 }
  917.             }
  918.            
  919.             int soglia = -1;
  920.             if(params[1] instanceof Integer) {
  921.                 soglia = (Integer)params[1];
  922.             }
  923.             else {
  924.                 soglia = Integer.valueOf(params[1].toString());
  925.             }
  926.            
  927.             if(param1==null) {
  928.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_ID+"] "+PARAMETRO_NON_FORNITO));
  929.             }
  930.             return this.checkCertificatoModiApplicativoById(param1, soglia);
  931.         }
  932.         if(actionName.equals(CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_NOME)){
  933.             if(params.length != 2)
  934.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_NOME+"] Lunghezza parametri non corretta: "+params.length));
  935.            
  936.             String param1 = null;
  937.             if(params[0]!=null && !"".equals(params[0])){
  938.                 param1 = (String)params[0];
  939.             }
  940.            
  941.             int soglia = -1;
  942.             if(params[1] instanceof Integer) {
  943.                 soglia = (Integer)params[1];
  944.             }
  945.             else {
  946.                 soglia = Integer.valueOf(params[1].toString());
  947.             }
  948.            
  949.             if(param1==null) {
  950.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_NOME+"] "+PARAMETRO_NON_FORNITO));
  951.             }
  952.             return this.checkCertificatoModiApplicativoByNome(param1, soglia);
  953.         }
  954.        
  955.         if(actionName.equals(CHECK_CERTIFICATI_CONFIGURAZIONE_JVM)){
  956.             if(params.length != 1)
  957.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_CONFIGURAZIONE_JVM+"] Lunghezza parametri non corretta: "+params.length));
  958.            
  959.             int soglia = -1;
  960.             if(params[0] instanceof Integer) {
  961.                 soglia = (Integer)params[0];
  962.             }
  963.             else {
  964.                 soglia = Integer.valueOf(params[0].toString());
  965.             }
  966.            
  967.             return this.checkCertificatiJvm(soglia);
  968.         }
  969.         if(actionName.equals(CHECK_PROXY_CONFIGURAZIONE_JVM)){
  970.             return this.checkProxyJvm();
  971.         }
  972.        
  973.         if(actionName.equals(CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_VALIDAZIONE)){
  974.             if(params.length != 2 && params.length != 3)
  975.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_VALIDAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  976.            
  977.             String param1 = null;
  978.             if(params[0]!=null && !"".equals(params[0])){
  979.                 param1 = (String)params[0];
  980.             }
  981.            
  982.             String tipo = null;
  983.             if(params.length == 3 &&
  984.                 params[1]!=null && !"".equals(params[1])){
  985.                 tipo = (String)params[1];
  986.             }
  987.            
  988.             int soglia = -1;
  989.             if(params.length == 2) {
  990.                 if(params[1] instanceof Integer) {
  991.                     soglia = (Integer)params[1];
  992.                 }
  993.                 else {
  994.                     soglia = Integer.valueOf(params[1].toString());
  995.                 }
  996.             }
  997.             else {
  998.                 if(params[2] instanceof Integer) {
  999.                     soglia = (Integer)params[2];
  1000.                 }
  1001.                 else {
  1002.                     soglia = Integer.valueOf(params[2].toString());
  1003.                 }
  1004.             }
  1005.            
  1006.             if(params.length == 3) {
  1007.                 return this.checkCertificatiConnettoreHttpsTokenPolicyValidazione(param1, tipo, soglia);
  1008.             }
  1009.             else {
  1010.                 return this.checkCertificatiConnettoreHttpsTokenPolicyValidazione(param1, soglia);
  1011.             }
  1012.         }
  1013.         if(actionName.equals(CHECK_CERTIFICATI_VALIDAZIONE_JWT_TOKEN_POLICY_VALIDAZIONE)){
  1014.             if(params.length != 2)
  1015.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_VALIDAZIONE_JWT_TOKEN_POLICY_VALIDAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1016.            
  1017.             String param1 = null;
  1018.             if(params[0]!=null && !"".equals(params[0])){
  1019.                 param1 = (String)params[0];
  1020.             }
  1021.            
  1022.             int soglia = -1;
  1023.             if(params[1] instanceof Integer) {
  1024.                 soglia = (Integer)params[1];
  1025.             }
  1026.             else {
  1027.                 soglia = Integer.valueOf(params[1].toString());
  1028.             }
  1029.            
  1030.             return this.checkCertificatiValidazioneJwtTokenPolicyValidazione(param1, soglia);
  1031.         }
  1032.         if(actionName.equals(CHECK_CERTIFICATI_FORWARD_TO_JWT_TOKEN_POLICY_VALIDAZIONE)){
  1033.             if(params.length != 2)
  1034.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_FORWARD_TO_JWT_TOKEN_POLICY_VALIDAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1035.            
  1036.             String param1 = null;
  1037.             if(params[0]!=null && !"".equals(params[0])){
  1038.                 param1 = (String)params[0];
  1039.             }
  1040.            
  1041.             int soglia = -1;
  1042.             if(params[1] instanceof Integer) {
  1043.                 soglia = (Integer)params[1];
  1044.             }
  1045.             else {
  1046.                 soglia = Integer.valueOf(params[1].toString());
  1047.             }
  1048.            
  1049.             return this.checkCertificatiForwardToJwtTokenPolicyValidazione(param1, soglia);
  1050.         }
  1051.        
  1052.         if(actionName.equals(CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_NEGOZIAZIONE)){
  1053.             if(params.length != 2)
  1054.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_NEGOZIAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1055.            
  1056.             String param1 = null;
  1057.             if(params[0]!=null && !"".equals(params[0])){
  1058.                 param1 = (String)params[0];
  1059.             }
  1060.            
  1061.             int soglia = -1;
  1062.             if(params[1] instanceof Integer) {
  1063.                 soglia = (Integer)params[1];
  1064.             }
  1065.             else {
  1066.                 soglia = Integer.valueOf(params[1].toString());
  1067.             }
  1068.            
  1069.             return this.checkCertificatiConnettoreHttpsTokenPolicyNegoziazione(param1, soglia);
  1070.         }
  1071.         if(actionName.equals(CHECK_CERTIFICATI_SIGNED_JWT_TOKEN_POLICY_NEGOZIAZIONE)){
  1072.             if(params.length != 2)
  1073.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_SIGNED_JWT_TOKEN_POLICY_NEGOZIAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1074.            
  1075.             String param1 = null;
  1076.             if(params[0]!=null && !"".equals(params[0])){
  1077.                 param1 = (String)params[0];
  1078.             }
  1079.            
  1080.             int soglia = -1;
  1081.             if(params[1] instanceof Integer) {
  1082.                 soglia = (Integer)params[1];
  1083.             }
  1084.             else {
  1085.                 soglia = Integer.valueOf(params[1].toString());
  1086.             }
  1087.            
  1088.             return this.checkCertificatiSignedJwtTokenPolicyNegoziazione(param1, soglia);
  1089.         }
  1090.        
  1091.         if(actionName.equals(CHECK_CERTIFICATI_CONNETTORE_HTTPS_ATTRIBUTE_AUTHORITY)){
  1092.             if(params.length != 2)
  1093.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_CONNETTORE_HTTPS_ATTRIBUTE_AUTHORITY+"] Lunghezza parametri non corretta: "+params.length));
  1094.            
  1095.             String param1 = null;
  1096.             if(params[0]!=null && !"".equals(params[0])){
  1097.                 param1 = (String)params[0];
  1098.             }
  1099.            
  1100.             int soglia = -1;
  1101.             if(params[1] instanceof Integer) {
  1102.                 soglia = (Integer)params[1];
  1103.             }
  1104.             else {
  1105.                 soglia = Integer.valueOf(params[1].toString());
  1106.             }
  1107.            
  1108.             return this.checkCertificatiConnettoreHttpsAttributeAuthority(param1, soglia);
  1109.         }
  1110.         if(actionName.equals(CHECK_CERTIFICATI_ATTRIBUTE_AUTHORITY_JWT_RICHIESTA)){
  1111.             if(params.length != 2)
  1112.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_ATTRIBUTE_AUTHORITY_JWT_RICHIESTA+"] Lunghezza parametri non corretta: "+params.length));
  1113.            
  1114.             String param1 = null;
  1115.             if(params[0]!=null && !"".equals(params[0])){
  1116.                 param1 = (String)params[0];
  1117.             }
  1118.            
  1119.             int soglia = -1;
  1120.             if(params[1] instanceof Integer) {
  1121.                 soglia = (Integer)params[1];
  1122.             }
  1123.             else {
  1124.                 soglia = Integer.valueOf(params[1].toString());
  1125.             }
  1126.            
  1127.             return this.checkCertificatiAttributeAuthorityJwtRichiesta(param1, soglia);
  1128.         }
  1129.         if(actionName.equals(CHECK_CERTIFICATI_ATTRIBUTE_AUTHORITY_JWT_RISPOSTA)){
  1130.             if(params.length != 2)
  1131.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_ATTRIBUTE_AUTHORITY_JWT_RISPOSTA+"] Lunghezza parametri non corretta: "+params.length));
  1132.            
  1133.             String param1 = null;
  1134.             if(params[0]!=null && !"".equals(params[0])){
  1135.                 param1 = (String)params[0];
  1136.             }
  1137.            
  1138.             int soglia = -1;
  1139.             if(params[1] instanceof Integer) {
  1140.                 soglia = (Integer)params[1];
  1141.             }
  1142.             else {
  1143.                 soglia = Integer.valueOf(params[1].toString());
  1144.             }
  1145.            
  1146.             return this.checkCertificatiAttributeAuthorityJwtRisposta(param1, soglia);
  1147.         }
  1148.        
  1149.         if(actionName.equals(CHECK_CERTIFICATI_MESSAGE_SECURITY_EROGAZIONE_BY_ID)){
  1150.             if(params.length != 2)
  1151.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_MESSAGE_SECURITY_EROGAZIONE_BY_ID+"] Lunghezza parametri non corretta: "+params.length));
  1152.            
  1153.             Long param1 = null;
  1154.             if(params[0]!=null && !"".equals(params[0])){
  1155.                 if(params[0] instanceof Long) {
  1156.                     param1 = (Long)params[0];
  1157.                 }
  1158.                 else {
  1159.                     param1 = Long.valueOf(params[0].toString());
  1160.                 }
  1161.                 if(param1<0){
  1162.                     param1 = null;
  1163.                 }
  1164.             }
  1165.            
  1166.             int soglia = -1;
  1167.             if(params[1] instanceof Integer) {
  1168.                 soglia = (Integer)params[1];
  1169.             }
  1170.             else {
  1171.                 soglia = Integer.valueOf(params[1].toString());
  1172.             }
  1173.            
  1174.             if(param1==null) {
  1175.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_MESSAGE_SECURITY_EROGAZIONE_BY_ID+"] parametro richiesto non fornito"));
  1176.             }
  1177.             return this.checkCertificatiMessageSecurityErogazioneById(param1, soglia);
  1178.         }
  1179.        
  1180.         if(actionName.equals(CHECK_CERTIFICATI_MESSAGE_SECURITY_FRUIZIONE_BY_ID)){
  1181.             if(params.length != 2)
  1182.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_MESSAGE_SECURITY_FRUIZIONE_BY_ID+"] Lunghezza parametri non corretta: "+params.length));
  1183.            
  1184.             Long param1 = null;
  1185.             if(params[0]!=null && !"".equals(params[0])){
  1186.                 if(params[0] instanceof Long) {
  1187.                     param1 = (Long)params[0];
  1188.                 }
  1189.                 else {
  1190.                     param1 = Long.valueOf(params[0].toString());
  1191.                 }
  1192.                 if(param1<0){
  1193.                     param1 = null;
  1194.                 }
  1195.             }
  1196.            
  1197.             int soglia = -1;
  1198.             if(params[1] instanceof Integer) {
  1199.                 soglia = (Integer)params[1];
  1200.             }
  1201.             else {
  1202.                 soglia = Integer.valueOf(params[1].toString());
  1203.             }
  1204.            
  1205.             if(param1==null) {
  1206.                 throw new MBeanException(new Exception("["+CHECK_CERTIFICATI_MESSAGE_SECURITY_FRUIZIONE_BY_ID+"] parametro richiesto non fornito"));
  1207.             }
  1208.             return this.checkCertificatiMessageSecurityFruizioneById(param1, soglia);
  1209.         }
  1210.        
  1211.         if(actionName.equals(ABILITA_PORTA_DELEGATA)){
  1212.             if(params.length != 1)
  1213.                 throw new MBeanException(new Exception("["+ABILITA_PORTA_DELEGATA+"] Lunghezza parametri non corretta: "+params.length));
  1214.            
  1215.             String param1 = null;
  1216.             if(params[0]!=null && !"".equals(params[0])){
  1217.                 param1 = (String)params[0];
  1218.             }
  1219.            
  1220.             return this.updateStatoPortaDelegata(param1, true);
  1221.         }
  1222.        
  1223.         if(actionName.equals(DISABILITA_PORTA_DELEGATA)){
  1224.             if(params.length != 1)
  1225.                 throw new MBeanException(new Exception("["+DISABILITA_PORTA_DELEGATA+"] Lunghezza parametri non corretta: "+params.length));
  1226.            
  1227.             String param1 = null;
  1228.             if(params[0]!=null && !"".equals(params[0])){
  1229.                 param1 = (String)params[0];
  1230.             }
  1231.            
  1232.             return this.updateStatoPortaDelegata(param1, false);
  1233.         }
  1234.        
  1235.         if(actionName.equals(ABILITA_PORTA_APPLICATIVA)){
  1236.             if(params.length != 1)
  1237.                 throw new MBeanException(new Exception("["+ABILITA_PORTA_APPLICATIVA+"] Lunghezza parametri non corretta: "+params.length));
  1238.            
  1239.             String param1 = null;
  1240.             if(params[0]!=null && !"".equals(params[0])){
  1241.                 param1 = (String)params[0];
  1242.             }
  1243.            
  1244.             return this.updateStatoPortaApplicativa(param1, true);
  1245.         }
  1246.        
  1247.         if(actionName.equals(DISABILITA_PORTA_APPLICATIVA)){
  1248.             if(params.length != 1)
  1249.                 throw new MBeanException(new Exception("["+DISABILITA_PORTA_APPLICATIVA+"] Lunghezza parametri non corretta: "+params.length));
  1250.            
  1251.             String param1 = null;
  1252.             if(params[0]!=null && !"".equals(params[0])){
  1253.                 param1 = (String)params[0];
  1254.             }
  1255.            
  1256.             return this.updateStatoPortaApplicativa(param1, false);
  1257.         }
  1258.        
  1259.         if(actionName.equals(ABILITA_CONNETTORE_MULTIPLO)){
  1260.             if(params.length != 2)
  1261.                 throw new MBeanException(new Exception("["+ABILITA_CONNETTORE_MULTIPLO+"] Lunghezza parametri non corretta: "+params.length));
  1262.            
  1263.             String param1 = null;
  1264.             if(params[0]!=null && !"".equals(params[0])){
  1265.                 param1 = (String)params[0];
  1266.             }
  1267.            
  1268.             String param2 = null;
  1269.             if(params[1]!=null && !"".equals(params[1])){
  1270.                 param2 = (String)params[1];
  1271.             }
  1272.            
  1273.             return this.updateStatoConnettoreMultiplo(param1, param2, true);
  1274.         }
  1275.        
  1276.         if(actionName.equals(DISABILITA_CONNETTORE_MULTIPLO)){
  1277.             if(params.length != 2)
  1278.                 throw new MBeanException(new Exception("["+DISABILITA_CONNETTORE_MULTIPLO+"] Lunghezza parametri non corretta: "+params.length));
  1279.            
  1280.             String param1 = null;
  1281.             if(params[0]!=null && !"".equals(params[0])){
  1282.                 param1 = (String)params[0];
  1283.             }
  1284.            
  1285.             String param2 = null;
  1286.             if(params[1]!=null && !"".equals(params[1])){
  1287.                 param2 = (String)params[1];
  1288.             }
  1289.            
  1290.             return this.updateStatoConnettoreMultiplo(param1, param2, false);
  1291.         }
  1292.        
  1293.         if(actionName.equals(ABILITA_CONNETTORE_MULTIPLO_USERNAME)){
  1294.             if(params.length != 3)
  1295.                 throw new MBeanException(new Exception("["+ABILITA_CONNETTORE_MULTIPLO_USERNAME+"] Lunghezza parametri non corretta: "+params.length));
  1296.            
  1297.             String param1 = null;
  1298.             if(params[0]!=null && !"".equals(params[0])){
  1299.                 param1 = (String)params[0];
  1300.             }
  1301.            
  1302.             String param2 = null;
  1303.             if(params[1]!=null && !"".equals(params[1])){
  1304.                 param2 = (String)params[1];
  1305.             }
  1306.            
  1307.             String param3 = null;
  1308.             if(params[2]!=null && !"".equals(params[2])){
  1309.                 param3 = (String)params[2];
  1310.             }
  1311.            
  1312.             return this.updateStatoConnettoreMultiplo(param1, param2, param3, true);
  1313.         }
  1314.        
  1315.         if(actionName.equals(DISABILITA_CONNETTORE_MULTIPLO_USERNAME)){
  1316.             if(params.length != 3)
  1317.                 throw new MBeanException(new Exception("["+DISABILITA_CONNETTORE_MULTIPLO_USERNAME+"] Lunghezza parametri non corretta: "+params.length));
  1318.            
  1319.             String param1 = null;
  1320.             if(params[0]!=null && !"".equals(params[0])){
  1321.                 param1 = (String)params[0];
  1322.             }
  1323.            
  1324.             String param2 = null;
  1325.             if(params[1]!=null && !"".equals(params[1])){
  1326.                 param2 = (String)params[1];
  1327.             }
  1328.            
  1329.             String param3 = null;
  1330.             if(params[2]!=null && !"".equals(params[2])){
  1331.                 param3 = (String)params[2];
  1332.             }
  1333.            
  1334.             return this.updateStatoConnettoreMultiplo(param1, param2, param3, false);
  1335.         }
  1336.        
  1337.         if(actionName.equals(ABILITA_SCHEDULING_CONNETTORE_MULTIPLO)){
  1338.             if(params.length != 2)
  1339.                 throw new MBeanException(new Exception("["+ABILITA_SCHEDULING_CONNETTORE_MULTIPLO+"] Lunghezza parametri non corretta: "+params.length));
  1340.            
  1341.             String param1 = null;
  1342.             if(params[0]!=null && !"".equals(params[0])){
  1343.                 param1 = (String)params[0];
  1344.             }
  1345.            
  1346.             String param2 = null;
  1347.             if(params[1]!=null && !"".equals(params[1])){
  1348.                 param2 = (String)params[1];
  1349.             }
  1350.            
  1351.             return this.updateSchedulingConnettoreMultiplo(param1, param2, true);
  1352.         }
  1353.        
  1354.         if(actionName.equals(DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO)){
  1355.             if(params.length != 2)
  1356.                 throw new MBeanException(new Exception("["+DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO+"] Lunghezza parametri non corretta: "+params.length));
  1357.            
  1358.             String param1 = null;
  1359.             if(params[0]!=null && !"".equals(params[0])){
  1360.                 param1 = (String)params[0];
  1361.             }
  1362.            
  1363.             String param2 = null;
  1364.             if(params[1]!=null && !"".equals(params[1])){
  1365.                 param2 = (String)params[1];
  1366.             }
  1367.            
  1368.             return this.updateSchedulingConnettoreMultiplo(param1, param2, false);
  1369.         }
  1370.        
  1371.         if(actionName.equals(ABILITA_SCHEDULING_CONNETTORE_MULTIPLO_USERNAME)){
  1372.             if(params.length != 3)
  1373.                 throw new MBeanException(new Exception("["+ABILITA_SCHEDULING_CONNETTORE_MULTIPLO_USERNAME+"] Lunghezza parametri non corretta: "+params.length));
  1374.            
  1375.             String param1 = null;
  1376.             if(params[0]!=null && !"".equals(params[0])){
  1377.                 param1 = (String)params[0];
  1378.             }
  1379.            
  1380.             String param2 = null;
  1381.             if(params[1]!=null && !"".equals(params[1])){
  1382.                 param2 = (String)params[1];
  1383.             }
  1384.            
  1385.             String param3 = null;
  1386.             if(params[2]!=null && !"".equals(params[2])){
  1387.                 param3 = (String)params[2];
  1388.             }
  1389.            
  1390.             return this.updateSchedulingConnettoreMultiplo(param1, param2, param3, true);
  1391.         }
  1392.        
  1393.         if(actionName.equals(DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO_USERNAME)){
  1394.             if(params.length != 3)
  1395.                 throw new MBeanException(new Exception("["+DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO_USERNAME+"] Lunghezza parametri non corretta: "+params.length));
  1396.            
  1397.             String param1 = null;
  1398.             if(params[0]!=null && !"".equals(params[0])){
  1399.                 param1 = (String)params[0];
  1400.             }
  1401.            
  1402.             String param2 = null;
  1403.             if(params[1]!=null && !"".equals(params[1])){
  1404.                 param2 = (String)params[1];
  1405.             }
  1406.            
  1407.             String param3 = null;
  1408.             if(params[2]!=null && !"".equals(params[2])){
  1409.                 param3 = (String)params[2];
  1410.             }
  1411.            
  1412.             return this.updateSchedulingConnettoreMultiplo(param1, param2, param3, false);
  1413.         }
  1414.        
  1415.         if(actionName.equals(ABILITA_SCHEDULING_CONNETTORE_MULTIPLO_RUNTIME)){
  1416.             if(params.length != 2)
  1417.                 throw new MBeanException(new Exception("["+ABILITA_SCHEDULING_CONNETTORE_MULTIPLO_RUNTIME+"] Lunghezza parametri non corretta: "+params.length));
  1418.            
  1419.             String param1 = null;
  1420.             if(params[0]!=null && !"".equals(params[0])){
  1421.                 param1 = (String)params[0];
  1422.             }
  1423.            
  1424.             String param2 = null;
  1425.             if(params[1]!=null && !"".equals(params[1])){
  1426.                 param2 = (String)params[1];
  1427.             }
  1428.            
  1429.             return this.updateSchedulingConnettoreMultiploMessaggiPresiInCarico(param1, param2, true);
  1430.         }
  1431.        
  1432.         if(actionName.equals(DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO_RUNTIME)){
  1433.             if(params.length != 2)
  1434.                 throw new MBeanException(new Exception("["+DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO_RUNTIME+"] Lunghezza parametri non corretta: "+params.length));
  1435.            
  1436.             String param1 = null;
  1437.             if(params[0]!=null && !"".equals(params[0])){
  1438.                 param1 = (String)params[0];
  1439.             }
  1440.            
  1441.             String param2 = null;
  1442.             if(params[1]!=null && !"".equals(params[1])){
  1443.                 param2 = (String)params[1];
  1444.             }
  1445.            
  1446.             return this.updateSchedulingConnettoreMultiploMessaggiPresiInCarico(param1, param2, false);
  1447.         }
  1448.        
  1449.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_ACCORDO_COOPERAZIONE)){
  1450.             if(params.length != 1)
  1451.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_ACCORDO_COOPERAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1452.            
  1453.             Long param1 = null;
  1454.             if(params[0]!=null && !"".equals(params[0])){
  1455.                 if(params[0] instanceof Long) {
  1456.                     param1 = (Long)params[0];
  1457.                 }
  1458.                 else {
  1459.                     param1 = Long.valueOf(params[0].toString());
  1460.                 }
  1461.                 if(param1<0){
  1462.                     param1 = null;
  1463.                 }
  1464.             }
  1465.            
  1466.             if(param1==null) {
  1467.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_ACCORDO_COOPERAZIONE+"] "+PARAMETRO_NON_FORNITO));
  1468.             }
  1469.             return this.ripulisciRiferimentiCacheAccordoCooperazione(param1);
  1470.         }
  1471.        
  1472.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_API)){
  1473.             if(params.length != 1)
  1474.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_API+"] Lunghezza parametri non corretta: "+params.length));
  1475.            
  1476.             Long param1 = null;
  1477.             if(params[0]!=null && !"".equals(params[0])){
  1478.                 if(params[0] instanceof Long) {
  1479.                     param1 = (Long)params[0];
  1480.                 }
  1481.                 else {
  1482.                     param1 = Long.valueOf(params[0].toString());
  1483.                 }
  1484.                 if(param1<0){
  1485.                     param1 = null;
  1486.                 }
  1487.             }
  1488.            
  1489.             if(param1==null) {
  1490.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_API+"] "+PARAMETRO_NON_FORNITO));
  1491.             }
  1492.             return this.ripulisciRiferimentiCacheApi(param1);
  1493.         }
  1494.        
  1495.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_EROGAZIONE)){
  1496.             if(params.length != 1)
  1497.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_EROGAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1498.            
  1499.             Long param1 = null;
  1500.             if(params[0]!=null && !"".equals(params[0])){
  1501.                 if(params[0] instanceof Long) {
  1502.                     param1 = (Long)params[0];
  1503.                 }
  1504.                 else {
  1505.                     param1 = Long.valueOf(params[0].toString());
  1506.                 }
  1507.                 if(param1<0){
  1508.                     param1 = null;
  1509.                 }
  1510.             }
  1511.            
  1512.             if(param1==null) {
  1513.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_EROGAZIONE+"] "+PARAMETRO_NON_FORNITO));
  1514.             }
  1515.             return this.ripulisciRiferimentiCacheErogazione(param1);
  1516.         }
  1517.        
  1518.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_FRUIZIONE)){
  1519.             if(params.length != 1)
  1520.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_FRUIZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1521.            
  1522.             Long param1 = null;
  1523.             if(params[0]!=null && !"".equals(params[0])){
  1524.                 if(params[0] instanceof Long) {
  1525.                     param1 = (Long)params[0];
  1526.                 }
  1527.                 else {
  1528.                     param1 = Long.valueOf(params[0].toString());
  1529.                 }
  1530.                 if(param1<0){
  1531.                     param1 = null;
  1532.                 }
  1533.             }
  1534.            
  1535.             if(param1==null) {
  1536.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_FRUIZIONE+"] "+PARAMETRO_NON_FORNITO));
  1537.             }
  1538.             return this.ripulisciRiferimentiCacheFruizione(param1);
  1539.         }
  1540.        
  1541.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_SOGGETTO)){
  1542.             if(params.length != 1)
  1543.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_SOGGETTO+"] Lunghezza parametri non corretta: "+params.length));
  1544.            
  1545.             Long param1 = null;
  1546.             if(params[0]!=null && !"".equals(params[0])){
  1547.                 if(params[0] instanceof Long) {
  1548.                     param1 = (Long)params[0];
  1549.                 }
  1550.                 else {
  1551.                     param1 = Long.valueOf(params[0].toString());
  1552.                 }
  1553.                 if(param1<0){
  1554.                     param1 = null;
  1555.                 }
  1556.             }
  1557.            
  1558.             if(param1==null) {
  1559.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_SOGGETTO+"] "+PARAMETRO_NON_FORNITO));
  1560.             }
  1561.             return this.ripulisciRiferimentiCacheSoggetto(param1);
  1562.         }
  1563.        
  1564.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_APPLICATIVO)){
  1565.             if(params.length != 1)
  1566.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_APPLICATIVO+"] Lunghezza parametri non corretta: "+params.length));
  1567.            
  1568.             Long param1 = null;
  1569.             if(params[0]!=null && !"".equals(params[0])){
  1570.                 if(params[0] instanceof Long) {
  1571.                     param1 = (Long)params[0];
  1572.                 }
  1573.                 else {
  1574.                     param1 = Long.valueOf(params[0].toString());
  1575.                 }
  1576.                 if(param1<0){
  1577.                     param1 = null;
  1578.                 }
  1579.             }
  1580.            
  1581.             if(param1==null) {
  1582.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_APPLICATIVO+"] "+PARAMETRO_NON_FORNITO));
  1583.             }
  1584.             return this.ripulisciRiferimentiCacheApplicativo(param1);
  1585.         }
  1586.        
  1587.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_RUOLO)){
  1588.             if(params.length != 1)
  1589.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_RUOLO+"] Lunghezza parametri non corretta: "+params.length));
  1590.            
  1591.             Long param1 = null;
  1592.             if(params[0]!=null && !"".equals(params[0])){
  1593.                 if(params[0] instanceof Long) {
  1594.                     param1 = (Long)params[0];
  1595.                 }
  1596.                 else {
  1597.                     param1 = Long.valueOf(params[0].toString());
  1598.                 }
  1599.                 if(param1<0){
  1600.                     param1 = null;
  1601.                 }
  1602.             }
  1603.            
  1604.             if(param1==null) {
  1605.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_RUOLO+"] "+PARAMETRO_NON_FORNITO));
  1606.             }
  1607.             return this.ripulisciRiferimentiCacheRuolo(param1);
  1608.         }
  1609.        
  1610.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_SCOPE)){
  1611.             if(params.length != 1)
  1612.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_SCOPE+"] Lunghezza parametri non corretta: "+params.length));
  1613.            
  1614.             Long param1 = null;
  1615.             if(params[0]!=null && !"".equals(params[0])){
  1616.                 if(params[0] instanceof Long) {
  1617.                     param1 = (Long)params[0];
  1618.                 }
  1619.                 else {
  1620.                     param1 = Long.valueOf(params[0].toString());
  1621.                 }
  1622.                 if(param1<0){
  1623.                     param1 = null;
  1624.                 }
  1625.             }
  1626.            
  1627.             if(param1==null) {
  1628.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_SCOPE+"] "+PARAMETRO_NON_FORNITO));
  1629.             }
  1630.             return this.ripulisciRiferimentiCacheScope(param1);
  1631.         }
  1632.        
  1633.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_VALIDAZIONE)){
  1634.             if(params.length != 1)
  1635.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_VALIDAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1636.            
  1637.             Long param1 = null;
  1638.             if(params[0]!=null && !"".equals(params[0])){
  1639.                 if(params[0] instanceof Long) {
  1640.                     param1 = (Long)params[0];
  1641.                 }
  1642.                 else {
  1643.                     param1 = Long.valueOf(params[0].toString());
  1644.                 }
  1645.                 if(param1<0){
  1646.                     param1 = null;
  1647.                 }
  1648.             }
  1649.            
  1650.             if(param1==null) {
  1651.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_VALIDAZIONE+"] "+PARAMETRO_NON_FORNITO));
  1652.             }
  1653.             return this.ripulisciRiferimentiCacheTokenPolicyValidazione(param1);
  1654.         }
  1655.        
  1656.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_NEGOZIAZIONE)){
  1657.             if(params.length != 1)
  1658.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_NEGOZIAZIONE+"] Lunghezza parametri non corretta: "+params.length));
  1659.            
  1660.             Long param1 = null;
  1661.             if(params[0]!=null && !"".equals(params[0])){
  1662.                 if(params[0] instanceof Long) {
  1663.                     param1 = (Long)params[0];
  1664.                 }
  1665.                 else {
  1666.                     param1 = Long.valueOf(params[0].toString());
  1667.                 }
  1668.                 if(param1<0){
  1669.                     param1 = null;
  1670.                 }
  1671.             }
  1672.            
  1673.             if(param1==null) {
  1674.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_NEGOZIAZIONE+"] "+PARAMETRO_NON_FORNITO));
  1675.             }
  1676.             return this.ripulisciRiferimentiCacheTokenPolicyNegoziazione(param1);
  1677.         }
  1678.        
  1679.         if(actionName.equals(RIPULISCI_RIFERIMENTI_CACHE_ATTRIBUTE_AUTHORITY)){
  1680.             if(params.length != 1)
  1681.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_ATTRIBUTE_AUTHORITY+"] Lunghezza parametri non corretta: "+params.length));
  1682.            
  1683.             Long param1 = null;
  1684.             if(params[0]!=null && !"".equals(params[0])){
  1685.                 if(params[0] instanceof Long) {
  1686.                     param1 = (Long)params[0];
  1687.                 }
  1688.                 else {
  1689.                     param1 = Long.valueOf(params[0].toString());
  1690.                 }
  1691.                 if(param1<0){
  1692.                     param1 = null;
  1693.                 }
  1694.             }
  1695.            
  1696.             if(param1==null) {
  1697.                 throw new MBeanException(new Exception("["+RIPULISCI_RIFERIMENTI_CACHE_ATTRIBUTE_AUTHORITY+"] "+PARAMETRO_NON_FORNITO));
  1698.             }
  1699.             return this.ripulisciRiferimentiCacheAttributeAuthority(param1);
  1700.         }

  1701.         throw new UnsupportedOperationException("Operazione "+actionName+" sconosciuta");
  1702.     }
  1703.    
  1704.     /* MBean info */
  1705.     @Override
  1706.     public MBeanInfo getMBeanInfo(){
  1707.                
  1708.         // Descrizione della classe nel MBean
  1709.         String className = this.getClass().getName();
  1710.         String description = "Risorsa per la configurazione ("+this.openspcoopProperties.getVersione()+")";

  1711.         // MetaData per l'attributo abilitaCache
  1712.         MBeanAttributeInfo cacheAbilitataVAR = JMXUtils.MBEAN_ATTRIBUTE_INFO_CACHE_ABILITATA;

  1713.         // MetaData per l'attributo livelloMsgDiagnostici
  1714.         MBeanAttributeInfo livelloMsgDiagnosticiVAR
  1715.             = new MBeanAttributeInfo(ConfigurazionePdD.MSG_DIAGNOSTICI_SEVERITA_LIVELLO,String.class.getName(),
  1716.                         "Livello dei messaggi diagnostici emessi\n[off,fatal,errorProtocol,errorIntegration,infoProtocol,infoIntegration,debugLow,debugMedium,debugHigh,all]",
  1717.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1718.        
  1719.         // MetaData per l'attributo livelloMsgDiagnosticiHumanReadable
  1720.         MBeanAttributeInfo livelloMsgDiagnosticiLog4JVAR
  1721.             = new MBeanAttributeInfo(ConfigurazionePdD.MSG_DIAGNOSTICI_SEVERITA_LIVELLO_LOG4J,String.class.getName(),
  1722.                         "Livello dei messaggi diagnostici human readable emessi\n[off,fatal,errorProtocol,errorIntegration,infoProtocol,infoIntegration,debugLow,debugMedium,debugHigh,all]",
  1723.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1724.        
  1725.         // MetaData per l'attributo msgDiagnosticiAppender
  1726.         MBeanAttributeInfo msgDiagnosticiAppenderVAR
  1727.             = new MBeanAttributeInfo(ConfigurazionePdD.MSG_DIAGNOSTICI_APPENDER,String[].class.getName(),
  1728.                         "Appender personalizzati per la registrazione dei messaggi diagnostici emessi",
  1729.                             JMXUtils.JMX_ATTRIBUTE_READABLE,!JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1730.                            
  1731.         // MetaData per l'attributo tracciamentoAbilitato
  1732.         MBeanAttributeInfo tracciamentoAbilitatoVAR
  1733.             = new MBeanAttributeInfo(ConfigurazionePdD.TRACCIAMENTO_ABILITATO,boolean.class.getName(),
  1734.                         "Indicazione se e' abilito il tracciamento delle buste emesse/ricevute",
  1735.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1736.        
  1737.         // MetaData per l'attributo dumpBinarioPDAbilitato
  1738.         MBeanAttributeInfo dumpBinarioPDAbilitatoVAR
  1739.             = new MBeanAttributeInfo(ConfigurazionePdD.DUMP_BINARIO_PD_ABILITATO,boolean.class.getName(),
  1740.                         "Indicazione se e' abilito la registrazione dei dati binari transitati sulla Porta Delegata",
  1741.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1742.        
  1743.         // MetaData per l'attributo dumpBinarioPAAbilitato
  1744.         MBeanAttributeInfo dumpBinarioPAAbilitatoVAR
  1745.             = new MBeanAttributeInfo(ConfigurazionePdD.DUMP_BINARIO_PA_ABILITATO,boolean.class.getName(),
  1746.                         "Indicazione se e' abilito la registrazione dei dati binari transitati sulla Porta Applicativa",
  1747.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1748.        
  1749.         // MetaData per l'attributo tracciamentoAppender
  1750.         MBeanAttributeInfo tracciamentoAppenderVAR
  1751.             = new MBeanAttributeInfo(ConfigurazionePdD.TRACCIAMENTO_APPENDER,String[].class.getName(),
  1752.                         "Appender personalizzati per la registrazione delle buste emesse/ricevute",
  1753.                             JMXUtils.JMX_ATTRIBUTE_READABLE,!JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1754.        
  1755.         // MetaData per l'attributo log4jDiagnosticaAbilitato
  1756.         MBeanAttributeInfo log4jDiagnosticaAbilitatoVAR
  1757.             = new MBeanAttributeInfo(ConfigurazionePdD.LOG4J_DIAGNOSTICA_ABILITATO,boolean.class.getName(),
  1758.                         "Indicazione se è abilitato il logging su file govway_diagnostici.log",
  1759.                             JMXUtils.JMX_ATTRIBUTE_READABLE,!JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1760.        
  1761.         // MetaData per l'attributo log4jOpenSPCoopAbilitato
  1762.         MBeanAttributeInfo log4jOpenSPCoopAbilitatoVAR
  1763.             = new MBeanAttributeInfo(ConfigurazionePdD.LOG4J_OPENSPCOOP_ABILITATO,boolean.class.getName(),
  1764.                         "Indicazione se è abilitato il logging su file openspcoop2.log",
  1765.                             JMXUtils.JMX_ATTRIBUTE_READABLE,!JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1766.        
  1767.         // MetaData per l'attributo log4jIntegrationManagerAbilitato
  1768.         MBeanAttributeInfo log4jIntegrationManagerAbilitatoVAR
  1769.             = new MBeanAttributeInfo(ConfigurazionePdD.LOG4J_INTEGRATION_MANAGER_ABILITATO,boolean.class.getName(),
  1770.                         "Indicazione se è abilitato il logging su file openspcoop2_integrationManager.log",
  1771.                             JMXUtils.JMX_ATTRIBUTE_READABLE,!JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1772.        
  1773.         // MetaData per l'attributo log4jTracciamentoAbilitato
  1774.         MBeanAttributeInfo log4jTracciamentoAbilitatoVAR
  1775.             = new MBeanAttributeInfo(ConfigurazionePdD.LOG4J_DIAGNOSTICA_ABILITATO,boolean.class.getName(),
  1776.                         "Indicazione se è abilitato il logging su file govway_tracciamento.log",
  1777.                             JMXUtils.JMX_ATTRIBUTE_READABLE,!JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1778.        
  1779.         // MetaData per l'attributo log4jDumpAbilitato
  1780.         MBeanAttributeInfo log4jDumpAbilitatoVAR
  1781.             = new MBeanAttributeInfo(ConfigurazionePdD.LOG4J_DUMP_ABILITATO,boolean.class.getName(),
  1782.                         "Indicazione se è abilitato il logging su file openspcoop2_dump.log",
  1783.                             JMXUtils.JMX_ATTRIBUTE_READABLE,!JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1784.        
  1785.         // MetaData per l'attributo erroriStatusCodeAbilitatoVAR
  1786.         MBeanAttributeInfo erroriStatusCodeAbilitatoVAR
  1787.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_STATUS_CODE_ABILITATO,boolean.class.getName(),
  1788.                         "Indicazione se è abilitato la generazione dello status code negli errori generati dal Gateway",
  1789.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1790.        
  1791.         // MetaData per l'attributo erroriInstanceIdAbilitatoVAR
  1792.         MBeanAttributeInfo erroriInstanceIdAbilitatoVAR
  1793.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_INSTANCE_ID_ABILITATO,boolean.class.getName(),
  1794.                         "Indicazione se è abilitato la generazione dell'identificativo dell'API invocata (instance) negli errori generati dal Gateway",
  1795.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);

  1796.         // MetaData per l'attributo erroriForceSpecificErrorTypeInternalBadRequestVAR
  1797.         MBeanAttributeInfo erroriForceSpecificErrorTypeInternalBadRequestVAR
  1798.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_BAD_REQUEST,boolean.class.getName(),
  1799.                         "Indicazione se è abilitato la generazione di uno specifico tipo di errore per la gestione fallita di una richiesta, dovuta ad una errata configurazione del Gateway",
  1800.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1801.        
  1802.         // MetaData per l'attributo erroriForceSpecificErrorTypeBadResponseVAR
  1803.         MBeanAttributeInfo erroriForceSpecificErrorTypeBadResponseVAR
  1804.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_BAD_RESPONSE,boolean.class.getName(),
  1805.                         "Indicazione se è abilitato la generazione di uno specifico tipo di errore per la gestione fallita di una risposta, dovuta alla risposta ritornata dal backend",
  1806.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1807.        
  1808.         // MetaData per l'attributo erroriForceSpecificErrorTypeInternalResponseErrorVAR
  1809.         MBeanAttributeInfo erroriForceSpecificErrorTypeInternalResponseErrorVAR
  1810.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_RESPONSE_ERROR,boolean.class.getName(),
  1811.                         "Indicazione se è abilitato la generazione di uno specifico tipo di errore per la gestione fallita di una risposta, dovuta ad una errata configurazione del Gateway",
  1812.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1813.            
  1814.         // MetaData per l'attributo erroriForceSpecificErrorTypeInternalErrorVAR
  1815.         MBeanAttributeInfo erroriForceSpecificErrorTypeInternalErrorVAR
  1816.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_ERROR,boolean.class.getName(),
  1817.                         "Indicazione se è abilitato la generazione di uno specifico tipo di errore per la gestione fallita di una richiesta, dovuta ad un malfunzionamento del Gateway",
  1818.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);

  1819.         // MetaData per l'attributo erroriForceSpecificDetailsVAR
  1820.         MBeanAttributeInfo erroriForceSpecificDetailsVAR
  1821.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_FORCE_SPECIFIC_DETAILS,boolean.class.getName(),
  1822.                         "Indicazione se è abilitato la generazione di un dettaglio specifico negli errori generati dal Gateway",
  1823.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1824.        
  1825.         // MetaData per l'attributo erroriSoapUseGovWayStatusAsFaultCodeVAR
  1826.         MBeanAttributeInfo erroriSoapUseGovWayStatusAsFaultCodeVAR
  1827.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_SOAP_USE_GOVWAY_STATUS_AS_FAULT_CODE,boolean.class.getName(),
  1828.                         "Indicazione se è abilitato la generazione di un codice di errore di dettaglio GovWay come FaultCode negli errori SOAP generati dal Gateway",
  1829.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1830.        
  1831.         // MetaData per l'attributo erroriSoapGenerateHttpHeaderGovWayCodeVAR
  1832.         MBeanAttributeInfo erroriSoapGenerateHttpHeaderGovWayCodeVAR
  1833.             = new MBeanAttributeInfo(ConfigurazionePdD.ERRORI_SOAP_GENERATE_HTTP_HEADER_GOVWAY_CODE,boolean.class.getName(),
  1834.                         "Indicazione se è abilitato la generazione del codice http di errore in un header http negli errori SOAP generati dal Gateway",
  1835.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1836.        
  1837.         // MetaData per l'attributo timerConsegnaContenutiApplicativiVAR
  1838.         MBeanAttributeInfo timerConsegnaContenutiApplicativiVAR
  1839.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_CONSEGNA_CONTENUTI_APPLICATIVI,String.class.getName(),
  1840.                         "Indicazione se è abilitato il timer '"+TimerConsegnaContenutiApplicativiThread.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1841.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);

  1842.         // MetaData per l'attributo timerEventiVAR
  1843.         MBeanAttributeInfo timerEventiVAR
  1844.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_EVENTI,String.class.getName(),
  1845.                         "Indicazione se è abilitato il timer '"+TimerEventiThread.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1846.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);

  1847.         // MetaData per l'attributo timerFileSystemRecoveryVAR
  1848.         MBeanAttributeInfo timerFileSystemRecoveryVAR
  1849.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_FILE_SYSTEM_RECOVERY,String.class.getName(),
  1850.                         "Indicazione se è abilitato il timer '"+TimerFileSystemRecoveryThread.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1851.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1852.        
  1853.         // MetaData per l'attributo timerGestoreBusteOnewayNonRiscontrateVAR
  1854.         MBeanAttributeInfo timerGestoreBusteOnewayNonRiscontrateVAR
  1855.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_BUSTE_ONEWAY_NON_RISCONTRATE,String.class.getName(),
  1856.                         "Indicazione se è abilitato il timer '"+TimerGestoreBusteNonRiscontrate.ID_MODULO+"' (oneway) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1857.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1858.        
  1859.         // MetaData per l'attributo timerGestoreBusteAsincroneNonRiscontrateVAR
  1860.         MBeanAttributeInfo timerGestoreBusteAsincroneNonRiscontrateVAR
  1861.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_BUSTE_ASINCRONE_NON_RISCONTRATE,String.class.getName(),
  1862.                         "Indicazione se è abilitato il timer '"+TimerGestoreBusteNonRiscontrate.ID_MODULO+"' (asincroni) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1863.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1864.        
  1865.         // MetaData per l'attributo timerGestoreMessaggiPuliziaMessaggiEliminatiVAR
  1866.         MBeanAttributeInfo timerGestoreMessaggiPuliziaMessaggiEliminatiVAR
  1867.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_ELIMINATI,String.class.getName(),
  1868.                         "Indicazione se è abilitato il timer '"+TimerGestoreMessaggi.ID_MODULO+"' (eliminazione logica) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1869.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1870.        
  1871.         // MetaData per l'attributo timerGestoreMessaggiPuliziaMessaggiScadutiVAR
  1872.         MBeanAttributeInfo timerGestoreMessaggiPuliziaMessaggiScadutiVAR
  1873.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_SCADUTI,String.class.getName(),
  1874.                         "Indicazione se è abilitato il timer '"+TimerGestoreMessaggi.ID_MODULO+"' (scaduti) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1875.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1876.        
  1877.         // MetaData per l'attributo timerGestoreMessaggiPuliziaMessaggiNonGestitiVAR
  1878.         MBeanAttributeInfo timerGestoreMessaggiPuliziaMessaggiNonGestitiVAR
  1879.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_NON_GESTITI,String.class.getName(),
  1880.                         "Indicazione se è abilitato il timer '"+TimerGestoreMessaggi.ID_MODULO+"' (non gestiti) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1881.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1882.        
  1883.         // MetaData per l'attributo timerGestoreMessaggiPuliziaCorrelazioneApplicativaVAR
  1884.         MBeanAttributeInfo timerGestoreMessaggiPuliziaCorrelazioneApplicativaVAR
  1885.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_PULIZIA_CORRELAZIONE_APPLICATIVA,String.class.getName(),
  1886.                         "Indicazione se è abilitato il timer '"+TimerGestoreMessaggi.ID_MODULO+"' (correlazione applicativa) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1887.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1888.        
  1889.         // MetaData per l'attributo timerGestoreMessaggiVerificaConnessioniAttiveVAR
  1890.         MBeanAttributeInfo timerGestoreMessaggiVerificaConnessioniAttiveVAR
  1891.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_MESSAGGI_VERIFICA_CONNESSIONI_ATTIVE,String.class.getName(),
  1892.                         "Indicazione se è abilitato il timer '"+TimerGestoreMessaggi.ID_MODULO+"' (verifica connessioni attive) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1893.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1894.        
  1895.         // MetaData per l'attributo timerGestorePuliziaMessaggiAnomaliVAR
  1896.         MBeanAttributeInfo timerGestorePuliziaMessaggiAnomaliVAR
  1897.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_PULIZIA_MESSAGGI_ANOMALI,String.class.getName(),
  1898.                         "Indicazione se è abilitato il timer '"+TimerGestorePuliziaMessaggiAnomali.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1899.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1900.        
  1901.         // MetaData per l'attributo timerGestoreRepositoryBusteVAR
  1902.         MBeanAttributeInfo timerGestoreRepositoryBusteVAR
  1903.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_REPOSITORY_BUSTE,String.class.getName(),
  1904.                         "Indicazione se è abilitato il timer '"+TimerGestoreRepositoryBuste.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1905.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1906.        
  1907.         // MetaData per l'attributo timerMonitoraggioRisorseThreadVAR
  1908.         MBeanAttributeInfo timerMonitoraggioRisorseThreadVAR
  1909.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_MONITORAGGIO_RISORSE_THREAD,String.class.getName(),
  1910.                         "Indicazione se è abilitato il timer '"+TimerMonitoraggioRisorseThread.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1911.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1912.        
  1913.         // MetaData per l'attributo timerRepositoryStatefulThreadVAR
  1914.         MBeanAttributeInfo timerRepositoryStatefulThreadVAR
  1915.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_REPOSITORY_STATEFUL_THREAD,String.class.getName(),
  1916.                         "Indicazione se è abilitato il timer '"+TimerRepositoryStatefulThread.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1917.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1918.        
  1919.         // MetaData per l'attributo timerStatisticheOrarieVAR
  1920.         MBeanAttributeInfo timerStatisticheOrarieVAR
  1921.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_STATISTICHE_ORARIE,String.class.getName(),
  1922.                         "Indicazione se è abilitato il timer '"+TimerStatisticheThread.ID_MODULO+"' (orarie) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1923.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1924.        
  1925.         // MetaData per l'attributo timerStatisticheGiornaliereVAR
  1926.         MBeanAttributeInfo timerStatisticheGiornaliereVAR
  1927.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_STATISTICHE_GIORNALIERE,String.class.getName(),
  1928.                         "Indicazione se è abilitato il timer '"+TimerStatisticheThread.ID_MODULO+"' (giornaliere) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1929.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1930.        
  1931.         // MetaData per l'attributo timerStatisticheSettimanaliVAR
  1932.         MBeanAttributeInfo timerStatisticheSettimanaliVAR
  1933.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_STATISTICHE_SETTIMANALI,String.class.getName(),
  1934.                         "Indicazione se è abilitato il timer '"+TimerStatisticheThread.ID_MODULO+"' (settimanali) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1935.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1936.        
  1937.         // MetaData per l'attributo timerStatisticheMensiliVAR
  1938.         MBeanAttributeInfo timerStatisticheMensiliVAR
  1939.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_STATISTICHE_MENSILI,String.class.getName(),
  1940.                         "Indicazione se è abilitato il timer '"+TimerStatisticheThread.ID_MODULO+"' (mensili) ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1941.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1942.        
  1943.         // MetaData per l'attributo timerGestoreChiaviVAR
  1944.         MBeanAttributeInfo timerGestoreChiaviVAR
  1945.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_CHIAVI_PDND,String.class.getName(),
  1946.                         "Indicazione se è abilitato il timer '"+TimerGestoreChiaviPDND.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1947.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1948.        
  1949.         // MetaData per l'attributo timerGestoreCacheChiaviVAR
  1950.         MBeanAttributeInfo timerGestoreCacheChiaviVAR
  1951.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_GESTORE_CACHE_CHIAVI_PDND,String.class.getName(),
  1952.                         "Indicazione se è abilitato il timer '"+TimerGestoreCacheChiaviPDND.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1953.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);

  1954.         // MetaData per l'attributo timerThresholdThreadVAR
  1955.         MBeanAttributeInfo timerThresholdThreadVAR
  1956.             = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_THRESHOLD_THREAD,String.class.getName(),
  1957.                         "Indicazione se è abilitato il timer '"+TimerThresholdThread.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1958.                             JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);
  1959.        
  1960.         // MetaData per l'attributo timerClusterDinamicoVAR
  1961.         MBeanAttributeInfo timerClusterDinamicoVAR
  1962.         = new MBeanAttributeInfo(ConfigurazionePdD.TIMER_CLUSTER_DINAMICO,String.class.getName(),
  1963.                 "Indicazione se è abilitato il timer '"+TimerClusterDinamicoThread.ID_MODULO+"' ("+TimerState.ENABLED.name()+"/"+TimerState.DISABLED.name()+")",
  1964.                 JMXUtils.JMX_ATTRIBUTE_READABLE,JMXUtils.JMX_ATTRIBUTE_WRITABLE,!JMXUtils.JMX_ATTRIBUTE_IS_GETTER);

  1965.         // MetaData per l'operazione resetCache
  1966.         MBeanOperationInfo resetCacheOP = JMXUtils.MBEAN_OPERATION_RESET_CACHE;
  1967.                
  1968.         // MetaData per l'operazione prefillCache
  1969.         MBeanOperationInfo prefillCacheOP = JMXUtils.MBEAN_OPERATION_PREFILL_CACHE;
  1970.        
  1971.         // MetaData per l'operazione printStatCache
  1972.         MBeanOperationInfo printStatCacheOP = JMXUtils.MBEAN_OPERATION_PRINT_STATS_CACHE;
  1973.        
  1974.         // MetaData per l'operazione disabilitaCache
  1975.         MBeanOperationInfo disabilitaCacheOP = JMXUtils.MBEAN_OPERATION_DISABILITA_CACHE;
  1976.        
  1977.         // MetaData per l'operazione abilitaCache con parametri
  1978.         MBeanOperationInfo abilitaCacheParametriOP = JMXUtils.MBEAN_OPERATION_ABILITA_CACHE_CON_PARAMETRI;
  1979.        
  1980.         // MetaData per l'operazione listKeysCache
  1981.         MBeanOperationInfo listKeysCacheOP = JMXUtils.MBEAN_OPERATION_LIST_KEYS_CACHE;

  1982.         // MetaData per l'operazione getObjectCache
  1983.         MBeanOperationInfo getObjectCacheOP = JMXUtils.MBEAN_OPERATION_GET_OBJECT_CACHE;
  1984.        
  1985.         // MetaData per l'operazione removeObjectCache
  1986.         MBeanOperationInfo removeObjectCacheOP = JMXUtils.MBEAN_OPERATION_REMOVE_OBJECT_CACHE;
  1987.                
  1988.         // MetaData per l'operazione checkConettoreById
  1989.         MBeanOperationInfo checkConnettoreById
  1990.         = new MBeanOperationInfo(CHECK_CONNETTORE_BY_ID,"Verifica la raggiungibilità del connettore con id fornito come parametro",
  1991.             new MBeanParameterInfo[]{
  1992.                 new MBeanParameterInfo("idConnettore",long.class.getName(),"Identificativo del connettore"),
  1993.             },
  1994.             String.class.getName(),
  1995.             MBeanOperationInfo.ACTION);
  1996.        
  1997.         // MetaData per l'operazione checkConettoreByNome
  1998.         MBeanOperationInfo checkConnettoreByNome
  1999.         = new MBeanOperationInfo(CHECK_CONNETTORE_BY_NOME,"Verifica la raggiungibilità del connettore con nome fornito come parametro",
  2000.             new MBeanParameterInfo[]{
  2001.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del connettore"),
  2002.             },
  2003.             String.class.getName(),
  2004.             MBeanOperationInfo.ACTION);
  2005.        
  2006.         // MetaData per l'operazione checkConnettoreTokenPolicyValidazione
  2007.         MBeanOperationInfo checkConnettoreTokenPolicyValidazione
  2008.         = new MBeanOperationInfo(CHECK_CONNETTORE_BY_NOME,"Verifica la raggiungibilità dei connettori definiti nella Token Policy di validazione con nome fornito come parametro",
  2009.             new MBeanParameterInfo[]{
  2010.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Validazione"),
  2011.             },
  2012.             String.class.getName(),
  2013.             MBeanOperationInfo.ACTION);
  2014.         MBeanOperationInfo checkConnettoreTokenPolicyValidazione_2
  2015.         = new MBeanOperationInfo(CHECK_CONNETTORE_BY_NOME,"Verifica la raggiungibilità dei connettori definiti nella Token Policy di validazione con nome fornito come parametro",
  2016.             new MBeanParameterInfo[]{
  2017.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Validazione"),
  2018.                 new MBeanParameterInfo("tipoConnettore",String.class.getName(),"Tipo del connettore da verificare ["+ConnettoreCheck.POLICY_TIPO_ENDPOINT_DYNAMIC_DISCOVERY+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_VALIDAZIONE_JWT+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_INTROSPECTION+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_USERINFO+"]"),
  2019.             },
  2020.             String.class.getName(),
  2021.             MBeanOperationInfo.ACTION);
  2022.        
  2023.         // MetaData per l'operazione checkConnettoreTokenPolicyNegoziazione
  2024.         MBeanOperationInfo checkConnettoreTokenPolicyNegoziazione
  2025.         = new MBeanOperationInfo(CHECK_CONNETTORE_BY_NOME,"Verifica la raggiungibilità del connettore definito nella Token Policy di negoziazione con nome fornito come parametro",
  2026.             new MBeanParameterInfo[]{
  2027.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Negoziazione"),
  2028.             },
  2029.             String.class.getName(),
  2030.             MBeanOperationInfo.ACTION);
  2031.        
  2032.         // MetaData per l'operazione checkConnettoreAttributeAuthority
  2033.         MBeanOperationInfo checkConnettoreAttributeAuthority
  2034.         = new MBeanOperationInfo(CHECK_CONNETTORE_BY_NOME,"Verifica la raggiungibilità del connettore definito nell'AttributeAuthority con nome fornito come parametro",
  2035.             new MBeanParameterInfo[]{
  2036.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome dell'AttributeAuthority"),
  2037.             },
  2038.             String.class.getName(),
  2039.             MBeanOperationInfo.ACTION);

  2040.         // MetaData per l'operazione getCertificatiConnettoreById
  2041.         MBeanOperationInfo getCertificatiConnettoreById
  2042.         = new MBeanOperationInfo(GET_CERTIFICATI_CONNETTORE_BY_ID,"Recupera i certificati server del connettore con id fornito come parametro",
  2043.             new MBeanParameterInfo[]{
  2044.                 new MBeanParameterInfo("idConnettore",long.class.getName(),"Identificativo del connettore"),
  2045.             },
  2046.             String.class.getName(),
  2047.             MBeanOperationInfo.ACTION);
  2048.        
  2049.         // MetaData per l'operazione getCertificatiConnettoreByNome
  2050.         MBeanOperationInfo getCertificatiConnettoreByNome
  2051.         = new MBeanOperationInfo(GET_CERTIFICATI_CONNETTORE_BY_NOME,"Recupera i certificati server del connettore con nome fornito come parametro",
  2052.             new MBeanParameterInfo[]{
  2053.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del connettore"),
  2054.             },
  2055.             String.class.getName(),
  2056.             MBeanOperationInfo.ACTION);
  2057.        
  2058.         // MetaData per l'operazione getCertificatiConnettoreTokenPolicyValidazione
  2059.         MBeanOperationInfo getCertificatiConnettoreTokenPolicyValidazione
  2060.         = new MBeanOperationInfo(GET_CERTIFICATI_TOKEN_POLICY_VALIDATION,"Recupera i certificati server dell'endpoit definito nella token policy di validazione con nome fornito come parametro",
  2061.             new MBeanParameterInfo[]{
  2062.                     new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Validazione"),
  2063.             },
  2064.             String.class.getName(),
  2065.             MBeanOperationInfo.ACTION);
  2066.        
  2067.         // MetaData per l'operazione getCertificatiConnettoreTokenPolicyValidazione_2
  2068.         MBeanOperationInfo getCertificatiConnettoreTokenPolicyValidazione_2
  2069.         = new MBeanOperationInfo(GET_CERTIFICATI_TOKEN_POLICY_VALIDATION,"Recupera i certificati server dell'endpoit definito nella token policy di validazione con nome fornito come parametro",
  2070.             new MBeanParameterInfo[]{
  2071.                     new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Validazione"),
  2072.                     new MBeanParameterInfo("tipoConnettore",String.class.getName(),"Tipo del connettore da verificare ["+ConnettoreCheck.POLICY_TIPO_ENDPOINT_DYNAMIC_DISCOVERY+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_VALIDAZIONE_JWT+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_INTROSPECTION+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_USERINFO+"]"),
  2073.             },
  2074.             String.class.getName(),
  2075.             MBeanOperationInfo.ACTION);
  2076.        
  2077.         // MetaData per l'operazione getCertificatiConnettoreTokenPolicyNegoziazione
  2078.         MBeanOperationInfo getCertificatiConnettoreTokenPolicyNegoziazione
  2079.         = new MBeanOperationInfo(GET_CERTIFICATI_TOKEN_POLICY_VALIDATION,"Recupera i certificati server dell'endpoit definito nella token policy di negoziazione con nome fornito come parametro",
  2080.             new MBeanParameterInfo[]{
  2081.                     new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Negoziazione"),
  2082.             },
  2083.             String.class.getName(),
  2084.             MBeanOperationInfo.ACTION);
  2085.        
  2086.         // MetaData per l'operazione getCertificatiConnettoreAttributeAuthority
  2087.         MBeanOperationInfo getCertificatiConnettoreAttributeAuthority
  2088.         = new MBeanOperationInfo(GET_CERTIFICATI_TOKEN_POLICY_VALIDATION,"Recupera i certificati server dell'endpoit definito nell'AttributeAuthority con nome fornito come parametro",
  2089.             new MBeanParameterInfo[]{
  2090.                     new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome dell'AttributeAuthority"),
  2091.             },
  2092.             String.class.getName(),
  2093.             MBeanOperationInfo.ACTION);
  2094.            
  2095.         // MetaData per l'operazione checkCertificatiConnettoreHttpsById
  2096.         MBeanOperationInfo checkCertificatiConnettoreHttpsById
  2097.         = new MBeanOperationInfo(CHECK_CERTIFICATI_CONNETTORE_HTTPS_BY_ID,"Verifica i certificati presenti nei keystore e truststore del connettore https che possiede l'id fornito come parametro",
  2098.             new MBeanParameterInfo[]{
  2099.                 new MBeanParameterInfo("idConnettore",long.class.getName(),"Identificativo del connettore"),
  2100.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2101.             },
  2102.             String.class.getName(),
  2103.             MBeanOperationInfo.ACTION);
  2104.        
  2105.         // MetaData per l'operazione checkCertificatoApplicativoById
  2106.         MBeanOperationInfo checkCertificatoApplicativoById
  2107.         = new MBeanOperationInfo(CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_ID,"Verifica i certificati client associati all'applicativo che possiede l'id fornito come parametro",
  2108.             new MBeanParameterInfo[]{
  2109.                 new MBeanParameterInfo("idApplicativo",long.class.getName(),"Identificativo dell'applicativo"),
  2110.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2111.             },
  2112.             String.class.getName(),
  2113.             MBeanOperationInfo.ACTION);
  2114.        
  2115.         // MetaData per l'operazione checkCertificatoApplicativoByNome
  2116.         MBeanOperationInfo checkCertificatoApplicativoByNome
  2117.         = new MBeanOperationInfo(CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_NOME,"Verifica i certificati client associati all'applicativo che possiede l'id fornito come parametro (formato: nomeApplicativo@tipoSoggetto/nomeSoggetto)",
  2118.             new MBeanParameterInfo[]{
  2119.                 new MBeanParameterInfo("idApplicativo",String.class.getName(),"Identificativo dell'applicativo"),
  2120.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2121.             },
  2122.             String.class.getName(),
  2123.             MBeanOperationInfo.ACTION);
  2124.        
  2125.         // MetaData per l'operazione checkCertificatoModIApplicativoById
  2126.         MBeanOperationInfo checkCertificatoModIApplicativoById
  2127.         = new MBeanOperationInfo(CHECK_CERTIFICATO_MODI_SERVIZIO_APPLICATIVO_BY_ID,"Verifica il keystore ModI associato all'applicativo che possiede l'id fornito come parametro",
  2128.             new MBeanParameterInfo[]{
  2129.                 new MBeanParameterInfo("idApplicativo",long.class.getName(),"Identificativo dell'applicativo"),
  2130.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2131.             },
  2132.             String.class.getName(),
  2133.             MBeanOperationInfo.ACTION);
  2134.        
  2135.         // MetaData per l'operazione checkCertificatoModIApplicativoByNome
  2136.         MBeanOperationInfo checkCertificatoModIApplicativoByNome
  2137.         = new MBeanOperationInfo(CHECK_CERTIFICATO_SERVIZIO_APPLICATIVO_BY_NOME,"Verifica il keystore ModI associato all'applicativo che possiede l'id fornito come parametro (formato: nomeApplicativo@tipoSoggetto/nomeSoggetto)",
  2138.             new MBeanParameterInfo[]{
  2139.                 new MBeanParameterInfo("idApplicativo",String.class.getName(),"Identificativo dell'applicativo"),
  2140.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2141.             },
  2142.             String.class.getName(),
  2143.             MBeanOperationInfo.ACTION);
  2144.        
  2145.         // MetaData per l'operazione checkCertificatiJvm
  2146.         MBeanOperationInfo checkCertificatiJvm
  2147.         = new MBeanOperationInfo(CHECK_CERTIFICATI_CONFIGURAZIONE_JVM,"Verifica il keystore e truststore associato alla jvm",
  2148.             new MBeanParameterInfo[]{
  2149.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2150.             },
  2151.             String.class.getName(),
  2152.             MBeanOperationInfo.ACTION);
  2153.        
  2154.         // MetaData per l'operazione checkProxyJvm
  2155.         MBeanOperationInfo checkProxyJvm
  2156.         = new MBeanOperationInfo(CHECK_PROXY_CONFIGURAZIONE_JVM,"Verifica l'eventuale proxy associato alla jvm",
  2157.             null,
  2158.             String.class.getName(),
  2159.             MBeanOperationInfo.ACTION);
  2160.        
  2161.         // MetaData per l'operazione checkCertificatiConnettoreHttpsTokenPolicyValidazione
  2162.         MBeanOperationInfo checkCertificatiConnettoreHttpsTokenPolicyValidazione
  2163.         = new MBeanOperationInfo(CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_VALIDAZIONE,"Verifica i certificati del connettore https definito nella Token Policy di validazione con nome fornito come parametro",
  2164.             new MBeanParameterInfo[]{
  2165.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Validazione"),
  2166.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2167.             },
  2168.             String.class.getName(),
  2169.             MBeanOperationInfo.ACTION);
  2170.         MBeanOperationInfo checkCertificatiConnettoreHttpsTokenPolicyValidazione_2
  2171.         = new MBeanOperationInfo(CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_VALIDAZIONE,"Verifica i certificati del connettore https definito nella Token Policy di validazione con nome fornito come parametro",
  2172.             new MBeanParameterInfo[]{
  2173.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Validazione"),
  2174.                 new MBeanParameterInfo("tipoConnettore",String.class.getName(),"Tipo del connettore da verificare ["+ConnettoreCheck.POLICY_TIPO_ENDPOINT_DYNAMIC_DISCOVERY+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_VALIDAZIONE_JWT+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_INTROSPECTION+","+ConnettoreCheck.POLICY_TIPO_ENDPOINT_USERINFO+"]"),
  2175.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2176.             },
  2177.             String.class.getName(),
  2178.             MBeanOperationInfo.ACTION);
  2179.        
  2180.         // MetaData per l'operazione checkCertificatiValidazioneJwtTokenPolicyValidazione
  2181.         MBeanOperationInfo checkCertificatiValidazioneJwtTokenPolicyValidazione
  2182.         = new MBeanOperationInfo(CHECK_CERTIFICATI_VALIDAZIONE_JWT_TOKEN_POLICY_VALIDAZIONE,"Verifica i certificati utilizzati per la validazione JWT del Token definito nella Token Policy di validazione con nome fornito come parametro",
  2183.             new MBeanParameterInfo[]{
  2184.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Validazione"),
  2185.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2186.             },
  2187.             String.class.getName(),
  2188.             MBeanOperationInfo.ACTION);
  2189.        
  2190.         // MetaData per l'operazione checkCertificatiForwardToJwtTokenPolicyValidazione
  2191.         MBeanOperationInfo checkCertificatiForwardToJwtTokenPolicyValidazione
  2192.         = new MBeanOperationInfo(CHECK_CERTIFICATI_FORWARD_TO_JWT_TOKEN_POLICY_VALIDAZIONE,"Verifica i certificati utilizzati per firmare il JWT contenente le informazioni del Token definito nella Token Policy di validazione con nome fornito come parametro",
  2193.             new MBeanParameterInfo[]{
  2194.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Validazione"),
  2195.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2196.             },
  2197.             String.class.getName(),
  2198.             MBeanOperationInfo.ACTION);
  2199.        
  2200.        
  2201.         // MetaData per l'operazione checkCertificatiConnettoreHttpsTokenPolicyNegoziazione
  2202.         MBeanOperationInfo checkCertificatiConnettoreHttpsTokenPolicyNegoziazione
  2203.         = new MBeanOperationInfo(CHECK_CERTIFICATI_CONNETTORE_HTTPS_TOKEN_POLICY_NEGOZIAZIONE,"Verifica i certificati del connettore https definito nella Token Policy di negoziazione con nome fornito come parametro",
  2204.             new MBeanParameterInfo[]{
  2205.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Negoziazione"),
  2206.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2207.             },
  2208.             String.class.getName(),
  2209.             MBeanOperationInfo.ACTION);
  2210.        
  2211.         // MetaData per l'operazione checkCertificatiSignedJwtTokenPolicyNegoziazione
  2212.         MBeanOperationInfo checkCertificatiSignedJwtTokenPolicyNegoziazione
  2213.         = new MBeanOperationInfo(CHECK_CERTIFICATI_SIGNED_JWT_TOKEN_POLICY_NEGOZIAZIONE,"Verifica i certificati utilizzati per firmare l'asserzione JWT definita nella Token Policy di negoziazione con nome fornito come parametro",
  2214.             new MBeanParameterInfo[]{
  2215.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome della Token Policy di Negoziazione"),
  2216.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2217.             },
  2218.             String.class.getName(),
  2219.             MBeanOperationInfo.ACTION);
  2220.        
  2221.         // MetaData per l'operazione checkCertificatiConnettoreHttpsAttributeAuthority
  2222.         MBeanOperationInfo checkCertificatiConnettoreHttpsAttributeAuthority
  2223.         = new MBeanOperationInfo(CHECK_CERTIFICATI_CONNETTORE_HTTPS_ATTRIBUTE_AUTHORITY,"Verifica i certificati del connettore https definito nell'AttributeAuthority con nome fornito come parametro",
  2224.             new MBeanParameterInfo[]{
  2225.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome dell'AttributeAuthority"),
  2226.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2227.             },
  2228.             String.class.getName(),
  2229.             MBeanOperationInfo.ACTION);
  2230.        
  2231.         // MetaData per l'operazione checkCertificatiAttributeAuthorityJwtRichiesta
  2232.         MBeanOperationInfo checkCertificatiAttributeAuthorityJwtRichiesta
  2233.         = new MBeanOperationInfo(CHECK_CERTIFICATI_ATTRIBUTE_AUTHORITY_JWT_RICHIESTA,"Verifica i certificati utilizzati per firmare il JWT della richiesta definito nell'AttributeAuthority con nome fornito come parametro",
  2234.             new MBeanParameterInfo[]{
  2235.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome dell'AttributeAuthority"),
  2236.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2237.             },
  2238.             String.class.getName(),
  2239.             MBeanOperationInfo.ACTION);
  2240.        
  2241.         // MetaData per l'operazione checkCertificatiAttributeAuthorityJwtRisposta
  2242.         MBeanOperationInfo checkCertificatiAttributeAuthorityJwtRisposta
  2243.         = new MBeanOperationInfo(CHECK_CERTIFICATI_ATTRIBUTE_AUTHORITY_JWT_RISPOSTA,"Verifica i certificati utilizzati per firmare il JWT della richiesta definito nell'AttributeAuthority con nome fornito come parametro",
  2244.             new MBeanParameterInfo[]{
  2245.                 new MBeanParameterInfo("nomePolicy",String.class.getName(),"Nome dell'AttributeAuthority"),
  2246.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2247.             },
  2248.             String.class.getName(),
  2249.             MBeanOperationInfo.ACTION);
  2250.        
  2251.         // MetaData per l'operazione checkCertificatiModIErogazioneById
  2252.         MBeanOperationInfo checkCertificatiModIErogazioneById
  2253.         = new MBeanOperationInfo(CHECK_CERTIFICATI_MESSAGE_SECURITY_EROGAZIONE_BY_ID,"Verifica i certificati presenti nei keystore e truststore della configurazione di MessageSecurity dell'erogazione che possiede l'id fornito come parametro",
  2254.             new MBeanParameterInfo[]{
  2255.                 new MBeanParameterInfo("idErogazione",long.class.getName(),"Identificativo dell'erogazione"),
  2256.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2257.             },
  2258.             String.class.getName(),
  2259.             MBeanOperationInfo.ACTION);
  2260.        
  2261.         // MetaData per l'operazione checkCertificatiModIFruizioneById
  2262.         MBeanOperationInfo checkCertificatiModIFruizioneById
  2263.         = new MBeanOperationInfo(CHECK_CERTIFICATI_MESSAGE_SECURITY_FRUIZIONE_BY_ID,"Verifica i certificati presenti nei keystore e truststore della configurazione di MessageSecurity della fruizione che possiede l'id fornito come parametro",
  2264.             new MBeanParameterInfo[]{
  2265.                 new MBeanParameterInfo("idFruizione",long.class.getName(),"Identificativo della fruizione"),
  2266.                 new MBeanParameterInfo("warningThreshold",int.class.getName(),"Soglia di warning (giorni)"),
  2267.             },
  2268.             String.class.getName(),
  2269.             MBeanOperationInfo.ACTION);
  2270.                
  2271.         // MetaData per l'operazione enablePortaDelegata
  2272.         MBeanOperationInfo enablePortaDelegata
  2273.         = new MBeanOperationInfo(ABILITA_PORTA_DELEGATA,"Abilita lo stato della porta con nome fornito come parametro",
  2274.             new MBeanParameterInfo[]{
  2275.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2276.             },
  2277.             String.class.getName(),
  2278.             MBeanOperationInfo.ACTION);
  2279.        
  2280.         // MetaData per l'operazione disablePortaDelegata
  2281.         MBeanOperationInfo disablePortaDelegata
  2282.         = new MBeanOperationInfo(DISABILITA_PORTA_DELEGATA,"Disabilita lo stato della porta con nome fornito come parametro",
  2283.             new MBeanParameterInfo[]{
  2284.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2285.             },
  2286.             String.class.getName(),
  2287.             MBeanOperationInfo.ACTION);
  2288.        
  2289.         // MetaData per l'operazione enablePortaApplicativa
  2290.         MBeanOperationInfo enablePortaApplicativa
  2291.         = new MBeanOperationInfo(ABILITA_PORTA_APPLICATIVA,"Abilita lo stato della porta con nome fornito come parametro",
  2292.             new MBeanParameterInfo[]{
  2293.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2294.             },
  2295.             String.class.getName(),
  2296.             MBeanOperationInfo.ACTION);
  2297.        
  2298.         // MetaData per l'operazione disablePortaApplicativa
  2299.         MBeanOperationInfo disablePortaApplicativa
  2300.         = new MBeanOperationInfo(DISABILITA_PORTA_APPLICATIVA,"Disabilita lo stato della porta con nome fornito come parametro",
  2301.             new MBeanParameterInfo[]{
  2302.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2303.             },
  2304.             String.class.getName(),
  2305.             MBeanOperationInfo.ACTION);
  2306.        
  2307.         // MetaData per l'operazione enableConnettoreMultiplo
  2308.         MBeanOperationInfo enableConnettoreMultiplo
  2309.         = new MBeanOperationInfo(ABILITA_CONNETTORE_MULTIPLO,"Abilita lo stato del connettore della porta identificato dai parametri",
  2310.             new MBeanParameterInfo[]{
  2311.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2312.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2313.             },
  2314.             String.class.getName(),
  2315.             MBeanOperationInfo.ACTION);
  2316.        
  2317.         // MetaData per l'operazione disableConnettoreMultiplo
  2318.         MBeanOperationInfo disableConnettoreMultiplo
  2319.         = new MBeanOperationInfo(DISABILITA_CONNETTORE_MULTIPLO,"Disabilita lo stato del connettore della porta identificato dai parametri",
  2320.             new MBeanParameterInfo[]{
  2321.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2322.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2323.             },
  2324.             String.class.getName(),
  2325.             MBeanOperationInfo.ACTION);
  2326.        
  2327.         // MetaData per l'operazione enableConnettoreMultiploByUsername
  2328.         MBeanOperationInfo enableConnettoreMultiploByUsername
  2329.         = new MBeanOperationInfo(ABILITA_CONNETTORE_MULTIPLO_USERNAME,"Abilita lo stato del connettore della porta identificato dai parametri",
  2330.             new MBeanParameterInfo[]{
  2331.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2332.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2333.                 new MBeanParameterInfo("username",String.class.getName(),"Utente che effettua la richiesta")
  2334.             },
  2335.             String.class.getName(),
  2336.             MBeanOperationInfo.ACTION);
  2337.                
  2338.         // MetaData per l'operazione disableConnettoreMultiploByUsername
  2339.         MBeanOperationInfo disableConnettoreMultiploByUsername
  2340.         = new MBeanOperationInfo(DISABILITA_CONNETTORE_MULTIPLO_USERNAME,"Disabilita lo stato del connettore della porta identificato dai parametri",
  2341.             new MBeanParameterInfo[]{
  2342.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2343.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2344.                 new MBeanParameterInfo("username",String.class.getName(),"Utente che effettua la richiesta")
  2345.             },
  2346.             String.class.getName(),
  2347.             MBeanOperationInfo.ACTION);
  2348.        
  2349.         // MetaData per l'operazione enableSchedulingConnettoreMultiplo
  2350.         MBeanOperationInfo enableSchedulingConnettoreMultiplo
  2351.         = new MBeanOperationInfo(ABILITA_SCHEDULING_CONNETTORE_MULTIPLO,"Abilita lo scheduling del connettore della porta identificato dai parametri",
  2352.             new MBeanParameterInfo[]{
  2353.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2354.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2355.             },
  2356.             String.class.getName(),
  2357.             MBeanOperationInfo.ACTION);
  2358.        
  2359.         // MetaData per l'operazione disableSchedulingConnettoreMultiplo
  2360.         MBeanOperationInfo disableSchedulingConnettoreMultiplo
  2361.         = new MBeanOperationInfo(DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO,"Disabilita lo scheduling del connettore della porta identificato dai parametri",
  2362.             new MBeanParameterInfo[]{
  2363.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2364.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2365.             },
  2366.             String.class.getName(),
  2367.             MBeanOperationInfo.ACTION);
  2368.        
  2369.         // MetaData per l'operazione enableSchedulingConnettoreMultiploByUsername
  2370.         MBeanOperationInfo enableSchedulingConnettoreMultiploByUsername
  2371.         = new MBeanOperationInfo(ABILITA_SCHEDULING_CONNETTORE_MULTIPLO_USERNAME,"Abilita lo scheduling del connettore della porta identificato dai parametri",
  2372.             new MBeanParameterInfo[]{
  2373.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2374.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2375.                 new MBeanParameterInfo("username",String.class.getName(),"Utente che effettua la richiesta")
  2376.             },
  2377.             String.class.getName(),
  2378.             MBeanOperationInfo.ACTION);
  2379.        
  2380.         // MetaData per l'operazione disableSchedulingConnettoreMultiploByUsername
  2381.         MBeanOperationInfo disableSchedulingConnettoreMultiploByUsername
  2382.         = new MBeanOperationInfo(DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO_USERNAME,"Disabilita lo scheduling del connettore della porta identificato dai parametri",
  2383.             new MBeanParameterInfo[]{
  2384.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2385.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2386.                 new MBeanParameterInfo("username",String.class.getName(),"Utente che effettua la richiesta")
  2387.             },
  2388.             String.class.getName(),
  2389.             MBeanOperationInfo.ACTION);
  2390.        
  2391.         // MetaData per l'operazione enableSchedulingConnettoreMultiploRuntimeRepository
  2392.         MBeanOperationInfo enableSchedulingConnettoreMultiploRuntimeRepository
  2393.         = new MBeanOperationInfo(ABILITA_SCHEDULING_CONNETTORE_MULTIPLO_RUNTIME,"Abilita lo scheduling del connettore della porta identificato dai parametri nel RuntimeRepository",
  2394.             new MBeanParameterInfo[]{
  2395.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2396.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2397.             },
  2398.             String.class.getName(),
  2399.             MBeanOperationInfo.ACTION);
  2400.        
  2401.         // MetaData per l'operazione disableSchedulingConnettoreMultiploRuntimeRepository
  2402.         MBeanOperationInfo disableSchedulingConnettoreMultiploRuntimeRepository
  2403.         = new MBeanOperationInfo(DISABILITA_SCHEDULING_CONNETTORE_MULTIPLO_RUNTIME,"Disabilita lo scheduling del connettore della porta identificato dai parametri nel RuntimeRepository",
  2404.             new MBeanParameterInfo[]{
  2405.                 new MBeanParameterInfo("nomePorta",String.class.getName(),"Nome della Porta"),
  2406.                 new MBeanParameterInfo("nomeConnettore",String.class.getName(),"Nome del Connettore"),
  2407.             },
  2408.             String.class.getName(),
  2409.             MBeanOperationInfo.ACTION);
  2410.        
  2411.         // MetaData per l'operazione ripulisciRiferimentiCacheAccordoCooperazione
  2412.         MBeanOperationInfo ripulisciRiferimentiCacheAccordoCooperazione
  2413.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_ACCORDO_COOPERAZIONE,"Ripulisce i riferimenti in cache dell'accordo di cooperazione identificato dal parametro id",
  2414.             new MBeanParameterInfo[]{
  2415.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo dell'accordo"),
  2416.             },
  2417.             String.class.getName(),
  2418.             MBeanOperationInfo.ACTION);
  2419.        
  2420.         // MetaData per l'operazione ripulisciRiferimentiCacheApi
  2421.         MBeanOperationInfo ripulisciRiferimentiCacheApi
  2422.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_API,"Ripulisce i riferimenti in cache dell'accordo identificato dal parametro id",
  2423.             new MBeanParameterInfo[]{
  2424.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo dell'accordo"),
  2425.             },
  2426.             String.class.getName(),
  2427.             MBeanOperationInfo.ACTION);
  2428.        
  2429.         // MetaData per l'operazione ripulisciRiferimentiCacheErogazione
  2430.         MBeanOperationInfo ripulisciRiferimentiCacheErogazione
  2431.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_EROGAZIONE,"Ripulisce i riferimenti in cache dell'erogazione identificata dal parametro id",
  2432.             new MBeanParameterInfo[]{
  2433.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo dell'erogazione"),
  2434.             },
  2435.             String.class.getName(),
  2436.             MBeanOperationInfo.ACTION);
  2437.        
  2438.         // MetaData per l'operazione ripulisciRiferimentiCacheFruizione
  2439.         MBeanOperationInfo ripulisciRiferimentiCacheFruizione
  2440.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_FRUIZIONE,"Ripulisce i riferimenti in cache della fruizione identificata dal parametro id",
  2441.             new MBeanParameterInfo[]{
  2442.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo della fruizione"),
  2443.             },
  2444.             String.class.getName(),
  2445.             MBeanOperationInfo.ACTION);
  2446.        
  2447.         // MetaData per l'operazione ripulisciRiferimentiCacheSoggetto
  2448.         MBeanOperationInfo ripulisciRiferimentiCacheSoggetto
  2449.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_SOGGETTO,"Ripulisce i riferimenti in cache del soggetto identificato dal parametro id",
  2450.             new MBeanParameterInfo[]{
  2451.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo del soggetto"),
  2452.             },
  2453.             String.class.getName(),
  2454.             MBeanOperationInfo.ACTION);
  2455.        
  2456.         // MetaData per l'operazione ripulisciRiferimentiCacheApplicativo
  2457.         MBeanOperationInfo ripulisciRiferimentiCacheApplicativo
  2458.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_APPLICATIVO,"Ripulisce i riferimenti in cache dell'applicativo identificato dal parametro id",
  2459.             new MBeanParameterInfo[]{
  2460.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo dell'applicativo"),
  2461.             },
  2462.             String.class.getName(),
  2463.             MBeanOperationInfo.ACTION);
  2464.        
  2465.         // MetaData per l'operazione ripulisciRiferimentiCacheRuolo
  2466.         MBeanOperationInfo ripulisciRiferimentiCacheRuolo
  2467.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_RUOLO,"Ripulisce i riferimenti in cache del ruolo identificato dal parametro id",
  2468.             new MBeanParameterInfo[]{
  2469.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo del ruolo"),
  2470.             },
  2471.             String.class.getName(),
  2472.             MBeanOperationInfo.ACTION);
  2473.        
  2474.         // MetaData per l'operazione ripulisciRiferimentiCacheScope
  2475.         MBeanOperationInfo ripulisciRiferimentiCacheScope
  2476.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_SCOPE,"Ripulisce i riferimenti in cache dello scope identificato dal parametro id",
  2477.             new MBeanParameterInfo[]{
  2478.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo dello scope"),
  2479.             },
  2480.             String.class.getName(),
  2481.             MBeanOperationInfo.ACTION);
  2482.        
  2483.         // MetaData per l'operazione ripulisciRiferimentiCacheTokenPolicyValidazione
  2484.         MBeanOperationInfo ripulisciRiferimentiCacheTokenPolicyValidazione
  2485.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_VALIDAZIONE,"Ripulisce i riferimenti in cache della token policy identificata dal parametro id",
  2486.             new MBeanParameterInfo[]{
  2487.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo della policy"),
  2488.             },
  2489.             String.class.getName(),
  2490.             MBeanOperationInfo.ACTION);
  2491.        
  2492.         // MetaData per l'operazione ripulisciRiferimentiCacheTokenPolicyNegoziazione
  2493.         MBeanOperationInfo ripulisciRiferimentiCacheTokenPolicyNegoziazione
  2494.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_TOKEN_POLICY_NEGOZIAZIONE,"Ripulisce i riferimenti in cache della token policy identificata dal parametro id",
  2495.             new MBeanParameterInfo[]{
  2496.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo della policy"),
  2497.             },
  2498.             String.class.getName(),
  2499.             MBeanOperationInfo.ACTION);
  2500.        
  2501.         // MetaData per l'operazione ripulisciRiferimentiCacheAttributeAuthority
  2502.         MBeanOperationInfo ripulisciRiferimentiCacheAttributeAuthority
  2503.         = new MBeanOperationInfo(RIPULISCI_RIFERIMENTI_CACHE_ATTRIBUTE_AUTHORITY,"Ripulisce i riferimenti in cache dell'Attribute Authority identificata dal parametro id",
  2504.             new MBeanParameterInfo[]{
  2505.                 new MBeanParameterInfo("id",long.class.getName(),"Identificativo dell'Authority"),
  2506.             },
  2507.             String.class.getName(),
  2508.             MBeanOperationInfo.ACTION);

  2509.         // Mbean costruttore
  2510.         MBeanConstructorInfo defaultConstructor = new MBeanConstructorInfo("Default Constructor","Crea e inizializza una nuova istanza del MBean",null);

  2511.         // Lista attributi
  2512.         MBeanAttributeInfo[] attributes = new MBeanAttributeInfo[]{cacheAbilitataVAR,livelloMsgDiagnosticiVAR,
  2513.                 livelloMsgDiagnosticiLog4JVAR,msgDiagnosticiAppenderVAR,tracciamentoAbilitatoVAR,
  2514.                 dumpBinarioPDAbilitatoVAR,dumpBinarioPAAbilitatoVAR,
  2515.                 tracciamentoAppenderVAR,
  2516.                 log4jDiagnosticaAbilitatoVAR, log4jOpenSPCoopAbilitatoVAR, log4jIntegrationManagerAbilitatoVAR,
  2517.                 log4jTracciamentoAbilitatoVAR, log4jDumpAbilitatoVAR,
  2518.                 erroriStatusCodeAbilitatoVAR, erroriInstanceIdAbilitatoVAR,
  2519.                 erroriForceSpecificErrorTypeInternalBadRequestVAR,
  2520.                 erroriForceSpecificErrorTypeBadResponseVAR, erroriForceSpecificErrorTypeInternalResponseErrorVAR,
  2521.                 erroriForceSpecificErrorTypeInternalErrorVAR,
  2522.                 erroriForceSpecificDetailsVAR,
  2523.                 erroriSoapUseGovWayStatusAsFaultCodeVAR, erroriSoapGenerateHttpHeaderGovWayCodeVAR,
  2524.                 timerConsegnaContenutiApplicativiVAR,
  2525.                 timerStatisticheOrarieVAR,timerStatisticheGiornaliereVAR,timerStatisticheSettimanaliVAR,timerStatisticheMensiliVAR,
  2526.                 timerEventiVAR, timerFileSystemRecoveryVAR,
  2527.                 timerGestoreBusteOnewayNonRiscontrateVAR, timerGestoreBusteAsincroneNonRiscontrateVAR,
  2528.                 timerGestoreMessaggiPuliziaMessaggiEliminatiVAR, timerGestoreMessaggiPuliziaMessaggiScadutiVAR, timerGestoreMessaggiPuliziaMessaggiNonGestitiVAR,
  2529.                 timerGestoreMessaggiPuliziaCorrelazioneApplicativaVAR, timerGestoreMessaggiVerificaConnessioniAttiveVAR,
  2530.                 timerGestorePuliziaMessaggiAnomaliVAR, timerGestoreRepositoryBusteVAR,
  2531.                 timerMonitoraggioRisorseThreadVAR, timerThresholdThreadVAR,
  2532.                 timerClusterDinamicoVAR,
  2533.                 timerRepositoryStatefulThreadVAR,
  2534.                 timerGestoreChiaviVAR, timerGestoreCacheChiaviVAR};
  2535.        
  2536.         // Lista Costruttori
  2537.         MBeanConstructorInfo[] constructors = new MBeanConstructorInfo[]{defaultConstructor};
  2538.        
  2539.         // Lista operazioni
  2540.         List<MBeanOperationInfo> listOperation = new ArrayList<>();
  2541.         listOperation.add(resetCacheOP);
  2542.         if(this.openspcoopProperties.isConfigurazioneCache_ConfigPrefill()){
  2543.             listOperation.add(prefillCacheOP);
  2544.         }
  2545.         listOperation.add(printStatCacheOP);
  2546.         listOperation.add(disabilitaCacheOP);
  2547.         listOperation.add(abilitaCacheParametriOP);
  2548.         listOperation.add(listKeysCacheOP);
  2549.         listOperation.add(getObjectCacheOP);
  2550.         listOperation.add(removeObjectCacheOP);
  2551.         listOperation.add(checkConnettoreById);
  2552.         listOperation.add(checkConnettoreByNome);
  2553.         listOperation.add(checkConnettoreTokenPolicyValidazione);
  2554.         listOperation.add(checkConnettoreTokenPolicyValidazione_2);
  2555.         listOperation.add(checkConnettoreTokenPolicyNegoziazione);
  2556.         listOperation.add(checkConnettoreAttributeAuthority);
  2557.         listOperation.add(getCertificatiConnettoreById);
  2558.         listOperation.add(getCertificatiConnettoreByNome);
  2559.         listOperation.add(getCertificatiConnettoreTokenPolicyValidazione);
  2560.         listOperation.add(getCertificatiConnettoreTokenPolicyValidazione_2);
  2561.         listOperation.add(getCertificatiConnettoreTokenPolicyNegoziazione);
  2562.         listOperation.add(getCertificatiConnettoreAttributeAuthority);
  2563.         listOperation.add(checkCertificatiConnettoreHttpsById);
  2564.         listOperation.add(checkCertificatoApplicativoById);
  2565.         listOperation.add(checkCertificatoApplicativoByNome);
  2566.         listOperation.add(checkCertificatoModIApplicativoById);
  2567.         listOperation.add(checkCertificatoModIApplicativoByNome);
  2568.         listOperation.add(checkCertificatiJvm);
  2569.         listOperation.add(checkProxyJvm);
  2570.         listOperation.add(checkCertificatiConnettoreHttpsTokenPolicyValidazione);
  2571.         listOperation.add(checkCertificatiConnettoreHttpsTokenPolicyValidazione_2);
  2572.         listOperation.add(checkCertificatiValidazioneJwtTokenPolicyValidazione);
  2573.         listOperation.add(checkCertificatiForwardToJwtTokenPolicyValidazione);
  2574.         listOperation.add(checkCertificatiConnettoreHttpsTokenPolicyNegoziazione);
  2575.         listOperation.add(checkCertificatiSignedJwtTokenPolicyNegoziazione);
  2576.         listOperation.add(checkCertificatiConnettoreHttpsAttributeAuthority);
  2577.         listOperation.add(checkCertificatiAttributeAuthorityJwtRichiesta);
  2578.         listOperation.add(checkCertificatiAttributeAuthorityJwtRisposta);
  2579.         listOperation.add(checkCertificatiModIErogazioneById);
  2580.         listOperation.add(checkCertificatiModIFruizioneById);
  2581.         listOperation.add(enablePortaDelegata);
  2582.         listOperation.add(disablePortaDelegata);
  2583.         listOperation.add(enablePortaApplicativa);
  2584.         listOperation.add(disablePortaApplicativa);
  2585.         listOperation.add(enableConnettoreMultiplo);
  2586.         listOperation.add(disableConnettoreMultiplo);
  2587.         listOperation.add(enableConnettoreMultiploByUsername);
  2588.         listOperation.add(disableConnettoreMultiploByUsername);
  2589.         listOperation.add(enableSchedulingConnettoreMultiplo);
  2590.         listOperation.add(disableSchedulingConnettoreMultiplo);
  2591.         listOperation.add(enableSchedulingConnettoreMultiploByUsername);
  2592.         listOperation.add(disableSchedulingConnettoreMultiploByUsername);
  2593.         listOperation.add(enableSchedulingConnettoreMultiploRuntimeRepository);
  2594.         listOperation.add(disableSchedulingConnettoreMultiploRuntimeRepository);
  2595.         listOperation.add(ripulisciRiferimentiCacheAccordoCooperazione);
  2596.         listOperation.add(ripulisciRiferimentiCacheApi);
  2597.         listOperation.add(ripulisciRiferimentiCacheErogazione);
  2598.         listOperation.add(ripulisciRiferimentiCacheFruizione);
  2599.         listOperation.add(ripulisciRiferimentiCacheSoggetto);
  2600.         listOperation.add(ripulisciRiferimentiCacheApplicativo);
  2601.         listOperation.add(ripulisciRiferimentiCacheRuolo);
  2602.         listOperation.add(ripulisciRiferimentiCacheScope);
  2603.         listOperation.add(ripulisciRiferimentiCacheTokenPolicyValidazione);
  2604.         listOperation.add(ripulisciRiferimentiCacheTokenPolicyNegoziazione);
  2605.         listOperation.add(ripulisciRiferimentiCacheAttributeAuthority);
  2606.         MBeanOperationInfo[] operations = listOperation.toArray(new MBeanOperationInfo[1]);
  2607.        
  2608.         return new MBeanInfo(className,description,attributes,constructors,operations,null);
  2609.     }
  2610.    
  2611.     /* Variabili per la gestione JMX */
  2612.     private Logger log;
  2613.     private Logger logConnettori;
  2614.     org.openspcoop2.pdd.config.ConfigurazionePdDManager configReader = null;
  2615.     org.openspcoop2.pdd.config.OpenSPCoop2Properties openspcoopProperties = null;
  2616.    
  2617.     private void logError(String msg, Exception e) {
  2618.         this.log.error(msg, e);
  2619.     }
  2620.    
  2621.     /* Costruttore */
  2622.     public ConfigurazionePdD(){
  2623.         this.log = OpenSPCoop2Logger.getLoggerOpenSPCoopCore();
  2624.         this.logConnettori = OpenSPCoop2Logger.getLoggerOpenSPCoopConnettori();
  2625.         this.configReader = org.openspcoop2.pdd.config.ConfigurazionePdDManager.getInstance();
  2626.         this.openspcoopProperties = org.openspcoop2.pdd.config.OpenSPCoop2Properties.getInstance();
  2627.                
  2628.         // Configurazione
  2629.         try{
  2630.             this.cacheAbilitata = ConfigurazionePdDReader.isCacheAbilitata();
  2631.         }catch(Exception e){
  2632.             this.log.error("Errore durante l'identificazione dello stato della cache");
  2633.         }
  2634.                
  2635.         // Messaggi diagnostici
  2636.         this.msgDiagnosticiLivelloSeverita = LogLevels.toOpenSPCoop2(this.configReader.getSeveritaMessaggiDiagnostici(),true);
  2637.         this.msgDiagnosticiLivelloSeveritaLog4J = LogLevels.toOpenSPCoop2(this.configReader.getSeveritaLog4JMessaggiDiagnostici(),true);
  2638.         this.log4jDiagnosticaAbilitato = OpenSPCoop2Logger.loggerMsgDiagnosticoAbilitato;
  2639.         this.log4jOpenSPCoopAbilitato = OpenSPCoop2Logger.loggerMsgDiagnosticoReadableAbilitato;
  2640.         this.log4jIntegrationManagerAbilitato = OpenSPCoop2Logger.loggerIntegrationManagerAbilitato;
  2641.        
  2642.         MessaggiDiagnostici msg = this.configReader.getOpenSPCoopAppenderMessaggiDiagnostici();
  2643.         if(msg!=null && msg.sizeOpenspcoopAppenderList()>0){
  2644.             this.msgDiagnosticiAppender = new String[msg.sizeOpenspcoopAppenderList()];
  2645.             for(int i=0; i<msg.sizeOpenspcoopAppenderList(); i++){
  2646.                 OpenspcoopAppender appender = msg.getOpenspcoopAppender(i);
  2647.                 this.msgDiagnosticiAppender[i] = ("Appender di tipo "+appender.getTipo()+", properties size:"+appender.sizePropertyList());
  2648.                 for(int j=0; j<appender.sizePropertyList(); j++){
  2649.                     this.msgDiagnosticiAppender[i] = this.msgDiagnosticiAppender[i] + "\n[nome="+
  2650.                         appender.getProperty(j).getNome() +" valore="+appender.getProperty(j).getValore()+"]";
  2651.                 }
  2652.             }
  2653.         }
  2654.                
  2655.         // Tracciamento
  2656.         this.tracciamentoAbilitato = this.configReader.tracciamentoBuste();
  2657.         this.dumpBinarioPDAbilitato = this.configReader.dumpBinarioPD();
  2658.         this.dumpBinarioPAAbilitato = this.configReader.dumpBinarioPA();
  2659.         this.log4jTracciamentoAbilitato = OpenSPCoop2Logger.loggerTracciamentoAbilitato;
  2660.         this.log4jDumpAbilitato = OpenSPCoop2Logger.loggerDumpAbilitato;
  2661.        
  2662.         Tracciamento tracciamento = this.configReader.getOpenSPCoopAppenderTracciamento();
  2663.         if(tracciamento!=null && tracciamento.sizeOpenspcoopAppenderList()>0){
  2664.             this.tracciamentoAppender = new String[tracciamento.sizeOpenspcoopAppenderList()];
  2665.             for(int i=0; i<tracciamento.sizeOpenspcoopAppenderList(); i++){
  2666.                 OpenspcoopAppender appender = tracciamento.getOpenspcoopAppender(i);
  2667.                 this.tracciamentoAppender[i]="Appender di tipo "+appender.getTipo()+", properties size:"+appender.sizePropertyList();
  2668.                 for(int j=0; j<appender.sizePropertyList(); j++){
  2669.                     this.tracciamentoAppender[i] = this.tracciamentoAppender[i] + "\n[nome="+
  2670.                         appender.getProperty(j).getNome() +" valore="+appender.getProperty(j).getValore()+"]";
  2671.                 }
  2672.             }
  2673.         }

  2674.     }
  2675.    
  2676.     public boolean isCacheAbilitata() {
  2677.         return this.cacheAbilitata;
  2678.     }
  2679.    
  2680.     /* Metodi di management JMX */
  2681.     public String resetCache(){
  2682.         try{
  2683.             if(!this.cacheAbilitata)
  2684.                 throw new CoreException("Cache non abilitata");
  2685.             org.openspcoop2.pdd.config.ConfigurazionePdDReader.resetCache();
  2686.             FileTraceConfig.resetFileTraceAssociatePorte();
  2687.             return JMXUtils.MSG_RESET_CACHE_EFFETTUATO_SUCCESSO;
  2688.         }catch(Exception e){
  2689.             this.logError(JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage(),e);
  2690.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2691.         }
  2692.     }
  2693.    
  2694.     public String prefillCache(){
  2695.         try{
  2696.             if(!this.cacheAbilitata)
  2697.                 throw new CoreException("Cache non abilitata");
  2698.             org.openspcoop2.pdd.config.ConfigurazionePdDReader.prefillCache(this.openspcoopProperties.getCryptConfigAutenticazioneApplicativi());
  2699.             return JMXUtils.MSG_PREFILL_CACHE_EFFETTUATO_SUCCESSO;
  2700.         }catch(Exception e){
  2701.             this.logError(JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage(),e);
  2702.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2703.         }
  2704.     }
  2705.    
  2706.     public String printStatCache(){
  2707.         try{
  2708.             if(!this.cacheAbilitata)
  2709.                 throw new CoreException("Cache non abilitata");
  2710.             return org.openspcoop2.pdd.config.ConfigurazionePdDReader.printStatsCache("\n");
  2711.         }catch(Exception e){
  2712.             this.logError(JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage(),e);
  2713.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2714.         }
  2715.     }
  2716.    
  2717.     public void abilitaCache(){
  2718.         try{
  2719.             org.openspcoop2.pdd.config.ConfigurazionePdDReader.abilitaCache();
  2720.             this.cacheAbilitata = true;
  2721.         }catch(Exception e){
  2722.             this.logError(e.getMessage(),e);
  2723.         }
  2724.     }

  2725.     public String abilitaCache(Long dimensioneCache,Boolean algoritmoCacheLRU,Long itemIdleTime,Long itemLifeSecond){
  2726.         try{
  2727.             org.openspcoop2.pdd.config.ConfigurazionePdDReader.abilitaCache(dimensioneCache,algoritmoCacheLRU,itemIdleTime,itemLifeSecond,
  2728.                     this.openspcoopProperties.getCryptConfigAutenticazioneApplicativi());
  2729.             this.cacheAbilitata = true;
  2730.             return JMXUtils.MSG_ABILITAZIONE_CACHE_EFFETTUATA;
  2731.         }catch(Exception e){
  2732.             this.logError(e.getMessage(),e);
  2733.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2734.         }
  2735.     }
  2736.    
  2737.     public void disabilitaCache() throws JMException{
  2738.         try{
  2739.             org.openspcoop2.pdd.config.ConfigurazionePdDReader.disabilitaCache();
  2740.             this.cacheAbilitata = false;
  2741.         }catch(Exception e){
  2742.             this.logError(e.getMessage(),e);
  2743.             throw new JMException(e.getMessage());
  2744.         }
  2745.     }
  2746.     public String disabilitaCacheConEsito() {
  2747.         try{
  2748.             disabilitaCache();
  2749.             return JMXUtils.MSG_DISABILITAZIONE_CACHE_EFFETTUATA;
  2750.         }catch(Exception e){
  2751.             this.logError(e.getMessage(),e);
  2752.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2753.         }
  2754.     }
  2755.    
  2756.     public String listKeysCache(){
  2757.         try{
  2758.             if(!this.cacheAbilitata)
  2759.                 throw new CoreException("Cache non abilitata");
  2760.             return org.openspcoop2.pdd.config.ConfigurazionePdDReader.listKeysCache("\n");
  2761.         }catch(Exception e){
  2762.             this.logError(JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage(),e);
  2763.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2764.         }
  2765.     }
  2766.    
  2767.     public String getObjectCache(String key){
  2768.         try{
  2769.             if(!this.cacheAbilitata)
  2770.                 throw new CoreException("Cache non abilitata");
  2771.             return org.openspcoop2.pdd.config.ConfigurazionePdDReader.getObjectCache(key);
  2772.         }catch(Exception e){
  2773.             this.logError(JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage(),e);
  2774.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2775.         }
  2776.     }
  2777.    
  2778.     public String removeObjectCache(String key){
  2779.         try{
  2780.             if(!this.cacheAbilitata)
  2781.                 throw new CoreException("Cache non abilitata");
  2782.             org.openspcoop2.pdd.config.ConfigurazionePdDReader.removeObjectCache(key);
  2783.             return JMXUtils.MSG_RIMOZIONE_CACHE_EFFETTUATA;
  2784.         }catch(Exception e){
  2785.             this.logError(JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage(),e);
  2786.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2787.         }
  2788.     }
  2789.    
  2790.     public void setMsgDiagnosticiLivelloSeverita(String livelloMsgDiagnostici)throws JMException{
  2791.         if(!"off".equals(livelloMsgDiagnostici) &&
  2792.                 !"fatal".equals(livelloMsgDiagnostici) &&
  2793.                 !"errorProtocol".equals(livelloMsgDiagnostici) &&
  2794.                 !"errorIntegration".equals(livelloMsgDiagnostici) &&
  2795.                 !"infoProtocol".equals(livelloMsgDiagnostici) &&
  2796.                 !"infoIntegration".equals(livelloMsgDiagnostici) &&
  2797.                 !"debugLow".equals(livelloMsgDiagnostici) &&
  2798.                 !"debugMedium".equals(livelloMsgDiagnostici) &&
  2799.                 !"debugHigh".equals(livelloMsgDiagnostici) &&
  2800.                 !"all".equals(livelloMsgDiagnostici)){
  2801.             throw new JMException("Livello "+livelloMsgDiagnostici+" non conosciuto");
  2802.         }
  2803.         this.msgDiagnosticiLivelloSeverita = livelloMsgDiagnostici;
  2804.         ConfigurazionePdDReader.livelloMessaggiDiagnosticiJMX = LogLevels.toLog4J(this.msgDiagnosticiLivelloSeverita);
  2805.         ConfigurazionePdDReader.severitaMessaggiDiagnosticiJMX = LogLevels.toOpenSPCoop2(this.msgDiagnosticiLivelloSeverita);
  2806.     }
  2807.    
  2808.     public void setMsgDiagnosticiLivelloSeveritaLog4J(String livelloMsgDiagnosticiLog4j)throws JMException{
  2809.         if(!"off".equals(livelloMsgDiagnosticiLog4j) &&
  2810.                 !"fatal".equals(livelloMsgDiagnosticiLog4j) &&
  2811.                 !"errorProtocol".equals(livelloMsgDiagnosticiLog4j) &&
  2812.                 !"errorIntegration".equals(livelloMsgDiagnosticiLog4j) &&
  2813.                 !"infoProtocol".equals(livelloMsgDiagnosticiLog4j) &&
  2814.                 !"infoIntegration".equals(livelloMsgDiagnosticiLog4j) &&
  2815.                 !"debugLow".equals(livelloMsgDiagnosticiLog4j) &&
  2816.                 !"debugMedium".equals(livelloMsgDiagnosticiLog4j) &&
  2817.                 !"debugHigh".equals(livelloMsgDiagnosticiLog4j) &&
  2818.                 !"all".equals(livelloMsgDiagnosticiLog4j)){
  2819.             throw new JMException("Livello "+livelloMsgDiagnosticiLog4j+" non conosciuto");
  2820.         }
  2821.         this.msgDiagnosticiLivelloSeveritaLog4J = livelloMsgDiagnosticiLog4j;
  2822.         ConfigurazionePdDReader.livelloLog4JMessaggiDiagnosticiJMX = LogLevels.toLog4J(this.msgDiagnosticiLivelloSeveritaLog4J);
  2823.         ConfigurazionePdDReader.severitaLog4JMessaggiDiagnosticiJMX = LogLevels.toOpenSPCoop2(this.msgDiagnosticiLivelloSeveritaLog4J);
  2824.     }
  2825.    
  2826.     public void setTracciamentoAbilitato(boolean v){
  2827.         this.tracciamentoAbilitato = v;
  2828.         ConfigurazionePdDReader.tracciamentoBusteJMX = v;
  2829.     }
  2830.    
  2831.     public void setDumpBinarioPD(boolean v){
  2832.         this.dumpBinarioPDAbilitato = v;
  2833.         ConfigurazionePdDReader.dumpBinarioPDJMX = v;
  2834.     }
  2835.    
  2836.     public void setDumpBinarioPA(boolean v){
  2837.         this.dumpBinarioPAAbilitato = v;
  2838.         ConfigurazionePdDReader.dumpBinarioPAJMX = v;
  2839.     }
  2840.    
  2841.     public void setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_BAD_REQUEST(boolean value) {
  2842.         try{
  2843.             ErroriProperties.setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_BAD_REQUEST(
  2844.                     value,
  2845.                     this.openspcoopProperties.getRootDirectory(), this.log, Loader.getInstance());
  2846.         }catch(Exception e){
  2847.             this.logError(e.getMessage(),e);
  2848.         }
  2849.     }
  2850.    
  2851.     public void setFORCE_SPECIFIC_ERROR_TYPE_FOR_BAD_RESPONSE(boolean value) {
  2852.         try{
  2853.             ErroriProperties.setFORCE_SPECIFIC_ERROR_TYPE_FOR_BAD_RESPONSE(
  2854.                     value,
  2855.                     this.openspcoopProperties.getRootDirectory(), this.log, Loader.getInstance());
  2856.         }catch(Exception e){
  2857.             this.logError(e.getMessage(),e);
  2858.         }
  2859.     }
  2860.    
  2861.     public void setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_RESPONSE_ERROR(boolean value) {
  2862.         try{
  2863.             ErroriProperties.setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_RESPONSE_ERROR(
  2864.                     value,
  2865.                     this.openspcoopProperties.getRootDirectory(), this.log, Loader.getInstance());
  2866.         }catch(Exception e){
  2867.             this.logError(e.getMessage(),e);
  2868.         }
  2869.     }
  2870.        
  2871.     public void setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_ERROR(boolean value) {
  2872.         try{
  2873.             ErroriProperties.setFORCE_SPECIFIC_ERROR_TYPE_FOR_INTERNAL_ERROR(
  2874.                     value,
  2875.                     this.openspcoopProperties.getRootDirectory(), this.log, Loader.getInstance());
  2876.         }catch(Exception e){
  2877.             this.logError(e.getMessage(),e);
  2878.         }
  2879.     }

  2880.     public String checkConnettoreById(long idConnettore) {
  2881.         try{
  2882.             ConnettoreCheck.check(idConnettore, false, this.logConnettori);
  2883.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  2884.         }catch(Exception e){
  2885.             this.logError(e.getMessage(),e);
  2886.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2887.         }
  2888.     }
  2889.    
  2890.     public String checkConnettoreByNome(String nomeConnettore) {
  2891.         try{
  2892.             ConnettoreCheck.check(nomeConnettore, false, this.logConnettori);
  2893.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  2894.         }catch(Exception e){
  2895.             this.logError(e.getMessage(),e);
  2896.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2897.         }
  2898.     }
  2899.    
  2900.     public String checkConnettoreTokenPolicyValidazione(String nomePolicy) {
  2901.         try{
  2902.             ConnettoreCheck.checkTokenPolicyValidazione(nomePolicy, this.logConnettori);
  2903.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  2904.         }catch(Exception e){
  2905.             this.logError(e.getMessage(),e);
  2906.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2907.         }
  2908.     }
  2909.     public String checkConnettoreTokenPolicyValidazione(String nomePolicy, String tipoConnettore) {
  2910.         try{
  2911.             ConnettoreCheck.checkTokenPolicyValidazione(nomePolicy, tipoConnettore, this.logConnettori);
  2912.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  2913.         }catch(Exception e){
  2914.             this.logError(e.getMessage(),e);
  2915.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2916.         }
  2917.     }
  2918.    
  2919.     public String checkConnettoreTokenPolicyNegoziazione(String nomePolicy) {
  2920.         try{
  2921.             ConnettoreCheck.checkTokenPolicyNegoziazione(nomePolicy, this.logConnettori);
  2922.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  2923.         }catch(Exception e){
  2924.             this.logError(e.getMessage(),e);
  2925.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2926.         }
  2927.     }
  2928.    
  2929.     public String checkConnettoreAttributeAuthority(String nomePolicy) {
  2930.         try{
  2931.             ConnettoreCheck.checkAttributeAuthority(nomePolicy, this.logConnettori);
  2932.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  2933.         }catch(Exception e){
  2934.             this.logError(e.getMessage(),e);
  2935.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2936.         }
  2937.     }
  2938.    
  2939.     public String getCertificatiConnettoreById(long idConnettore) {
  2940.         try{
  2941.             return ConnettoreCheck.getCertificati(idConnettore, true);
  2942.         }catch(Exception e){
  2943.             this.logError(e.getMessage(),e);
  2944.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2945.         }
  2946.     }
  2947.    
  2948.     public String getCertificatiConnettoreByNome(String nomeConnettore) {
  2949.         try{
  2950.             return ConnettoreCheck.getCertificati(nomeConnettore, true);
  2951.         }catch(Exception e){
  2952.             this.logError(e.getMessage(),e);
  2953.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2954.         }
  2955.     }
  2956.    
  2957.     public String getCertificatiConnettoreTokenPolicyValidazione(String nomePolicy) {
  2958.         try{
  2959.             return ConnettoreCheck.getCertificatiTokenPolicyValidazione(nomePolicy, this.logConnettori);
  2960.         }catch(Exception e){
  2961.             this.logError(e.getMessage(),e);
  2962.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2963.         }
  2964.     }
  2965.     public String getCertificatiConnettoreTokenPolicyValidazione(String nomePolicy, String tipoConnettore) {
  2966.         try{
  2967.             return ConnettoreCheck.getCertificatiTokenPolicyValidazione(nomePolicy, tipoConnettore, this.logConnettori);
  2968.         }catch(Exception e){
  2969.             this.logError(e.getMessage(),e);
  2970.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2971.         }
  2972.     }
  2973.    
  2974.     public String getCertificatiConnettoreTokenPolicyNegoziazione(String nomePolicy) {
  2975.         try{
  2976.             return ConnettoreCheck.getCertificatiTokenPolicyNegoziazione(nomePolicy, this.logConnettori);
  2977.         }catch(Exception e){
  2978.             this.logError(e.getMessage(),e);
  2979.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2980.         }
  2981.     }
  2982.    
  2983.     public String getCertificatiConnettoreAttributeAuthority(String nomePolicy) {
  2984.         try{
  2985.             return ConnettoreCheck.getCertificatiAttributeAuthority(nomePolicy, this.logConnettori);
  2986.         }catch(Exception e){
  2987.             this.logError(e.getMessage(),e);
  2988.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  2989.         }
  2990.     }
  2991.    
  2992.     public String checkCertificatiConnettoreHttpsById(long idConnettore, int sogliaWarningGiorni) {
  2993.         try{
  2994.             boolean addCertificateDetails = true;
  2995.             String separator = ": ";
  2996.             String newLine = "\n";
  2997.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiConnettoreHttpsByIdWithoutCache(idConnettore, sogliaWarningGiorni,
  2998.                     addCertificateDetails, separator, newLine);
  2999.             return statoCheck.toString(newLine);
  3000.         }catch(Exception e){
  3001.             this.logError(e.getMessage(),e);
  3002.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3003.         }
  3004.     }
  3005.    
  3006.     public String checkCertificatoApplicativoById(long idApplicativo, int sogliaWarningGiorni) {
  3007.         try{
  3008.             boolean addCertificateDetails = true;
  3009.             String separator = ": ";
  3010.             String newLine = "\n";
  3011.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatoApplicativoWithoutCache(idApplicativo, sogliaWarningGiorni,
  3012.                     addCertificateDetails, separator, newLine);
  3013.             return statoCheck.toString(newLine);
  3014.         }catch(Exception e){
  3015.             this.logError(e.getMessage(),e);
  3016.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3017.         }
  3018.     }
  3019.    
  3020.     public String checkCertificatoApplicativoByNome(String idApplicativo, int sogliaWarningGiorni) {
  3021.         try{
  3022.             if(!idApplicativo.contains("@") || !idApplicativo.contains("/")) {
  3023.                 throw new CoreException(FORMATO_NON_VALIDO_NOME_SOGGETTO);
  3024.             }
  3025.             String [] tmp = idApplicativo.split("@");
  3026.             if(tmp==null || tmp.length!=2 || tmp[0]==null || tmp[1]==null) {
  3027.                 throw new CoreException(FORMATO_NON_VALIDO_NOME_SOGGETTO);
  3028.             }
  3029.             else {
  3030.                 String nome = tmp[0];
  3031.                 if(!tmp[1].contains("/")) {
  3032.                     throw new CoreException(FORMATO_NON_VALIDO_NOME_SOGGETTO);
  3033.                 }
  3034.                 else {
  3035.                     String [] tmp2 = tmp[1].split("/");
  3036.                     if(tmp2==null || tmp2.length!=2 || tmp2[0]==null || tmp2[1]==null) {
  3037.                         throw new CoreException(FORMATO_NON_VALIDO_NOME_SOGGETTO);
  3038.                     }
  3039.                     else {
  3040.                         String tipoSoggetto = tmp2[0];
  3041.                         String nomeSoggetto = tmp2[1];
  3042.                         IDServizioApplicativo idSA = new IDServizioApplicativo();
  3043.                         idSA.setNome(nome);
  3044.                         idSA.setIdSoggettoProprietario(new IDSoggetto(tipoSoggetto, nomeSoggetto));
  3045.                        
  3046.                         boolean addCertificateDetails = true;
  3047.                         String separator = ": ";
  3048.                         String newLine = "\n";
  3049.                         CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatoApplicativoWithoutCache(idSA, sogliaWarningGiorni,
  3050.                                 addCertificateDetails, separator, newLine);
  3051.                         return statoCheck.toString(newLine);
  3052.                     }
  3053.                 }
  3054.             }
  3055.         }catch(Exception e){
  3056.             this.logError(e.getMessage(),e);
  3057.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3058.         }
  3059.     }
  3060.    
  3061.     public String checkCertificatoModiApplicativoById(long idApplicativo, int sogliaWarningGiorni) {
  3062.         try{
  3063.             boolean addCertificateDetails = true;
  3064.             String separator = ": ";
  3065.             String newLine = "\n";
  3066.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatoModiApplicativoWithoutCache(idApplicativo, sogliaWarningGiorni,
  3067.                     addCertificateDetails, separator, newLine);
  3068.             return statoCheck.toString(newLine);
  3069.         }catch(Exception e){
  3070.             this.logError(e.getMessage(),e);
  3071.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3072.         }
  3073.     }
  3074.    
  3075.     public String checkCertificatoModiApplicativoByNome(String idApplicativo, int sogliaWarningGiorni) {
  3076.         try{
  3077.             if(!idApplicativo.contains("@") || !idApplicativo.contains("/")) {
  3078.                 throw new CoreException(FORMATO_NON_VALIDO_NOME_SOGGETTO);
  3079.             }
  3080.             String [] tmp = idApplicativo.split("@");
  3081.             if(tmp==null || tmp.length!=2 || tmp[0]==null || tmp[1]==null) {
  3082.                 throw new CoreException(FORMATO_NON_VALIDO_NOME_SOGGETTO);
  3083.             }
  3084.             else {
  3085.                 String nome = tmp[0];
  3086.                 if(!tmp[1].contains("/")) {
  3087.                     throw new CoreException(FORMATO_NON_VALIDO_NOME_SOGGETTO);
  3088.                 }
  3089.                 else {
  3090.                     String [] tmp2 = tmp[1].split("/");
  3091.                     if(tmp2==null || tmp2.length!=2 || tmp2[0]==null || tmp2[1]==null) {
  3092.                         throw new CoreException(FORMATO_NON_VALIDO_NOME_SOGGETTO);
  3093.                     }
  3094.                     else {
  3095.                         String tipoSoggetto = tmp2[0];
  3096.                         String nomeSoggetto = tmp2[1];
  3097.                         IDServizioApplicativo idSA = new IDServizioApplicativo();
  3098.                         idSA.setNome(nome);
  3099.                         idSA.setIdSoggettoProprietario(new IDSoggetto(tipoSoggetto, nomeSoggetto));
  3100.                        
  3101.                         boolean addCertificateDetails = true;
  3102.                         String separator = ": ";
  3103.                         String newLine = "\n";
  3104.                         CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatoModiApplicativoWithoutCache(idSA, sogliaWarningGiorni,
  3105.                                 addCertificateDetails, separator, newLine);
  3106.                         return statoCheck.toString(newLine);
  3107.                     }
  3108.                 }
  3109.             }
  3110.         }catch(Exception e){
  3111.             this.logError(e.getMessage(),e);
  3112.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3113.         }
  3114.     }
  3115.    
  3116.     public String checkCertificatiJvm(int sogliaWarningGiorni) {
  3117.         try{
  3118.             boolean addCertificateDetails = true;
  3119.             String separator = ": ";
  3120.             String newLine = "\n";
  3121.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiJvm(sogliaWarningGiorni,
  3122.                     addCertificateDetails, separator, newLine);
  3123.             return statoCheck.toString(newLine);
  3124.         }catch(Exception e){
  3125.             this.logError(e.getMessage(),e);
  3126.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3127.         }
  3128.     }
  3129.    
  3130.     public String checkProxyJvm() {
  3131.         try{
  3132.             ConnettoreCheck.checkProxyJvm(this.logConnettori);
  3133.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3134.         }catch(Exception e){
  3135.             this.logError(e.getMessage(),e);
  3136.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3137.         }
  3138.     }
  3139.    
  3140.     public String checkCertificatiConnettoreHttpsTokenPolicyValidazione(String nomePolicy, int sogliaWarningGiorni) {
  3141.         try{
  3142.             boolean addCertificateDetails = true;
  3143.             String separator = ": ";
  3144.             String newLine = "\n";
  3145.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiConnettoreHttpsTokenPolicyValidazione(nomePolicy, sogliaWarningGiorni,
  3146.                     addCertificateDetails, separator, newLine);
  3147.             return statoCheck.toString(newLine);
  3148.         }catch(Exception e){
  3149.             this.logError(e.getMessage(),e);
  3150.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3151.         }
  3152.     }
  3153.     public String checkCertificatiConnettoreHttpsTokenPolicyValidazione(String nomePolicy, String tipo, int sogliaWarningGiorni) {
  3154.         try{
  3155.             boolean addCertificateDetails = true;
  3156.             String separator = ": ";
  3157.             String newLine = "\n";
  3158.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiConnettoreHttpsTokenPolicyValidazione(nomePolicy, tipo, sogliaWarningGiorni,
  3159.                     addCertificateDetails, separator, newLine);
  3160.             return statoCheck.toString(newLine);
  3161.         }catch(Exception e){
  3162.             this.logError(e.getMessage(),e);
  3163.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3164.         }
  3165.     }

  3166.     public String checkCertificatiValidazioneJwtTokenPolicyValidazione(String nomePolicy, int sogliaWarningGiorni) {
  3167.         try{
  3168.             boolean addCertificateDetails = true;
  3169.             String separator = ": ";
  3170.             String newLine = "\n";
  3171.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiValidazioneJwtTokenPolicyValidazione(nomePolicy, sogliaWarningGiorni,
  3172.                     addCertificateDetails, separator, newLine);
  3173.             return statoCheck.toString(newLine);
  3174.         }catch(Exception e){
  3175.             this.logError(e.getMessage(),e);
  3176.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3177.         }
  3178.     }
  3179.    
  3180.     public String checkCertificatiForwardToJwtTokenPolicyValidazione(String nomePolicy, int sogliaWarningGiorni) {
  3181.         try{
  3182.             boolean addCertificateDetails = true;
  3183.             String separator = ": ";
  3184.             String newLine = "\n";
  3185.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiForwardToJwtTokenPolicyValidazione(nomePolicy, sogliaWarningGiorni,
  3186.                     addCertificateDetails, separator, newLine);
  3187.             return statoCheck.toString(newLine);
  3188.         }catch(Exception e){
  3189.             this.logError(e.getMessage(),e);
  3190.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3191.         }
  3192.     }
  3193.    
  3194.     public String checkCertificatiConnettoreHttpsTokenPolicyNegoziazione(String nomePolicy, int sogliaWarningGiorni) {
  3195.         try{
  3196.             boolean addCertificateDetails = true;
  3197.             String separator = ": ";
  3198.             String newLine = "\n";
  3199.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiConnettoreHttpsTokenPolicyNegoziazione(nomePolicy, sogliaWarningGiorni,
  3200.                     addCertificateDetails, separator, newLine);
  3201.             return statoCheck.toString(newLine);
  3202.         }catch(Exception e){
  3203.             this.logError(e.getMessage(),e);
  3204.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3205.         }
  3206.     }
  3207.    
  3208.     public String checkCertificatiSignedJwtTokenPolicyNegoziazione(String nomePolicy, int sogliaWarningGiorni) {
  3209.         try{
  3210.             boolean addCertificateDetails = true;
  3211.             String separator = ": ";
  3212.             String newLine = "\n";
  3213.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiSignedJwtTokenPolicyNegoziazione(nomePolicy, sogliaWarningGiorni,
  3214.                     addCertificateDetails, separator, newLine);
  3215.             return statoCheck.toString(newLine);
  3216.         }catch(Exception e){
  3217.             this.logError(e.getMessage(),e);
  3218.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3219.         }
  3220.     }
  3221.    
  3222.     public String checkCertificatiConnettoreHttpsAttributeAuthority(String nomePolicy, int sogliaWarningGiorni) {
  3223.         try{
  3224.             boolean addCertificateDetails = true;
  3225.             String separator = ": ";
  3226.             String newLine = "\n";
  3227.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiConnettoreHttpsAttributeAuthority(nomePolicy, sogliaWarningGiorni,
  3228.                     addCertificateDetails, separator, newLine);
  3229.             return statoCheck.toString(newLine);
  3230.         }catch(Exception e){
  3231.             this.logError(e.getMessage(),e);
  3232.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3233.         }
  3234.     }
  3235.    
  3236.     public String checkCertificatiAttributeAuthorityJwtRichiesta(String nomePolicy, int sogliaWarningGiorni) {
  3237.         try{
  3238.             boolean addCertificateDetails = true;
  3239.             String separator = ": ";
  3240.             String newLine = "\n";
  3241.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiAttributeAuthorityJwtRichiesta(nomePolicy, sogliaWarningGiorni,
  3242.                     addCertificateDetails, separator, newLine);
  3243.             return statoCheck.toString(newLine);
  3244.         }catch(Exception e){
  3245.             this.logError(e.getMessage(),e);
  3246.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3247.         }
  3248.     }
  3249.    
  3250.    
  3251.     public String checkCertificatiAttributeAuthorityJwtRisposta(String nomePolicy, int sogliaWarningGiorni) {
  3252.         try{
  3253.             boolean addCertificateDetails = true;
  3254.             String separator = ": ";
  3255.             String newLine = "\n";
  3256.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiAttributeAuthorityJwtRisposta(nomePolicy, sogliaWarningGiorni,
  3257.                     addCertificateDetails, separator, newLine);
  3258.             return statoCheck.toString(newLine);
  3259.         }catch(Exception e){
  3260.             this.logError(e.getMessage(),e);
  3261.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3262.         }
  3263.     }
  3264.    
  3265.     public String checkCertificatiMessageSecurityErogazioneById(long idErogazione, int sogliaWarningGiorni) {
  3266.         try{
  3267.             boolean addCertificateDetails = true;
  3268.             String separator = ": ";
  3269.             String newLine = "\n";
  3270.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiMessageSecurityErogazioneById(idErogazione, sogliaWarningGiorni,
  3271.                     addCertificateDetails, separator, newLine);
  3272.             return statoCheck.toString(newLine);
  3273.         }catch(Exception e){
  3274.             this.log.error(e.getMessage(),e);
  3275.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3276.         }
  3277.     }
  3278.    
  3279.     public String checkCertificatiMessageSecurityFruizioneById(long idFruizione, int sogliaWarningGiorni) {
  3280.         try{
  3281.             boolean addCertificateDetails = true;
  3282.             String separator = ": ";
  3283.             String newLine = "\n";
  3284.             CertificateCheck statoCheck = ConfigurazionePdDManager.getInstance().checkCertificatiMessageSecurityFruizioneById(idFruizione, sogliaWarningGiorni,
  3285.                     addCertificateDetails, separator, newLine);
  3286.             return statoCheck.toString(newLine);
  3287.         }catch(Exception e){
  3288.             this.log.error(e.getMessage(),e);
  3289.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3290.         }
  3291.     }
  3292.    
  3293.     public String updateStatoPortaDelegata(String nomePorta, boolean enable) {
  3294.         try{
  3295.             IDPortaDelegata idPD = new IDPortaDelegata();
  3296.             idPD.setNome(nomePorta);
  3297.             this.configReader.updateStatoPortaDelegata(idPD, enable ? StatoFunzionalita.ABILITATO : StatoFunzionalita.DISABILITATO);
  3298.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3299.         }catch(Exception e){
  3300.             this.logError(e.getMessage(),e);
  3301.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3302.         }
  3303.     }
  3304.    
  3305.     public String updateStatoPortaApplicativa(String nomePorta, boolean enable) {
  3306.         try{
  3307.             IDPortaApplicativa idPA = new IDPortaApplicativa();
  3308.             idPA.setNome(nomePorta);
  3309.             this.configReader.updateStatoPortaApplicativa(idPA, enable ? StatoFunzionalita.ABILITATO : StatoFunzionalita.DISABILITATO);
  3310.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3311.         }catch(Exception e){
  3312.             this.logError(e.getMessage(),e);
  3313.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3314.         }
  3315.     }
  3316.    
  3317.     public String updateStatoConnettoreMultiplo(String nomePorta, String nomeConnettore, boolean enable) {
  3318.         return updateStatoConnettoreMultiplo(nomePorta, nomeConnettore, null, enable);
  3319.     }
  3320.     public String updateStatoConnettoreMultiplo(String nomePorta, String nomeConnettore, String username, boolean enable) {
  3321.         try{
  3322.             IDPortaApplicativa idPA = new IDPortaApplicativa();
  3323.             idPA.setNome(nomePorta);
  3324.             String nomeServizioApplicativo = null;
  3325.             if(username!=null) {
  3326.                 nomeServizioApplicativo = this.configReader.updateStatoConnettoreMultiplo(idPA, nomeConnettore, username, enable ? StatoFunzionalita.ABILITATO : StatoFunzionalita.DISABILITATO);
  3327.             }
  3328.             else {
  3329.                 nomeServizioApplicativo = this.configReader.updateStatoConnettoreMultiplo(idPA, nomeConnettore, enable ? StatoFunzionalita.ABILITATO : StatoFunzionalita.DISABILITATO);
  3330.             }
  3331.             if(nomeServizioApplicativo==null) {
  3332.                 throw new CoreException("Connettore '"+nomeConnettore+"' non trovato nella porta '"+nomePorta+"'");
  3333.             }
  3334.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3335.         }catch(Exception e){
  3336.             this.logError(e.getMessage(),e);
  3337.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3338.         }
  3339.     }
  3340.    
  3341.     public String updateSchedulingConnettoreMultiplo(String nomePorta, String nomeConnettore, boolean enable) {
  3342.         return updateSchedulingConnettoreMultiplo(nomePorta, nomeConnettore, null, enable);
  3343.     }
  3344.     public String updateSchedulingConnettoreMultiplo(String nomePorta, String nomeConnettore, String username, boolean enable) {
  3345.         try{
  3346.             IDPortaApplicativa idPA = new IDPortaApplicativa();
  3347.             idPA.setNome(nomePorta);
  3348.             String nomeServizioApplicativo = null;
  3349.             if(username!=null) {
  3350.                 nomeServizioApplicativo = this.configReader.updateSchedulingConnettoreMultiplo(idPA, nomeConnettore, username, enable ? StatoFunzionalita.ABILITATO : StatoFunzionalita.DISABILITATO);
  3351.             }
  3352.             else {
  3353.                 nomeServizioApplicativo = this.configReader.updateSchedulingConnettoreMultiplo(idPA, nomeConnettore, enable ? StatoFunzionalita.ABILITATO : StatoFunzionalita.DISABILITATO);
  3354.             }
  3355.             if(nomeServizioApplicativo==null) {
  3356.                 throw new CoreException("Connettore '"+nomeConnettore+"' non trovato nella porta '"+nomePorta+"'");
  3357.             }
  3358.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3359.         }catch(Exception e){
  3360.             this.logError(e.getMessage(),e);
  3361.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3362.         }
  3363.     }
  3364.    
  3365.     public String updateSchedulingConnettoreMultiploMessaggiPresiInCarico(String nomePorta, String nomeConnettore, boolean enable) {
  3366.         try{
  3367.             IDPortaApplicativa idPA = new IDPortaApplicativa();
  3368.             idPA.setNome(nomePorta);
  3369.             PortaApplicativa pa = this.configReader.getPortaApplicativa(idPA, null); // prendo volutamente quello in cache
  3370.             String nomeServizioApplicativo = null;
  3371.             if(pa.sizeServizioApplicativoList()>0) {
  3372.                 for (PortaApplicativaServizioApplicativo paSA : pa.getServizioApplicativoList()) {
  3373.                     String nomePaSA = paSA.getDatiConnettore()!= null ? paSA.getDatiConnettore().getNome() : CostantiConfigurazione.NOME_CONNETTORE_DEFAULT;
  3374.                     if(nomeConnettore.equals(nomePaSA)) {
  3375.                         nomeServizioApplicativo = paSA.getNome();
  3376.                         break;
  3377.                     }
  3378.                 }
  3379.             }
  3380.             if(nomeServizioApplicativo==null) {
  3381.                 throw new CoreException("Connettore '"+nomeConnettore+"' non trovato nella porta '"+nomePorta+"'");
  3382.             }
  3383.            
  3384.             DBManager dbManager = DBManager.getInstance();
  3385.             Resource resource = null;
  3386.             IDSoggetto dominio = this.openspcoopProperties.getIdentitaPortaDefaultWithoutProtocol();
  3387.             String modulo = this.getClass().getName()+".schedulingConnettoreMultiplo";
  3388.             try {
  3389.                 resource = dbManager.getResource(dominio, modulo, null);
  3390.                 Connection c = (Connection) resource.getResource();
  3391.                 boolean debug = this.openspcoopProperties.isTimerConsegnaContenutiApplicativiSchedulingDebug();
  3392.                 boolean checkEliminazioneLogica = this.openspcoopProperties.isTimerConsegnaContenutiApplicativiSchedulingCheckEliminazioneLogica();
  3393.                 int row = -1;
  3394.                 String op = "";
  3395.                 if(enable) {
  3396.                     op = "abilitato";
  3397.                     row = GestoreMessaggi.abilitaSchedulingMessaggiDaRiconsegnareIntoBox(nomeServizioApplicativo, checkEliminazioneLogica,
  3398.                             OpenSPCoop2Logger.getLoggerOpenSPCoopConsegnaContenutiSql(debug), c,  debug);
  3399.                 }else {
  3400.                     op = "disabilitato";
  3401.                     row = GestoreMessaggi.disabilitaSchedulingMessaggiDaRiconsegnareIntoBox(nomeServizioApplicativo, checkEliminazioneLogica,
  3402.                             OpenSPCoop2Logger.getLoggerOpenSPCoopConsegnaContenutiSql(debug), c,  debug);
  3403.                 }
  3404.                 if(row>=0) {
  3405.                     return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO_PREFIX+op+" scheduling in "+row+" messagg"+(row==1 ? "io" : "i");
  3406.                 }
  3407.             }finally {
  3408.                 try{
  3409.                     dbManager.releaseResource(dominio, modulo, resource);
  3410.                 }catch(Exception eClose){
  3411.                     // close
  3412.                 }
  3413.             }
  3414.            
  3415.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3416.         }catch(Exception e){
  3417.             this.logError(e.getMessage(),e);
  3418.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3419.         }
  3420.     }
  3421.    
  3422.     public String ripulisciRiferimentiCacheAccordoCooperazione(long id) {
  3423.         try{
  3424.             GestoreCacheCleaner.removeAccordoCooperazione(id);
  3425.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3426.         }catch(Exception e){
  3427.             this.logError(e.getMessage(),e);
  3428.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3429.         }
  3430.     }
  3431.    
  3432.     public String ripulisciRiferimentiCacheApi(long id) {
  3433.         try{
  3434.             GestoreCacheCleaner.removeAccordoServizioParteComune(id);
  3435.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3436.         }catch(Exception e){
  3437.             this.logError(e.getMessage(),e);
  3438.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3439.         }
  3440.     }
  3441.    
  3442.     public String ripulisciRiferimentiCacheErogazione(long id) {
  3443.         try{
  3444.             GestoreCacheCleaner.removeErogazione(id);
  3445.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3446.         }catch(Exception e){
  3447.             this.logError(e.getMessage(),e);
  3448.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3449.         }
  3450.     }
  3451.    
  3452.     public String ripulisciRiferimentiCacheFruizione(long id) {
  3453.         try{
  3454.             GestoreCacheCleaner.removeFruizione(id);
  3455.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3456.         }catch(Exception e){
  3457.             this.logError(e.getMessage(),e);
  3458.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3459.         }
  3460.     }
  3461.    
  3462.     public String ripulisciRiferimentiCacheSoggetto(long id) {
  3463.         try{
  3464.             GestoreCacheCleaner.removeSoggetto(id);
  3465.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3466.         }catch(Exception e){
  3467.             this.logError(e.getMessage(),e);
  3468.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3469.         }
  3470.     }
  3471.    
  3472.     public String ripulisciRiferimentiCacheApplicativo(long id) {
  3473.         try{
  3474.             GestoreCacheCleaner.removeApplicativo(id);
  3475.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3476.         }catch(Exception e){
  3477.             this.logError(e.getMessage(),e);
  3478.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3479.         }
  3480.     }
  3481.    
  3482.     public String ripulisciRiferimentiCacheRuolo(long id) {
  3483.         try{
  3484.             GestoreCacheCleaner.removeRuolo(id);
  3485.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3486.         }catch(Exception e){
  3487.             this.logError(e.getMessage(),e);
  3488.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3489.         }
  3490.     }
  3491.    
  3492.     public String ripulisciRiferimentiCacheScope(long id) {
  3493.         try{
  3494.             GestoreCacheCleaner.removeScope(id);
  3495.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3496.         }catch(Exception e){
  3497.             this.logError(e.getMessage(),e);
  3498.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3499.         }
  3500.     }
  3501.    
  3502.     public String ripulisciRiferimentiCacheTokenPolicyValidazione(long id) {
  3503.         try{
  3504.             GestoreCacheCleaner.removeGenericProperties(id);
  3505.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3506.         }catch(Exception e){
  3507.             this.logError(e.getMessage(),e);
  3508.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3509.         }
  3510.     }
  3511.    
  3512.     public String ripulisciRiferimentiCacheTokenPolicyNegoziazione(long id) {
  3513.         try{
  3514.             GestoreCacheCleaner.removeGenericProperties(id);
  3515.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3516.         }catch(Exception e){
  3517.             this.logError(e.getMessage(),e);
  3518.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3519.         }
  3520.     }
  3521.    
  3522.     public String ripulisciRiferimentiCacheAttributeAuthority(long id) {
  3523.         try{
  3524.             GestoreCacheCleaner.removeGenericProperties(id);
  3525.             return JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  3526.         }catch(Exception e){
  3527.             this.logError(e.getMessage(),e);
  3528.             return JMXUtils.MSG_OPERAZIONE_NON_EFFETTUATA+e.getMessage();
  3529.         }
  3530.     }

  3531. }