Examples of fetchResourceType()


Examples of org.rhq.core.domain.criteria.ResourceCriteria.fetchResourceType()

            ResourceCriteria criteria = super.getFetchCriteria(request);
            criteria.setStrictFilterPluginName(true);

            // additional return data
            criteria.fetchResourceType(true);

            return criteria;
        }

    }
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceCriteria.fetchResourceType()

                });

        } else if (request.getCriteria().getValues().containsKey("resourceId")) {
            ResourceCriteria rCriteria = new ResourceCriteria();
            rCriteria.addFilterId(request.getCriteria().getAttributeAsInt("resourceId"));
            rCriteria.fetchResourceType(true);

            GWTServiceLookup.getResourceService().findResourcesByCriteria(rCriteria,
                new AsyncCallback<PageList<Resource>>() {
                    public void onFailure(Throwable caught) {
                        CoreGUI.getErrorHandler().handleError(MSG.dataSource_schedules_loadFailed(), caught);
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceCriteria.fetchResourceType()

     */
    private void setSpecificResource(final int resourceId, final Integer opId, final Configuration args) {
        singleResourceTextItem.setAttribute(RESOURCE_ID_ATTRIBUTE, resourceId);
        ResourceCriteria criteria = new ResourceCriteria();
        criteria.addFilterId(resourceId);
        criteria.fetchResourceType(true);
        GWTServiceLookup.getResourceService().findResourcesByCriteria(criteria,
            new AsyncCallback<PageList<Resource>>() {
                @Override
                public void onSuccess(PageList<Resource> result) {
                    if (result.size() > 0) {
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceCriteria.fetchResourceType()

    private String getAvailableReports(int resourceId) {
        ResourceCriteria rc = new ResourceCriteria();
        rc.addFilterId(resourceId);
        rc.fetchAgent(true);
        rc.fetchResourceType(true);
        rc.fetchChildResources(true);

        PageList<Resource> resources = LookupUtil.getResourceManager().findResourcesByCriteria(
            LookupUtil.getSubjectManager().getOverlord(), rc);
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceCriteria.fetchResourceType()

                        final Integer templateId = alertDef.getParentId().intValue();
                        final Integer resourceId = alertDef.getResource().getId();

                        ResourceCriteria resCriteria = new ResourceCriteria();
                        resCriteria.addFilterId(resourceId);
                        resCriteria.fetchResourceType(true);

                        GWTServiceLookup.getResourceService().findResourcesByCriteria(resCriteria,
                            new AsyncCallback<PageList<Resource>>() {
                                @Override
                                public void onSuccess(PageList<Resource> result) {
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceCriteria.fetchResourceType()

        String resultCountRaw = portletConfig.getSimpleValue(Constant.RESULT_COUNT, Constant.RESULT_COUNT_DEFAULT);
        resultCount = (resultCountRaw.trim().isEmpty()) ? Constant.RESULT_COUNT_DEFAULT :  resultCountRaw;

        ResourceCriteria criteria = new ResourceCriteria();
        criteria.addFilterId(resourceId);
        criteria.fetchResourceType(true);

        //locate the resource
        GWTServiceLookup.getResourceService().findResourceCompositesByCriteria(criteria,
                new AsyncCallback<PageList<ResourceComposite>>() {
                    @Override
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceGroupCriteria.fetchResourceType()

    public void setSelectedGroup(final int groupId, boolean isAutoCluster) {
        ResourceGroupCriteria criteria = new ResourceGroupCriteria();
        criteria.addFilterId(groupId);
        criteria.addFilterVisible(!isAutoCluster);
        criteria.fetchResourceType(true);

        GWTServiceLookup.getResourceGroupService().findResourceGroupsByCriteria(criteria,
            new AsyncCallback<PageList<ResourceGroup>>() {

                public void onFailure(Throwable caught) {
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceGroupCriteria.fetchResourceType()

    public void populateData() {
        ResourceGroupGWTServiceAsync groupService = GWTServiceLookup.getResourceGroupService();

        ResourceGroupCriteria criteria = new ResourceGroupCriteria();
        criteria.addFilterId(context.getGroupId());
        criteria.fetchResourceType(true);
        criteria.fetchExplicitResources(true);
        if (context.isAutoCluster()) {
            criteria.addFilterVisible(false);
        } else if (context.isAutoGroup()) {
            criteria.addFilterVisible(false);
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceGroupCriteria.fetchResourceType()

                });

        } else if (request.getCriteria().getValues().containsKey("resourceGroupId")) {
            ResourceGroupCriteria rgCriteria = new ResourceGroupCriteria();
            rgCriteria.addFilterId(request.getCriteria().getAttributeAsInt("resourceGroupId"));
            rgCriteria.fetchResourceType(true);

            GWTServiceLookup.getResourceGroupService().findResourceGroupsByCriteria(rgCriteria,
                new AsyncCallback<PageList<ResourceGroup>>() {
                    public void onFailure(Throwable caught) {
                        CoreGUI.getErrorHandler().handleError(MSG.dataSource_schedules_loadFailed(), caught);
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceGroupCriteria.fetchResourceType()

        toolStrip.addMember(saveButton);

        ResourceGroupCriteria c = new ResourceGroupCriteria();
        c.addFilterId(this.resourceGroupId);
        c.fetchExplicitResources(true);
        c.fetchResourceType(true);
        GWTServiceLookup.getResourceGroupService().findResourceGroupsByCriteria(c,
            new AsyncCallback<PageList<ResourceGroup>>() {
                public void onFailure(Throwable caught) {
                    CoreGUI.getErrorHandler().handleError(MSG.view_group_membership_failFetch(), caught);
                }
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.