Examples of QuickLinksDescriptor


Examples of org.rhq.enterprise.gui.navigation.contextmenu.QuickLinksDescriptor

    @Override
    protected QuickLinksDescriptor getMenuQuickLinks() {
        int parentId = currentAutoGroup.getParentResource().getId();
        int resourceTypeId = currentAutoGroup.getResourceType().getId();

        QuickLinksDescriptor descriptor = new QuickLinksDescriptor();
        descriptor.setMenuItemId("menu_ag_" + parentId + "_" + resourceTypeId);

        descriptor.setMonitoringUrl("/rhq/autogroup/monitor/graphs.xhtml?parent=" + parentId + "&type="
            + resourceTypeId);
        descriptor.setEventUrl("/rhq/autogroup/events/history.xhtml?parent=" + parentId + "&type=" + resourceTypeId);

        return descriptor;
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.navigation.contextmenu.QuickLinksDescriptor

        return Collections.singletonList(currentResourceGroup.getName());
    }

    @Override
    protected QuickLinksDescriptor getMenuQuickLinks() {
        QuickLinksDescriptor descriptor = new QuickLinksDescriptor();

        descriptor.setMenuItemId("menu_groupQuickLinks_" + currentResourceGroup.getId());

        String attributes = "groupId=" + currentResourceGroup.getId();
        if (currentParentResourceGroupId != null) {
            attributes += "&parentGroupId=" + currentParentResourceGroupId;
        }

        descriptor.setMonitoringUrl("/rhq/group/monitor/graphs.xhtml?" + attributes);
        descriptor.setInventoryUrl("/rhq/group/inventory/view.xhtml?" + attributes);
        descriptor.setAlertsUrl("/rhq/group/alert/listGroupAlertDefinitions.xhtml?" + attributes);
        descriptor.setConfigurationUrl("/rhq/group/configuration/viewCurrent.xhtml?" + attributes);
        descriptor.setOperationUrl("/rhq/group/operation/groupOperationScheduleNew.xhtml?" + attributes);
        descriptor.setEventUrl("/rhq/group/events/history.xhtml?" + attributes);

        return descriptor;
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.navigation.contextmenu.QuickLinksDescriptor

    @Override
    protected QuickLinksDescriptor getMenuQuickLinks() {
        int resourceId = currentResource.getId();

        QuickLinksDescriptor descriptor = new QuickLinksDescriptor();

        descriptor.setMenuItemId("menu_res_" + resourceId);
        descriptor.setMonitoringUrl("/rhq/resource/monitor/graphs.xhtml?id=" + resourceId);
        descriptor.setInventoryUrl("/rhq/resource/inventory/view.xhtml?id=" + resourceId);
        descriptor.setAlertsUrl("/rhq/resource/alert/listAlertDefinitions.xhtml?id=" + resourceId);
        descriptor.setConfigurationUrl("/rhq/resource/configuration/view.xhtml?id=" + resourceId);
        descriptor.setOperationUrl("/rhq/resource/operation/resourceOperationScheduleNew.xhtml?id=" + resourceId);
        descriptor.setEventUrl("/rhq/resource/events/history.xhtml?id=" + resourceId);
        descriptor.setContentUrl("/rhq/resource/content/view.xhtml?id=" + resourceId);

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