Package org.rhq.enterprise.gui.navigation.contextmenu

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


        int parentId = autoGroup.getParentResource().getId();
        int resourceTypeId = autoGroup.getResourceType().getId();

        for (MeasurementDefinition definition : definitions) {
            MenuItemDescriptor descriptor = new MenuItemDescriptor();
            fillBasicMetricMenuItemDescriptor(descriptor, parentId, resourceTypeId, "measurementChartMenuItem_ag_",
                definition);

            ret.add(descriptor);
        }
View Full Code Here


        List<MeasurementDefinition> definitions) {

        List<MenuItemDescriptor> ret = new ArrayList<MenuItemDescriptor>();

        for (MeasurementDefinition definition : definitions) {
            MenuItemDescriptor descriptor = new MenuItemDescriptor();

            fillBasicMetricMenuItemDescriptor(descriptor, group.getId(), "measurementChartMenuItem_", definition);

            ret.add(descriptor);
        }
View Full Code Here

    private List<MenuItemDescriptor> createOperationMenuItemDescriptors(int groupId, String parentGroupId,
        List<OperationDefinition> operations) {
        List<MenuItemDescriptor> ret = new ArrayList<MenuItemDescriptor>();

        for (OperationDefinition def : operations) {
            MenuItemDescriptor descriptor = new MenuItemDescriptor();
            descriptor.setMenuItemId("operation_" + def.getId());
            descriptor.setName(def.getDisplayName());

            String url = "/rhq/group/operation/groupOperationScheduleNew.xhtml";
            url += "?opId=" + def.getId();
            url += "&groupId=" + groupId;
            if (parentGroupId != null) {
                url += "&parentGroupId=" + parentGroupId;
            }
            descriptor.setUrl(url);

            ret.add(descriptor);
        }

        return ret;
View Full Code Here

    private List<MenuItemDescriptor> createViewMenuItemDescriptors(int resourceId, List<MeasurementSchedule> schedules) {
        List<MenuItemDescriptor> ret = new ArrayList<MenuItemDescriptor>();

        for (MeasurementSchedule schedule : schedules) {
            MenuItemDescriptor descriptor = new MenuItemDescriptor();
            fillBasicMetricMenuItemDescriptor(descriptor, resourceId, "measurementChartMenuItem_", schedule);

            ret.add(descriptor);
        }
View Full Code Here

    private List<MenuItemDescriptor> createOperationMenuItemDescriptors(int resourceId,
        List<OperationDefinition> operations) {
        List<MenuItemDescriptor> ret = new ArrayList<MenuItemDescriptor>();

        for (OperationDefinition def : operations) {
            MenuItemDescriptor descriptor = new MenuItemDescriptor();
            descriptor.setMenuItemId("operation_" + def.getId());
            descriptor.setName(def.getDisplayName());

            String url = "/rhq/resource/operation/resourceOperationScheduleNew.xhtml";
            url += "?id=" + resourceId;
            url += "&opId=" + def.getId();

            descriptor.setUrl(url);

            ret.add(descriptor);
        }

        return ret;
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.gui.navigation.contextmenu.MenuItemDescriptor

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.