Package org.rhq.enterprise.gui.legacy.WebUserPreferences

Examples of org.rhq.enterprise.gui.legacy.WebUserPreferences.SavedChartsPortletPreferences


        }

        String[] charts = pForm.getCharts();

        if (charts != null) {
            SavedChartsPortletPreferences savedCharts = preferences.getSavedChartsPortletPreferences();
            for (String chartToRemove : charts) {
                savedCharts.removeByTuple(chartToRemove);
            }
            preferences.setSavedChartsPortletPreferences(savedCharts);

            returnString = "remove";
        }
View Full Code Here


    public ActionForward execute(ComponentContext context, ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception {
        PropertiesForm pForm = (PropertiesForm) form;
        WebUser user = SessionUtils.getWebUser(request.getSession());
        WebUserPreferences preferences = user.getWebPreferences();
        SavedChartsPortletPreferences savedCharts = preferences.getSavedChartsPortletPreferences();

        pForm.setDisplayOnDash(true);

        request.setAttribute("charts", savedCharts.chartList);
        request.setAttribute("chartsize", String.valueOf(savedCharts.chartList.size()));
View Full Code Here

                // session timed out, return prematurely
                return null;
            }

            WebUserPreferences preferences = user.getWebPreferences();
            SavedChartsPortletPreferences savedCharts = preferences.getSavedChartsPortletPreferences();

            charts = savedCharts.chartList;
            /*for (Tuple<String, String> chart : savedCharts.chartList) {
                charts.put(chart.lefty, chart.righty);
            }*/
 
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.gui.legacy.WebUserPreferences.SavedChartsPortletPreferences

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.