Examples of fetchExplicitGroups()


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

        toolStrip.addMember(saveButton);
        this.addMember(toolStrip);

        ResourceCriteria c = new ResourceCriteria();
        c.addFilterId(this.resourceId);
        c.fetchExplicitGroups(true);
        GWTServiceLookup.getResourceService().findResourcesByCriteria(c, new AsyncCallback<PageList<Resource>>() {
            public void onFailure(Throwable caught) {
                CoreGUI.getErrorHandler().handleError(MSG.view_resourceResourceGroupList_error_fetchFailure(), caught);
            }
View Full Code Here

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

                .createResource(subject, createResourceForTest(keyAndName), Resource.ROOT_ID);

            //ok, now the new resource should contain the alert definition defined by the template
            ResourceCriteria crit = new ResourceCriteria();
            crit.addFilterResourceKey(keyAndName);
            crit.fetchExplicitGroups(true); //so that cleanup works
            crit.fetchAlertDefinitions(true); //so that cleanup works

            List<Resource> foundResources = LookupUtil.getResourceManager().findResourcesByCriteria(subject, crit);

            assertEquals("A new resource should have been created", 1, foundResources.size());
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.