ConfigurazioneSistemaAdd.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.web.ctrlstat.servlet.config;

  21. import java.util.ArrayList;
  22. import java.util.Arrays;
  23. import java.util.HashMap;
  24. import java.util.List;
  25. import java.util.Map;

  26. import javax.servlet.http.HttpServletRequest;
  27. import javax.servlet.http.HttpServletResponse;
  28. import javax.servlet.http.HttpSession;

  29. import org.apache.struts.action.Action;
  30. import org.apache.struts.action.ActionForm;
  31. import org.apache.struts.action.ActionForward;
  32. import org.apache.struts.action.ActionMapping;
  33. import org.openspcoop2.core.config.constants.CostantiConfigurazione;
  34. import org.openspcoop2.monitor.engine.alarm.AlarmEngineConfig;
  35. import org.openspcoop2.monitor.engine.alarm.utils.AllarmiUtils;
  36. import org.openspcoop2.pdd.core.jmx.JMXUtils;
  37. import org.openspcoop2.utils.Utilities;
  38. import org.openspcoop2.web.ctrlstat.core.ControlStationCore;
  39. import org.openspcoop2.web.ctrlstat.driver.DriverControlStationException;
  40. import org.openspcoop2.web.ctrlstat.servlet.GeneralHelper;
  41. import org.openspcoop2.web.ctrlstat.servlet.pdd.PddCostanti;
  42. import org.openspcoop2.web.lib.mvc.Costanti;
  43. import org.openspcoop2.web.lib.mvc.DataElement;
  44. import org.openspcoop2.web.lib.mvc.Dialog;
  45. import org.openspcoop2.web.lib.mvc.ForwardParams;
  46. import org.openspcoop2.web.lib.mvc.GeneralData;
  47. import org.openspcoop2.web.lib.mvc.MessageType;
  48. import org.openspcoop2.web.lib.mvc.PageData;
  49. import org.openspcoop2.web.lib.mvc.Parameter;
  50. import org.openspcoop2.web.lib.mvc.ServletUtils;

  51. /**
  52.  * ConfigurazioneSistemaAdd
  53.  *
  54.  * @author Andrea Poli (apoli@link.it)
  55.  * @author Stefano Corallo (corallo@link.it)
  56.  * @author Sandra Giangrandi (sandra@link.it)
  57.  * @author $Author$
  58.  * @version $Rev$, $Date$
  59.  *
  60.  */
  61. public final class ConfigurazioneSistemaAdd extends Action {



  62.     @Override
  63.     public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {

  64.         HttpSession session = request.getSession(true);

  65.         // Inizializzo PageData
  66.         PageData pd = new PageData();

  67.         GeneralHelper generalHelper = new GeneralHelper(session);

  68.         // Inizializzo GeneralData
  69.         GeneralData gd = generalHelper.initGeneralData(request);

  70.        
  71.         try {
  72.             ConfigurazioneHelper confHelper = new ConfigurazioneHelper(request, pd, session);

  73.             // Preparo il menu
  74.             confHelper.makeMenu();

  75.             // Prendo il nome della porta
  76.             ConfigurazioneCore confCore = new ConfigurazioneCore();

  77.             // Prendo la lista di aliases
  78.             List<String> aliases = confCore.getJmxPdDAliases();
  79.             if(aliases==null || aliases.isEmpty()){
  80.                 throw new DriverControlStationException("Pagina non prevista, la sezione configurazione non permette di accedere a questa pagina, se la configurazione non e' corretta");
  81.             }
  82.            
  83.             String [] aliasNodi = confHelper.getParameterValues(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_NODI_CLUSTER);
  84.             String alias = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_NODO_CLUSTER);
  85.             String nomeCache = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_NOME_CACHE);
  86.             String nomeMetodo = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_NOME_METODO);

  87.             if(
  88.                 (alias==null || "".equals(alias))
  89.                 &&
  90.                 (aliases.size()>1)
  91.             ){
  92.                    
  93.                 boolean error = false;
  94.                
  95.                 if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_RESET_ALL_CACHES.equals(nomeCache) &&
  96.                         ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_NOME_METODO_RESET_ALL_CACHE_ALL_NODES.equals(nomeMetodo)) {
  97.                     // nessun vincolo
  98.                 }
  99.                 else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_RESET_SELECTED_CACHES.equals(nomeCache) &&
  100.                         ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_NOME_METODO_RESET_ALL_CACHE_SELECTED_NODES.equals(nomeMetodo)) {
  101.                     if((aliasNodi==null || aliasNodi.length<=0)) {
  102.                         pd.setMessage("L'operazione richiesta richiede la selezione di almeno un "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_NODO_CLUSTER, MessageType.ERROR);
  103.                         error=true;
  104.                     }
  105.                 }
  106.                 else {
  107.                     if(!confHelper.isEditModeInProgress()) {
  108.                         if((aliasNodi==null || aliasNodi.length<=0)) {
  109.                             pd.setMessage("L'operazione richiesta richiede la selezione di un "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_NODO_CLUSTER, MessageType.ERROR);
  110.                             error=true;
  111.                         }
  112.                         else if(aliasNodi.length>1) {
  113.                             pd.setMessage("L'operazione richiesta richiede la selezione di un solo "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_NODO_CLUSTER+"; ne sono stati selezionati "+aliasNodi.length, MessageType.ERROR);
  114.                             error=true;
  115.                         }
  116.                         else {
  117.                             alias = aliasNodi[0];
  118.                         }
  119.                     }
  120.                 }

  121.                 if(error) {
  122.                     // setto la barra del titolo
  123.                     List<Parameter> lstParam = new ArrayList<>();

  124.                     lstParam.add(new Parameter(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_RUNTIME,
  125.                              null));

  126.                     ServletUtils.setPageDataTitle(pd, lstParam);
  127.                    
  128.                     // preparo i campi
  129.                     List<DataElement> dati = new ArrayList<>();
  130.                     dati.add(ServletUtils.getDataElementForEditModeFinished());
  131.                    
  132.                     pd.setLabelBottoneInvia(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_RUNTIME_ACCEDI);
  133.                    
  134.                     dati = confHelper.addConfigurazioneSistemaSelectListNodiCluster(dati, aliasNodi);
  135.                    
  136.                     pd.setDati(dati);
  137.                    
  138.                     ServletUtils.setGeneralAndPageDataIntoSession(request, session, gd, pd);
  139.        
  140.                     return ServletUtils.getStrutsForwardEditModeInProgress(mapping,
  141.                             ConfigurazioneCostanti.OBJECT_NAME_CONFIGURAZIONE_SISTEMA,
  142.                             ForwardParams.ADD());
  143.                 }
  144.                    
  145.             }
  146.            
  147.            
  148.             String nomeParametroPostBack = confHelper.getPostBackElementName();
  149.            
  150.            
  151.             if(alias==null || "".equals(alias)){
  152.                
  153.                 if(aliases.size()==1){
  154.                     alias = aliases.get(0);
  155.                 }
  156.                 else{
  157.                
  158.                     List<String> aliasesForResetAllCaches = null;
  159.                    
  160.                     if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_RESET_ALL_CACHES.equals(nomeCache) &&
  161.                             ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_NOME_METODO_RESET_ALL_CACHE_ALL_NODES.equals(nomeMetodo)) {
  162.                         aliasesForResetAllCaches = new ArrayList<>();
  163.                         aliasesForResetAllCaches.addAll(aliases);
  164.                         aliasNodi = null; // svuoto per non creare confusione
  165.                     }
  166.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_RESET_SELECTED_CACHES.equals(nomeCache) &&
  167.                             ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_NOME_METODO_RESET_ALL_CACHE_SELECTED_NODES.equals(nomeMetodo)) {
  168.                         aliasesForResetAllCaches = new ArrayList<>();
  169.                         if(aliasNodi!=null && aliasNodi.length>0) {
  170.                             aliasesForResetAllCaches.addAll(Arrays.asList(aliasNodi));
  171.                         }
  172.                         aliasNodi = null; // svuoto
  173.                     }
  174.                    
  175.                     if(aliasesForResetAllCaches!=null && !aliasesForResetAllCaches.isEmpty()) {
  176.                         boolean rilevatoErrore = false;
  177.                         StringBuilder messagePerOperazioneEffettuataSB = new StringBuilder();
  178.                         int index = 0;
  179.                         for (String aliasForResetCache : aliasesForResetAllCaches) {
  180.                             StringBuilder bfExternal = new StringBuilder();
  181.                             String descrizione = confCore.getJmxPdDDescrizione(aliasForResetCache);
  182.                             if(index>0) {
  183.                                 bfExternal.append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  184.                             }
  185.                             bfExternal.append(ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_NODO_CLUSTER).append(" ").append(descrizione).append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  186.                             List<String> caches = confCore.getJmxPdDCaches(aliasForResetCache);
  187.                             if(caches!=null && !caches.isEmpty()){
  188.                                
  189.                                 Map<String, List<String>> esitiCache = new HashMap<>();
  190.                                 /**StringBuilder bfCaches = new StringBuilder();*/
  191.                                 for (String cache : caches) {
  192.                                                                        
  193.                                     String stato = null;
  194.                                     try{
  195.                                         stato = confCore.getInvoker().readJMXAttribute(aliasForResetCache,confCore.getJmxPdDConfigurazioneSistemaType(aliasForResetCache),
  196.                                                 cache,
  197.                                                 confCore.getJmxPdDCacheNomeAttributoCacheAbilitata(aliasForResetCache));
  198.                                         if(stato.equalsIgnoreCase("true")){
  199.                                             stato = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ABILITATA;
  200.                                         }
  201.                                         else if(stato.equalsIgnoreCase("false")){
  202.                                             stato = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_DISABILITATA;
  203.                                         }
  204.                                         else{
  205.                                             throw new DriverControlStationException("Stato ["+stato+"] sconosciuto");
  206.                                         }
  207.                                     }catch(Exception e){
  208.                                         ControlStationCore.logError("Errore durante la lettura dello stato della cache ["+cache+"](jmxResourcePdD) (node:"+aliasForResetCache+"): "+e.getMessage(),e);
  209.                                         stato = ConfigurazioneCostanti.LABEL_INFORMAZIONE_NON_DISPONIBILE;
  210.                                         rilevatoErrore = true;
  211.                                        
  212.                                         /**if(bfCaches.length()>0){
  213.                                             bfCaches.append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  214.                                         }
  215.                                         bfCaches.append("- Cache ["+cache+"]: "+stato);*/
  216.                                        
  217.                                         addEsito(esitiCache, stato, cache);
  218.                                     }
  219.                                    
  220.                                     if(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ABILITATA.equals(stato)){
  221.                                         /**if(bfCaches.length()>0){
  222.                                             bfCaches.append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  223.                                         }*/
  224.                                         String result = null;
  225.                                         try{
  226.                                             String nomeMetodoResetCache = confCore.getJmxPdDCacheNomeMetodoResetCache(aliasForResetCache);
  227.                                             result = confCore.getInvoker().invokeJMXMethod(aliasForResetCache,confCore.getJmxPdDCacheType(aliasForResetCache),
  228.                                                     cache,
  229.                                                     nomeMetodoResetCache);
  230.                                         }catch(Exception e){
  231.                                             String errorMessage = getPrefixErrorInvokeMethod(nomeMetodo)+"sulla cache ["+nomeCache+"] (node:"+aliasForResetCache+"): "+e.getMessage();
  232.                                             ControlStationCore.getLog().error(errorMessage,e);
  233.                                             result = errorMessage;
  234.                                             rilevatoErrore = true;
  235.                                         }
  236.                                         /**bfCaches.append("- Cache ["+cache+"]: "+result);*/
  237.                                        
  238.                                         addEsito(esitiCache, result, cache);
  239.                                     }
  240.                                    
  241.                                 }
  242.                                 /**bfExternal.append(bfCaches.toString());*/
  243.                                 bfExternal.append(toString(esitiCache));
  244.                                
  245.                                 if(messagePerOperazioneEffettuataSB.length()>0){
  246.                                     messagePerOperazioneEffettuataSB.append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  247.                                 }
  248.                                 messagePerOperazioneEffettuataSB.append(bfExternal.toString());
  249.                            
  250.                             }
  251.                             index++;
  252.                         }
  253.                         if(messagePerOperazioneEffettuataSB!=null){
  254.                             if(rilevatoErrore)
  255.                                 pd.setMessage(messagePerOperazioneEffettuataSB.toString());
  256.                             else
  257.                                 pd.setMessage(messagePerOperazioneEffettuataSB.toString(),Costanti.MESSAGE_TYPE_INFO);
  258.                         }
  259.                     }
  260.                        
  261.                     // setto la barra del titolo
  262.                     List<Parameter> lstParam = new ArrayList<>();

  263.                     lstParam.add(new Parameter(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_RUNTIME,
  264.                              null));

  265.                     ServletUtils.setPageDataTitle(pd, lstParam);
  266.                    
  267.                     // preparo i campi
  268.                     List<DataElement> dati = new ArrayList<>();
  269.                     dati.add(ServletUtils.getDataElementForEditModeFinished());
  270.                    
  271.                     pd.setLabelBottoneInvia(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_RUNTIME_ACCEDI);
  272.                    
  273.                     dati = confHelper.addConfigurazioneSistemaSelectListNodiCluster(dati, aliasNodi);
  274.                    
  275.                     pd.setDati(dati);
  276.                    
  277.                     ServletUtils.setGeneralAndPageDataIntoSession(request, session, gd, pd);
  278.        
  279.                     return ServletUtils.getStrutsForwardEditModeInProgress(mapping,
  280.                             ConfigurazioneCostanti.OBJECT_NAME_CONFIGURAZIONE_SISTEMA,
  281.                             ForwardParams.ADD());
  282.                    
  283.                 }
  284.                
  285.             }
  286.            
  287.                        
  288.             String descrizioneAlias = confCore.getJmxPdDDescrizione(alias);
  289.        
  290.             String messagePerOperazioneEffettuata = null;
  291.             boolean rilevatoErrore = false;
  292.            
  293.             if(nomeCache!=null && !"".equals(nomeCache) &&
  294.                     nomeMetodo!=null && !"".equals(nomeMetodo) &&
  295.                    
  296.                     // fix per evitare che si ricordi l'all cache, dopo una successiva operazione
  297.                     (nomeParametroPostBack==null || "".equals(nomeParametroPostBack))
  298.                    
  299.                     ){
  300.                
  301.                 String nomeMetodoResetCache = confCore.getJmxPdDCacheNomeMetodoResetCache(alias);
  302.                 String nomeMetodoResetConnettoriPrioritari = confCore.getJmxPdDConfigurazioneSistemaNomeMetodoResetConnettoriPrioritari(alias);
  303.                 boolean resetMultiplo = false;
  304.                 boolean resetConnettoriPrioritari = false;
  305.                 if(nomeMetodoResetCache!=null && nomeMetodoResetCache.equals(nomeMetodo)){
  306.                     if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_RESET_ALL_CACHES.equals(nomeCache)){
  307.                         resetMultiplo=true;
  308.                     }
  309.                 }
  310.                 else if(nomeMetodoResetConnettoriPrioritari!=null && nomeMetodoResetConnettoriPrioritari.equals(nomeMetodo)){
  311.                     resetConnettoriPrioritari = true;
  312.                 }
  313.                
  314.                 if(resetMultiplo){
  315.                     Map<String, List<String>> esitiCache = new HashMap<>();
  316.                     /**StringBuilder bf = new StringBuilder();*/
  317.                     List<String> caches = confCore.getJmxPdDCaches(alias);
  318.                     if(caches!=null && !caches.isEmpty()){
  319.                        
  320.                         for (String cache : caches) {
  321.                            
  322.                             String stato = null;
  323.                             try{
  324.                                 stato = confCore.getInvoker().readJMXAttribute(alias,confCore.getJmxPdDConfigurazioneSistemaType(alias),
  325.                                         cache,
  326.                                         confCore.getJmxPdDCacheNomeAttributoCacheAbilitata(alias));
  327.                                 if(stato.equalsIgnoreCase("true")){
  328.                                     stato = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ABILITATA;
  329.                                 }
  330.                                 else if(stato.equalsIgnoreCase("false")){
  331.                                     stato = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_DISABILITATA;
  332.                                 }
  333.                                 else{
  334.                                     throw new DriverControlStationException("Stato ["+stato+"] sconosciuto");
  335.                                 }
  336.                             }catch(Exception e){
  337.                                 ControlStationCore.logError("Errore durante la lettura dello stato della cache ["+cache+"](jmxResourcePdD): "+e.getMessage(),e);
  338.                                 stato = ConfigurazioneCostanti.LABEL_INFORMAZIONE_NON_DISPONIBILE;
  339.                                 rilevatoErrore = true;
  340.                                
  341.                                 /**if(bf.length()>0){
  342.                                     bf.append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  343.                                 }
  344.                                 bf.append("- Cache ["+cache+"]: "+stato);*/
  345.                                
  346.                                 addEsito(esitiCache, stato, cache);
  347.                             }
  348.                            
  349.                             if(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ABILITATA.equals(stato)){
  350.                                 /**if(bf.length()>0){
  351.                                     bf.append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  352.                                 }*/
  353.                                 String result = null;
  354.                                 try{
  355.                                     result = confCore.getInvoker().invokeJMXMethod(alias,confCore.getJmxPdDCacheType(alias),
  356.                                             cache,
  357.                                             nomeMetodoResetCache);
  358.                                 }catch(Exception e){
  359.                                     String errorMessage = getPrefixErrorInvokeMethod(nomeMetodo)+"sulla cache ["+nomeCache+"]: "+e.getMessage();
  360.                                     ControlStationCore.getLog().error(errorMessage,e);
  361.                                     result = errorMessage;
  362.                                     rilevatoErrore = true;
  363.                                 }
  364.                                 /**bf.append("Cache ["+cache+"]: "+result);*/
  365.                                 addEsito(esitiCache, result, cache);
  366.                             }
  367.                         }
  368.                         /**messagePerOperazioneEffettuata = bf.toString();*/
  369.                         messagePerOperazioneEffettuata = toString(esitiCache);
  370.                    
  371.                     }
  372.                 }
  373.                 else{
  374.                     try{
  375.                         if(resetConnettoriPrioritari) {
  376.                             String result = confCore.getInvoker().invokeJMXMethod(alias,confCore.getJmxPdDCacheType(alias),
  377.                                     confCore.getJmxPdDConfigurazioneSistemaNomeRisorsaConsegnaContenutiApplicativi(alias),
  378.                                     nomeMetodo,
  379.                                     nomeCache);
  380.                             messagePerOperazioneEffettuata = "Coda ["+confCore.getConsegnaNotificaCodaLabel(nomeCache)+"]: "+result;
  381.                         }
  382.                         else {
  383.                             String result = confCore.getInvoker().invokeJMXMethod(alias,confCore.getJmxPdDCacheType(alias),
  384.                                     nomeCache,
  385.                                     nomeMetodo);
  386.                             messagePerOperazioneEffettuata = "Cache ["+nomeCache+"]: "+result;
  387.                         }
  388.                     }catch(Exception e){
  389.                         String oggetto = "cache";
  390.                         if(resetConnettoriPrioritari) {
  391.                             oggetto = "coda";
  392.                         }
  393.                         String errorMessage = getPrefixErrorInvokeMethod(nomeMetodo)+"sulla "+oggetto+" ["+nomeCache+"]: "+e.getMessage();
  394.                         ControlStationCore.getLog().error(errorMessage,e);
  395.                         messagePerOperazioneEffettuata = errorMessage;
  396.                         rilevatoErrore = true;
  397.                     }
  398.                 }
  399.             }
  400.            
  401.             String labelDialog = null;
  402.             String noteDialog = null;
  403.             String messageDialog = null;
  404.             if(nomeParametroPostBack==null || "".equals(nomeParametroPostBack)){
  405.                 String allarmeOp = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_ALLARMI_ATTIVI_MANAGER);
  406.                 if(allarmeOp!=null && !"".equals(allarmeOp)){
  407.                     nomeParametroPostBack = allarmeOp;
  408.                 }
  409.             }
  410.             if(nomeParametroPostBack!=null && !"".equals(nomeParametroPostBack)){
  411.            
  412.                 String nomeAttributo = null;
  413.                 String nomeAttributo2 = null;
  414.                 String nomeMetodoJmx = null;
  415.                 String nomeRisorsa = null;
  416.                 Object nuovoStato = null;
  417.                 String tipo = null;
  418.                 boolean startAllarmi = false;
  419.                 boolean stopAllarmi = false;
  420.                 boolean restartAllarmi = false;
  421.                 try{
  422.                     if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_LIVELLO_SEVERITA.equals(nomeParametroPostBack)){
  423.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoSeveritaDiagnostici(alias);
  424.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_LIVELLO_SEVERITA);
  425.                         tipo = "livello di severitร  dei diagnostici";
  426.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_LIVELLO_SEVERITA;
  427.                     }
  428.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_LIVELLO_SEVERITA_LOG4J.equals(nomeParametroPostBack)){
  429.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoSeveritaDiagnosticiLog4j(alias);
  430.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_LIVELLO_SEVERITA_LOG4J);
  431.                         tipo = "livello di severitร  log4j dei diagnostici";
  432.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_LIVELLO_SEVERITA_LOG4J;
  433.                     }
  434.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_REGISTRAZIONE_TRACCE.equals(nomeParametroPostBack)){
  435.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTracciamento(alias);
  436.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_REGISTRAZIONE_TRACCE));
  437.                         tipo = "stato del tracciamento delle buste";
  438.                         labelDialog = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_INFO_TRACCIAMENTO+" "+ ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_REGISTRAZIONE_TRACCE;
  439.                     }
  440.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_DUMP_CONNETTORE_PD.equals(nomeParametroPostBack)){
  441.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoDumpPD(alias);
  442.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_DUMP_CONNETTORE_PD));
  443.                         tipo = "stato del dump binario della Porta Delegata";
  444.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_DUMP_CONNETTORE+" "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_DUMP_CONNETTORE_PD;
  445.                     }
  446.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_DUMP_CONNETTORE_PA.equals(nomeParametroPostBack)){
  447.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_DUMP_CONNETTORE+" "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_DUMP_CONNETTORE_PA;
  448.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoDumpPA(alias);
  449.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_DUMP_CONNETTORE_PA));
  450.                         tipo = "stato del dump binario della Porta Applicativa";
  451.                     }
  452.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_FILE_TRACE_UPDATE.equals(nomeParametroPostBack)){
  453.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_FILE_TRACE_UPDATE);
  454.                         if(CostantiConfigurazione.ABILITATO.getValue().equals(nuovoStato)){
  455.                             nomeMetodoJmx = confCore.getJmxPdDConfigurazioneSistemaNomeMetodoUpdateFileTrace(alias);
  456.                             nomeRisorsa = confCore.getJmxPdDConfigurazioneSistemaNomeRisorsa(alias);
  457.                             tipo = "update configurazione FileTrace";
  458.                             labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_FILE_TRACE_LABEL;
  459.                         }
  460.                     }
  461.                    
  462.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_STATUS_CODE.equals(nomeParametroPostBack)){
  463.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionErrorStatusCode(alias);
  464.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_STATUS_CODE));
  465.                         tipo = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_STATUS_CODE;
  466.                         labelDialog = tipo;
  467.                     }
  468.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SOAP_USE_STATUS_CODE_AS_SOAP_FAULT.equals(nomeParametroPostBack)){
  469.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionErrorUseStatusCodeAsFaultCode(alias);
  470.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SOAP_USE_STATUS_CODE_AS_SOAP_FAULT));
  471.                         tipo = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SOAP_USE_STATUS_CODE_AS_SOAP_FAULT;
  472.                         labelDialog = tipo;
  473.                     }
  474.                    
  475.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_PROCESS_REQUEST.equals(nomeParametroPostBack)){
  476.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionSpecificErrorTypeInternalRequestError(alias);
  477.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_PROCESS_REQUEST));
  478.                         tipo = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_TYPE+" "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_PROCESS_REQUEST;
  479.                         labelDialog = tipo;
  480.                     }
  481.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_PROCESS_RESPONSE.equals(nomeParametroPostBack)){
  482.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionSpecificErrorTypeBadResponse(alias);
  483.                         nomeAttributo2 = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionSpecificErrorTypeInternalResponseError(alias);
  484.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_PROCESS_RESPONSE));
  485.                         tipo = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_TYPE+" "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_PROCESS_RESPONSE;
  486.                         labelDialog = tipo;
  487.                     }
  488.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_INTERNAL_ERROR.equals(nomeParametroPostBack)){
  489.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionSpecificErrorTypeInternalError(alias);
  490.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_INTERNAL_ERROR));
  491.                         tipo = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_TYPE+" "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_TYPE_INTERNAL_ERROR;
  492.                         labelDialog = tipo;
  493.                     }
  494.                    
  495.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_DETAILS.equals(nomeParametroPostBack)){
  496.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionSpecificErrorDetails(alias);
  497.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_DETAILS));
  498.                         tipo = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_DETAILS+" '"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SPECIFIC_ERROR_DETAILS+"'";
  499.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_DETAILS;
  500.                     }
  501.                    
  502.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_INSTANCE_ID.equals(nomeParametroPostBack)){
  503.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionErrorInstanceId(alias);
  504.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_INSTANCE_ID));
  505.                         tipo = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_INSTANCE+" '"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_INSTANCE_ID+"'";
  506.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_INSTANCE;
  507.                     }
  508.    
  509.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SOAP_GENERATE_HTTP_CODE.equals(nomeParametroPostBack)){
  510.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTransactionErrorGenerateHttpHeaderGovWayCode(alias);
  511.                         nuovoStato = CostantiConfigurazione.ABILITATO.getValue().equals(confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SOAP_GENERATE_HTTP_CODE));
  512.                         tipo = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SOAP_GENERATE_HTTP+" '"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SOAP_GENERATE_HTTP_CODE+"'";
  513.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_TRANSACTION_ERROR_SOAP_GENERATE_HTTP;
  514.                     }
  515.                    
  516.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_PD.equals(nomeParametroPostBack)){
  517.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_PD);
  518.                         if(CostantiConfigurazione.ABILITATO.getValue().equals(nuovoStato)){
  519.                             nomeMetodoJmx = confCore.getJmxPdDConfigurazioneSistemaNomeMetodoAbilitaServizioPortaDelegata(alias);
  520.                         }
  521.                         else{
  522.                             nomeMetodoJmx = confCore.getJmxPdDConfigurazioneSistemaNomeMetodoDisabilitaServizioPortaDelegata(alias);
  523.                         }
  524.                         nomeRisorsa = confCore.getJmxPdDConfigurazioneSistemaNomeRisorsaStatoServiziPdD(alias);
  525.                         tipo = "stato del servizio Porta Applicativa";
  526.                         labelDialog = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_SERVIZI+" "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_PD;
  527.                     }
  528.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_PA.equals(nomeParametroPostBack)){
  529.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_PA);
  530.                         if(CostantiConfigurazione.ABILITATO.getValue().equals(nuovoStato)){
  531.                             nomeMetodoJmx = confCore.getJmxPdDConfigurazioneSistemaNomeMetodoAbilitaServizioPortaApplicativa(alias);
  532.                         }
  533.                         else{
  534.                             nomeMetodoJmx = confCore.getJmxPdDConfigurazioneSistemaNomeMetodoDisabilitaServizioPortaApplicativa(alias);
  535.                         }
  536.                         nomeRisorsa = confCore.getJmxPdDConfigurazioneSistemaNomeRisorsaStatoServiziPdD(alias);
  537.                         tipo = "stato del servizio Integration Manager";
  538.                         labelDialog = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_SERVIZI+" "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_PA;
  539.                     }
  540.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_IM.equals(nomeParametroPostBack)){
  541.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_IM);
  542.                         if(CostantiConfigurazione.ABILITATO.getValue().equals(nuovoStato)){
  543.                             nomeMetodoJmx = confCore.getJmxPdDConfigurazioneSistemaNomeMetodoAbilitaServizioIntegrationManager(alias);
  544.                         }
  545.                         else{
  546.                             nomeMetodoJmx = confCore.getJmxPdDConfigurazioneSistemaNomeMetodoDisabilitaServizioIntegrationManager(alias);
  547.                         }
  548.                         nomeRisorsa = confCore.getJmxPdDConfigurazioneSistemaNomeRisorsaStatoServiziPdD(alias);
  549.                         tipo = "stato del servizio IntegrationManager";
  550.                         labelDialog = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_SERVIZI+" "+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_STATO_SERVIZIO_IM;
  551.                     }
  552.                
  553.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_CONSEGNA_CONTENUTI_APPLICATIVI.equals(nomeParametroPostBack)){
  554.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerConsegnaContenutiApplicativi(alias);
  555.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_CONSEGNA_CONTENUTI_APPLICATIVI);
  556.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_NOTIFICHE+"'";
  557.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  558.                                 ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_NOTIFICHE;
  559.                     }
  560.                    
  561.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_VERIFICA_CONNESSIONI_ATTIVE.equals(nomeParametroPostBack)){
  562.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreMessaggiVerificaConnessioniAttive(alias);
  563.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_VERIFICA_CONNESSIONI_ATTIVE);
  564.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_VERIFICA_CONNESSIONI_ATTIVE+"'";
  565.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  566.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_VERIFICA_CONNESSIONI_ATTIVE;
  567.                     }
  568.                    
  569.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_ORARIE.equals(nomeParametroPostBack)){
  570.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerStatisticheOrarie(alias);
  571.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_ORARIE);
  572.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_PREFIX+
  573.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_ORARIE+"'";
  574.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  575.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_PREFIX+
  576.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_ORARIE;
  577.                     }
  578.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_GIORNALIERE.equals(nomeParametroPostBack)){
  579.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerStatisticheGiornaliere(alias);
  580.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_GIORNALIERE);
  581.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_PREFIX+
  582.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_GIORNALIERE+"'";
  583.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  584.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_PREFIX+
  585.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_GIORNALIERE;
  586.                     }
  587.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_SETTIMANALI.equals(nomeParametroPostBack)){
  588.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerStatisticheSettimanali(alias);
  589.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_SETTIMANALI);
  590.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_PREFIX+
  591.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_SETTIMANALI+"'";
  592.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  593.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_PREFIX+
  594.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_SETTIMANALI;
  595.                     }
  596.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_MENSILI.equals(nomeParametroPostBack)){
  597.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerStatisticheMensili(alias);
  598.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_MENSILI);
  599.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_PREFIX+
  600.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_MENSILI+"'";
  601.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  602.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_PREFIX+
  603.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_STATISTICHE_MENSILI;
  604.                     }
  605.    
  606.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_ELIMINATI.equals(nomeParametroPostBack)){
  607.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreMessaggiPuliziaMessaggiEliminati(alias);
  608.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_ELIMINATI);
  609.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  610.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_ELIMINATI+"'";
  611.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  612.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  613.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_ELIMINATI;
  614.                     }
  615.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_SCADUTI.equals(nomeParametroPostBack)){
  616.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreMessaggiPuliziaMessaggiScaduti(alias);
  617.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_SCADUTI);
  618.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  619.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_SCADUTI+"'";
  620.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  621.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  622.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_SCADUTI;
  623.                     }
  624.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_REPOSITORY_BUSTE.equals(nomeParametroPostBack)){
  625.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreRepositoryBuste(alias);
  626.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_REPOSITORY_BUSTE);
  627.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  628.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_REPOSITORY_BUSTE+"'";
  629.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  630.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  631.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_REPOSITORY_BUSTE;
  632.                     }
  633.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_CORRELAZIONE_APPLICATIVA.equals(nomeParametroPostBack)){
  634.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreMessaggiPuliziaCorrelazioneApplicativa(alias);
  635.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_CORRELAZIONE_APPLICATIVA);
  636.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  637.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_CORRELAZIONE_APPLICATIVA+"'";
  638.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  639.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  640.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_CORRELAZIONE_APPLICATIVA;
  641.                     }
  642.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_NON_GESTITI.equals(nomeParametroPostBack)){
  643.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreMessaggiPuliziaMessaggiNonGestiti(alias);
  644.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_NON_GESTITI);
  645.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  646.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_NON_GESTITI+"'";
  647.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  648.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  649.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_MESSAGGI_NON_GESTITI;
  650.                     }
  651.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_PULIZIA_MESSAGGI_ANOMALI.equals(nomeParametroPostBack)){
  652.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestorePuliziaMessaggiAnomali(alias);
  653.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_PULIZIA_MESSAGGI_ANOMALI);
  654.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  655.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_PULIZIA_MESSAGGI_ANOMALI+"'";
  656.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  657.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_MESSAGGI_PULIZIA_PREFIX+
  658.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_PULIZIA_MESSAGGI_ANOMALI;
  659.                     }
  660.                    
  661.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_MONITORAGGIO_RISORSE_THREAD.equals(nomeParametroPostBack)){
  662.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerMonitoraggioRisorseThread(alias);
  663.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_MONITORAGGIO_RISORSE_THREAD);
  664.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_MONITORAGGIO_PREFIX+
  665.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_MONITORAGGIO_RISORSE_THREAD+"'";
  666.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  667.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_MONITORAGGIO_PREFIX+
  668.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_MONITORAGGIO_RISORSE_THREAD;
  669.                     }
  670.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_THRESHOLD_THREAD.equals(nomeParametroPostBack)){
  671.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerThresholdThread(alias);
  672.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_THRESHOLD_THREAD);
  673.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_MONITORAGGIO_PREFIX+
  674.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_THRESHOLD_THREAD+"'";
  675.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  676.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_MONITORAGGIO_PREFIX+
  677.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_THRESHOLD_THREAD;
  678.                     }
  679.                    
  680.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_EVENTI.equals(nomeParametroPostBack)){
  681.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerEventi(alias);
  682.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_EVENTI);
  683.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_EVENTI+"'";
  684.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  685.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_EVENTI;
  686.                     }
  687.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_FILE_SYSTEM_RECOVERY.equals(nomeParametroPostBack)){
  688.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerFileSystemRecovery(alias);
  689.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_FILE_SYSTEM_RECOVERY);
  690.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_FILE_SYSTEM_RECOVERY+"'";
  691.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  692.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_FILE_SYSTEM_RECOVERY;
  693.                     }
  694.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_BUSTE_ONEWAY_NON_RISCONTRATE.equals(nomeParametroPostBack)){
  695.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreBusteOnewayNonRiscontrate(alias);
  696.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_BUSTE_ONEWAY_NON_RISCONTRATE);
  697.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_BUSTE_ONEWAY_NON_RISCONTRATE+"'";
  698.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  699.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_BUSTE_ONEWAY_NON_RISCONTRATE;
  700.                     }
  701.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_BUSTE_ASINCRONE_NON_RISCONTRATE.equals(nomeParametroPostBack)){
  702.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreBusteAsincroneNonRiscontrate(alias);
  703.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_BUSTE_ASINCRONE_NON_RISCONTRATE);
  704.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_BUSTE_ASINCRONE_NON_RISCONTRATE+"'";
  705.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  706.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_BUSTE_ASINCRONE_NON_RISCONTRATE;
  707.                     }
  708.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_REPOSITORY_STATEFUL_THREAD.equals(nomeParametroPostBack)){
  709.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerRepositoryStatefulThread(alias);
  710.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_REPOSITORY_STATEFUL_THREAD);
  711.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_REPOSITORY_STATEFUL_THREAD+"'";
  712.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  713.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_REPOSITORY_STATEFUL_THREAD;
  714.                     }
  715.                    
  716.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_OPERAZIONI_REMOTE.equals(nomeParametroPostBack)){
  717.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreOperazioniRemote(alias);
  718.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_OPERAZIONI_REMOTE);
  719.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_OPERAZIONI_REMOTE+"'";
  720.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  721.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_OPERAZIONI_REMOTE;
  722.                     }
  723.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_SVECCHIAMENTO_OPERAZIONI_REMOTE.equals(nomeParametroPostBack)){
  724.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerSvecchiamentoOperazioniRemote(alias);
  725.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_SVECCHIAMENTO_OPERAZIONI_REMOTE);
  726.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_SVECCHIAMENTO_OPERAZIONI_REMOTE+"'";
  727.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  728.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_SVECCHIAMENTO_OPERAZIONI_REMOTE;
  729.                     }
  730.                    
  731.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_ALLARMI_ATTIVI_START.equals(nomeParametroPostBack)){
  732.                         startAllarmi = true;
  733.                         tipo = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ALLARMI_ATTIVI_START;
  734.                         labelDialog = "Avvio "+ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ALLARMI_ATTIVI;
  735.                     }
  736.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_ALLARMI_ATTIVI_STOP.equals(nomeParametroPostBack)){
  737.                         stopAllarmi = true;
  738.                         tipo = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ALLARMI_ATTIVI_STOP;
  739.                         labelDialog = "Fermo "+ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ALLARMI_ATTIVI;
  740.                     }
  741.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_ALLARMI_ATTIVI_RESTART.equals(nomeParametroPostBack)){
  742.                         restartAllarmi = true;
  743.                         tipo = ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ALLARMI_ATTIVI_RESTART;
  744.                         labelDialog = "Riavvio "+ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_ALLARMI_ATTIVI;
  745.                     }
  746.                    
  747.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_CHIAVI_PDND.equals(nomeParametroPostBack)){
  748.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreChiaviPDND(alias);
  749.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_CHIAVI_PDND);
  750.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_CHIAVI_PDND+"'";
  751.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  752.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_CHIAVI_PDND+ " "+ ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_TIMERS_PDND;
  753.                     }
  754.                     else if(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_CACHE_CHIAVI_PDND.equals(nomeParametroPostBack)){
  755.                         nomeAttributo = confCore.getJmxPdDConfigurazioneSistemaNomeAttributoTimerGestoreCacheChiaviPDND(alias);
  756.                         nuovoStato = confHelper.getParameter(ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_CACHE_CHIAVI_PDND);
  757.                         tipo =ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_STATO_TIMER_PREFIX+"'"+ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_CACHE_CHIAVI_PDND+"'";
  758.                         labelDialog = ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_TIMER_PREFIX+
  759.                                 ConfigurazioneCostanti.LABEL_PARAMETRO_CONFIGURAZIONE_SISTEMA_GESTORE_CACHE_CHIAVI_PDND+ " "+ ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_SISTEMA_TIMERS_PDND;
  760.                     }
  761.                                        
  762.                     if(nomeAttributo!=null){
  763.                         confCore.getInvoker().setJMXAttribute(alias,confCore.getJmxPdDCacheType(alias),
  764.                             confCore.getJmxPdDConfigurazioneSistemaNomeRisorsaConfigurazionePdD(alias),
  765.                             nomeAttributo,
  766.                             nuovoStato);
  767.                         if(nomeAttributo2!=null) {
  768.                             confCore.getInvoker().setJMXAttribute(alias,confCore.getJmxPdDCacheType(alias),
  769.                                     confCore.getJmxPdDConfigurazioneSistemaNomeRisorsaConfigurazionePdD(alias),
  770.                                     nomeAttributo2,
  771.                                     nuovoStato);
  772.                         }
  773.                         String tmp = "Configurazione aggiornata con successo ("+tipo+"): "+nuovoStato;
  774.                         noteDialog = ConfigurazioneCostanti.TEMPORANEE;
  775.                         if(messagePerOperazioneEffettuata!=null){
  776.                             messagePerOperazioneEffettuata+="\n"+tmp;
  777.                         }
  778.                         else{
  779.                             messagePerOperazioneEffettuata = tmp;
  780.                         }
  781.                         /**messageDialog = "Configurazione aggiornata con successo";*/
  782.                         if(confCore.isClusterAsyncUpdate()) {
  783.                             messageDialog = JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO_PREFIX+JMXUtils.MSG_OPERAZIONE_REGISTRATA_SUCCESSO.replace(JMXUtils.MSG_OPERAZIONE_REGISTRATA_SUCCESSO_TEMPLATE_SECONDI, confCore.getClusterAsyncUpdateCheckInterval()+"");
  784.                         }
  785.                         else {
  786.                             messageDialog = JMXUtils.MSG_OPERAZIONE_EFFETTUATA_SUCCESSO;
  787.                         }

  788.                     }
  789.                     else if(nomeMetodoJmx!=null){
  790.                         String tmp = confCore.getInvoker().invokeJMXMethod(alias, confCore.getJmxPdDCacheType(alias),
  791.                                 nomeRisorsa,
  792.                                 nomeMetodoJmx);
  793.                         if(!ConfigurazioneCostanti.PARAMETRO_CONFIGURAZIONE_FILE_TRACE_UPDATE.equals(nomeParametroPostBack)){
  794.                             noteDialog = ConfigurazioneCostanti.PERSISTENTI;
  795.                         }
  796.                         if(messagePerOperazioneEffettuata!=null){
  797.                             messagePerOperazioneEffettuata+="\n"+tmp;
  798.                         }
  799.                         else{
  800.                             messagePerOperazioneEffettuata = tmp;
  801.                         }
  802.                         messageDialog = tmp;
  803.                     }
  804.                     else if(startAllarmi || stopAllarmi || restartAllarmi) {
  805.                         AlarmEngineConfig alarmEngineConfig = confCore.getAllarmiConfig();
  806.                         if(startAllarmi) {
  807.                             AllarmiUtils.startActiveThreads(ControlStationCore.getLog(), alarmEngineConfig);
  808.                         }
  809.                         else if(stopAllarmi) {
  810.                             AllarmiUtils.stopActiveThreads(ControlStationCore.getLog(), alarmEngineConfig);
  811.                         }
  812.                         else if(restartAllarmi) {
  813.                             AllarmiUtils.restartActiveThreads(ControlStationCore.getLog(), alarmEngineConfig);
  814.                         }
  815.                         messageDialog = labelDialog+" effettuato con successo";
  816.                         noteDialog = null;
  817.                         messagePerOperazioneEffettuata = "Operazione effettuata con successo ("+tipo+")";
  818.                        
  819.                         // Dormo qualche secondo per dare il tempo di fare lo stop/start dell'allarme
  820.                         Utilities.sleep(3000);
  821.                        
  822.                     }
  823.                 }catch(Exception e){
  824.                     String errorMessage = "Errore durante l'aggiornamento ("+tipo+"): "+e.getMessage();
  825.                     ControlStationCore.getLog().error(errorMessage,e);
  826.                     if(messagePerOperazioneEffettuata!=null){
  827.                         messagePerOperazioneEffettuata+="\n"+errorMessage;
  828.                     }
  829.                     else{
  830.                         messagePerOperazioneEffettuata = errorMessage;
  831.                     }
  832.                     rilevatoErrore = true;
  833.                     messageDialog = "Errore durante l'aggiornamento: "+e.getMessage();
  834.                 }
  835.             }
  836.            
  837.             if(messagePerOperazioneEffettuata!=null){
  838.                 if(nomeParametroPostBack!=null && !"".equals(nomeParametroPostBack) && messageDialog!=null){
  839.                     Dialog dialog = new Dialog();
  840.                    
  841.                     dialog.setTitolo(rilevatoErrore ? Costanti.MESSAGE_TYPE_ERROR_TITLE : Costanti.MESSAGE_TYPE_WARN_TITLE);
  842.                     dialog.setHeaderRiga1(labelDialog);
  843.                     dialog.setHeaderRiga2(messageDialog);
  844.                    
  845.                     StringBuilder sbNoteDialog = new StringBuilder();
  846.                     if(noteDialog!=null) {
  847.                         sbNoteDialog.append(noteDialog);
  848.                         if(confCore.isClusterAsyncUpdate()) {
  849.                             sbNoteDialog.append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  850.                         }
  851.                     }
  852.                     if(confCore.isClusterAsyncUpdate()) {
  853.                         sbNoteDialog.append(ConfigurazioneCostanti.CLOUD_DINAMICO);
  854.                     }

  855.                     if(sbNoteDialog.length()>0) {
  856.                         dialog.setNotaFinale(sbNoteDialog.toString());
  857.                     }
  858.                    
  859.                     String[][] bottoni = {
  860.                             { Costanti.LABEL_MONITOR_BUTTON_CHIUDI, "" }
  861.                             };
  862.                    
  863.                     pd.setBottoni(bottoni);
  864.                    
  865.                     pd.setDialog(dialog);  
  866.                 }
  867.                 else {
  868.                     if(rilevatoErrore)
  869.                         pd.setMessage(messagePerOperazioneEffettuata);
  870.                     else
  871.                         pd.setMessage(messagePerOperazioneEffettuata,Costanti.MESSAGE_TYPE_INFO);
  872.                 }
  873.             }
  874.            
  875.             // setto la barra del titolo
  876.             List<Parameter> lstParam = new ArrayList<>();

  877.             if(confCore.isSinglePdD()){
  878.                 if(aliases.size()>1){
  879.                     lstParam.add(new Parameter(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_RUNTIME,
  880.                             ConfigurazioneCostanti.SERVLET_NAME_CONFIGURAZIONE_SISTEMA_ADD));
  881.                     lstParam.add(new Parameter(descrizioneAlias,
  882.                              null));
  883.                 }else{
  884.                     lstParam.add(new Parameter(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_RUNTIME,
  885.                              null));
  886.                 }
  887.             }else{
  888.                 lstParam.add(new Parameter(PddCostanti.LABEL_PORTE_DI_DOMINIO, PddCostanti.SERVLET_NAME_PDD_LIST));
  889.                 lstParam.add(new Parameter(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_RUNTIME,
  890.                          null));
  891.             }

  892.             ServletUtils.setPageDataTitle(pd, lstParam);

  893.             // preparo i campi
  894.             List<DataElement> dati = new ArrayList<>();
  895.             dati.add(ServletUtils.getDataElementForEditModeFinished());

  896.             dati = confHelper.addConfigurazioneSistema(dati, alias);

  897.             pd.setDati(dati);

  898.             // Il livello di log รจ modificabile!
  899.             pd.disableOnlyButton();
  900.            
  901.             ServletUtils.setGeneralAndPageDataIntoSession(request, session, gd, pd);

  902.             return ServletUtils.getStrutsForwardEditModeInProgress(mapping,
  903.                     ConfigurazioneCostanti.OBJECT_NAME_CONFIGURAZIONE_SISTEMA,
  904.                     ForwardParams.ADD());
  905.            

  906.         } catch (Exception e) {
  907.             return ServletUtils.getStrutsForwardError(ControlStationCore.getLog(), e, pd, request, session, gd, mapping,
  908.                     ConfigurazioneCostanti.OBJECT_NAME_CONFIGURAZIONE_SISTEMA, ForwardParams.ADD());
  909.         }
  910.     }
  911.    
  912.     private void addEsito(Map<String, List<String>> esitiCache, String esito, String cache) {
  913.         List<String> caches = null;
  914.         if(esitiCache.containsKey(esito)) {
  915.             caches = esitiCache.get(esito);
  916.         }
  917.         else {
  918.             caches = new ArrayList<>();
  919.             esitiCache.put(esito, caches);
  920.         }
  921.         caches.add(cache);
  922.     }
  923.     private String toString(Map<String, List<String>> esitiCache) {
  924.         if(esitiCache.size()==1) {
  925.             return esitiCache.entrySet().iterator().next().getKey();
  926.         }
  927.         else {
  928.             StringBuilder sb = new StringBuilder();
  929.             for (Map.Entry<String,List<String>> entry : esitiCache.entrySet()) {
  930.                 if(sb.length()>0){
  931.                     sb.append(org.openspcoop2.core.constants.Costanti.WEB_NEW_LINE);
  932.                 }
  933.                 List<String> caches = entry.getValue();
  934.                 sb.append("- Cache "+caches.toString()+": "+entry.getKey());
  935.             }
  936.             return sb.toString();
  937.         }
  938.     }
  939.    
  940.     private String getPrefixErrorInvokeMethod(String nomeMetodo) {
  941.         return "Errore durante l'invocazione dell'operazione ["+nomeMetodo+"] ";
  942.     }
  943. }