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

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


    @Override
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
        WebUser user = SessionUtils.getWebUser(request.getSession());
        WebUserPreferences preferences = user.getWebPreferences();
        RecentlyApprovedPortletPreferences recentlyApprovedPreferences = preferences
            .getRecentlyApprovedPortletPreferences();

        RAListForm listForm = (RAListForm) form;
        String platformId = new Integer(listForm.getPlatformId()).toString();
View Full Code Here


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

        RecentlyApprovedPortletPreferences problemResourcePreferences = pForm.getRecentlyApprovedPortletPreferences();
        preferences.setRecentlyApprovedPortletPreferences(problemResourcePreferences);

        session.removeAttribute(Constants.USERS_SES_PORTAL);

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

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

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

        PropertiesForm pForm = (PropertiesForm) form;
        pForm.setRecentlyApprovedPortletPreferences(preferences);
View Full Code Here

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

            WebUserPreferences preferences = user.getWebPreferences();
            RecentlyApprovedPortletPreferences recentlyApprovedPreferences = preferences
                .getRecentlyApprovedPortletPreferences();
            Subject subject = user.getSubject();

            // Based on the user preference, generate a timestamp of the oldest resource to display.
            long range = recentlyApprovedPreferences.hours;
View Full Code Here

TOP

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

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.