Examples of addPortlet()


Examples of org.rhq.core.domain.dashboard.Dashboard.addPortlet()

            DashboardPortlet welcome = new DashboardPortlet(MessagePortlet.NAME, MessagePortlet.KEY, 250);
            dashboard.addPortlet(welcome, columnIndex, rowIndex++);
        }

        DashboardPortlet summary = new DashboardPortlet(InventorySummaryPortlet.NAME, InventorySummaryPortlet.KEY, 250);
        dashboard.addPortlet(summary, columnIndex, rowIndex++);

        DashboardPortlet news = new DashboardPortlet(MashupPortlet.NAME, MashupPortlet.KEY, 300);
        news.getConfiguration().put(new PropertySimple("address", "mashup.html"));

        dashboard.addPortlet(news, columnIndex, rowIndex++);
View Full Code Here

Examples of org.rhq.core.domain.dashboard.Dashboard.addPortlet()

        dashboard.addPortlet(summary, columnIndex, rowIndex++);

        DashboardPortlet news = new DashboardPortlet(MashupPortlet.NAME, MashupPortlet.KEY, 300);
        news.getConfiguration().put(new PropertySimple("address", "mashup.html"));

        dashboard.addPortlet(news, columnIndex, rowIndex++);

        // Right Column
        columnIndex = 1;
        rowIndex = 0;
View Full Code Here

Examples of org.rhq.core.domain.dashboard.Dashboard.addPortlet()

        // Right Column
        columnIndex = 1;
        rowIndex = 0;

        DashboardPortlet recentAlerts = new DashboardPortlet(RecentAlertsPortlet.NAME, RecentAlertsPortlet.KEY, 250);
        dashboard.addPortlet(recentAlerts, columnIndex, rowIndex++);

        DashboardPortlet problemResources = new DashboardPortlet(ProblemResourcesPortlet.NAME,
            ProblemResourcesPortlet.KEY, 250);
        //initialize config for the problemResources portlet.
        problemResources.getConfiguration().put(
View Full Code Here

Examples of org.rhq.core.domain.dashboard.Dashboard.addPortlet()

            new PropertySimple(ProblemResourcesPortlet.PROBLEM_RESOURCE_SHOW_MAX,
                ProblemResourcesPortlet.defaultShowMax));
        problemResources.getConfiguration().put(
            new PropertySimple(ProblemResourcesPortlet.PROBLEM_RESOURCE_SHOW_HRS,
                ProblemResourcesPortlet.defaultShowHours));
        dashboard.addPortlet(problemResources, columnIndex, rowIndex++);

        DashboardPortlet operations = new DashboardPortlet(OperationHistoryPortlet.NAME, OperationHistoryPortlet.KEY,
            200);
        dashboard.addPortlet(operations, columnIndex, rowIndex++);
View Full Code Here

Examples of org.rhq.core.domain.dashboard.Dashboard.addPortlet()

                ProblemResourcesPortlet.defaultShowHours));
        dashboard.addPortlet(problemResources, columnIndex, rowIndex++);

        DashboardPortlet operations = new DashboardPortlet(OperationHistoryPortlet.NAME, OperationHistoryPortlet.KEY,
            200);
        dashboard.addPortlet(operations, columnIndex, rowIndex++);

        return dashboard;
    }

    public boolean isValidDashboardName(String name) {
View Full Code Here

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

        Portal portal = Portal.createPortal();

        setTitle(request, portal, "alert.current.platform.detail.Title");
        portal.setDialog(true);
        portal.addPortlet(new Portlet(".events.alert.view"), 1);
        request.setAttribute(AttrConstants.PORTAL_KEY, portal);

        // Get alert definition name
        Integer alertId = new Integer(request.getParameter("a"));
View Full Code Here

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

        }

        Portal portal = Portal.createPortal();
        setTitle(request, portal, "alerts.alert.platform.AlertList.Title");
        portal.setDialog(false);
        portal.addPortlet(new Portlet(".events.alert.list"), 1);
        request.setAttribute(AttrConstants.PORTAL_KEY, portal);

        return null;
    }
}
View Full Code Here

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

    public ActionForward newDefinition(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
        setResource(request);
        Portal portal = Portal.createPortal();
        setTitle(request, portal, "alert.config.platform.edit.NewAlertDef.Title");
        portal.addPortlet(new Portlet(".events.config.new"), 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 editDefinitionProperties(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
        setResource(request);
        Portal portal = Portal.createPortal();
        setTitle(request, portal, "alert.config.platform.edit.page.Title");
        portal.addPortlet(new Portlet(".events.config.edit.properties"), 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 editDefinitionConditions(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
        setResource(request);
        Portal portal = Portal.createPortal();
        setTitle(request, portal, "alert.config.platform.edit.condition.Title");
        portal.addPortlet(new Portlet(".events.config.edit.conditions"), 1);
        portal.setDialog(true);
        request.setAttribute(Constants.PORTAL_KEY, portal);

        return null;
    }
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.