Examples of DashboardPreferences


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

        if ((pForm.getPortlet() == null) || "bad".equals(pForm.getPortlet())) {
            return mapping.findForward(RetCodeConstants.SUCCESS_URL);
        }

        // add some portlet to the preferences
        DashboardPreferences dashboardPreferences = preferences.getDashboardPreferences();
        dashboardPreferences.addPortlet(pForm.getPortlet(), !pForm.isWide());
        preferences.setDashboardPreferences(dashboardPreferences);

        session.removeAttribute(Constants.USERS_SES_PORTAL);

        return mapping.findForward(RetCodeConstants.SUCCESS_URL);
View Full Code Here

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

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

            WebUserPreferences preferences = user.getWebPreferences();
            DashboardPreferences dashboardPreferences = preferences.getDashboardPreferences();

            String userPortlets = null;

            Boolean wide = new Boolean((String) context.getAttribute("wide"));
View Full Code Here

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

public class DashboardUtils {
    public static final String DASHBOARD_DELIMITER = "|";

    public static void removePortlet(WebUser user, String portletName) throws Exception {
        WebUserPreferences preferences = user.getWebPreferences();
        DashboardPreferences dashboardPreferences = preferences.getDashboardPreferences();
        dashboardPreferences.removePortlet(portletName);
        preferences.setDashboardPreferences(dashboardPreferences);
    }
View Full Code Here

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

        HttpServletRequest request, HttpServletResponse response) throws Exception {

        HttpSession session = request.getSession();
        WebUser user = SessionUtils.getWebUser(session);
        WebUserPreferences preferences = user.getWebPreferences();
        DashboardPreferences dashboardPreferences = preferences.getDashboardPreferences();

        int refreshPeriod = preferences.getPageRefreshPeriod();
        if (UIConstants.DONT_REFRESH_PAGE != refreshPeriod) {
            request.setAttribute("refreshPeriod", String.valueOf(refreshPeriod));
        }
View Full Code Here

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

        HttpSession session = request.getSession();
        WebUser user = SessionUtils.getWebUser(session);
        WebUserPreferences preferences = user.getWebPreferences();

        String portlet = request.getParameter("portletName");
        DashboardPreferences dashboardPreferences = preferences.getDashboardPreferences();
        dashboardPreferences.moveUp(portlet);
        preferences.setDashboardPreferences(dashboardPreferences);

        request.getSession().removeAttribute(Constants.USERS_SES_PORTAL);

        return mapping.findForward(Constants.AJAX_URL);
View Full Code Here

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

        HttpSession session = request.getSession();
        WebUser user = SessionUtils.getWebUser(session);
        WebUserPreferences preferences = user.getWebPreferences();

        String portlet = request.getParameter("portletName");
        DashboardPreferences dashboardPreferences = preferences.getDashboardPreferences();
        dashboardPreferences.moveDown(portlet);
        preferences.setDashboardPreferences(dashboardPreferences);

        request.getSession().removeAttribute(Constants.USERS_SES_PORTAL);

        return mapping.findForward(Constants.AJAX_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.