Examples of addPortlet()


Examples of org.rhq.enterprise.gui.legacy.Portal.addPortlet()

    public ActionForward editDefinitionControlAction(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception {
        setResource(request);
        Portal portal = Portal.createPortal();
        setTitle(request, portal, "alerts.config.platform.EditControlAction.Title");
        portal.addPortlet(new Portlet(".events.config.edit.controlaction"), 1);
        portal.setDialog(true);
        request.setAttribute(Constants.PORTAL_KEY, portal);

        return null;
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.Portal.addPortlet()

    public ActionForward viewDefinitionRoles(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
        setResource(request);
        Portal portal = Portal.createPortal();
        setTitle(request, portal, "alert.config.platform.props.ViewDef.roles.Title");
        portal.addPortlet(new Portlet(".events.config.view.roles"), 1);

        // JW - this shouldn't be a dialog ... portal.setDialog(true);
        request.setAttribute(Constants.PORTAL_KEY, portal);

        return null;
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.Portal.addPortlet()

    public ActionForward viewDefinitionUsers(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
        setResource(request);
        Portal portal = Portal.createPortal();
        setTitle(request, portal, "alert.config.platform.props.ViewDef.users.Title");
        portal.addPortlet(new Portlet(".events.config.view.users"), 1);

        // JW - this shouldn't be a dialog ... portal.setDialog(true);
        request.setAttribute(Constants.PORTAL_KEY, portal);

        return null;
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.Portal.addPortlet()

    public ActionForward monitorConfigureAlerts(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
        setResource(request);
        Portal portal = Portal.createPortal();
        portal.addPortlet(new Portlet(".events.config.list"), 1);
        portal.setDialog(false);

        request.setAttribute(Constants.PORTAL_KEY, portal);

        return null;
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.Portal.addPortlet()

        setTitle(request, portal, "alerts.config.platform.DefinitionList.Title");
        portal.setDialog(false);

        try {
            RequestUtils.getStringParameter(request, Constants.APPDEF_RES_TYPE_ID);
            portal.addPortlet(new Portlet(".admin.alerts.List"), 1);
        } catch (ParameterNotFoundException e) {
            portal.addPortlet(new Portlet(".events.config.list"), 1);
        }

        request.setAttribute(Constants.PORTAL_KEY, portal);
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.Portal.addPortlet()

        try {
            RequestUtils.getStringParameter(request, Constants.APPDEF_RES_TYPE_ID);
            portal.addPortlet(new Portlet(".admin.alerts.List"), 1);
        } catch (ParameterNotFoundException e) {
            portal.addPortlet(new Portlet(".events.config.list"), 1);
        }

        request.setAttribute(Constants.PORTAL_KEY, portal);

        return null;
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.WebUserPreferences.DashboardPreferences.addPortlet()

            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
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.