Examples of SummaryCountPortletPreferences


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

        HttpServletResponse response) throws Exception {
        PropertiesForm pForm = (PropertiesForm) form;
        WebUser user = SessionUtils.getWebUser(request.getSession());
        WebUserPreferences preferences = user.getWebPreferences();

        SummaryCountPortletPreferences counts = preferences.getSummaryCounts();
        pForm.setSummaryCounts(counts);

        return null;
    }
View Full Code Here

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

    @Override
    public ActionForward execute(ComponentContext context, ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception {

        SummaryCountPortletPreferences counts = new SummaryCountPortletPreferences(); // all defaults are false
        InventorySummary summary = new InventorySummary();
        try {
            WebUser user = SessionUtils.getWebUser(request.getSession());
            if (user == null) {
                // session timed out, return prematurely
View Full Code Here

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

        if (!pForm.isDisplayOnDash()) {
            DashboardUtils.removePortlet(user, pForm.getPortletName());
        }

        SummaryCountPortletPreferences counts = pForm.getSummaryCounts();
        preferences.setSummaryCounts(counts);

        request.getSession().removeAttribute(Constants.USERS_SES_PORTAL);
        return mapping.findForward(RetCodeConstants.SUCCESS_URL);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.