Description of problem: Wiki on remote Java clients is out-of-date due to API changes Version-Release number of selected component (if applicable): RHQ 4.1 How reproducible: Steps to Reproduce: 1. Try to use the Java code in Eclipse Actual results: numerous compile errors. import statements reference packages that have moved or been renamed. API changes as well. Expected results: Sample code compiles and correctly references the RHQ API Additional info: http://www.rhq-project.org/display/JOPR2/Java+Client+Sample+Class
API changes here: this.resourceGroupManager = this.remoteClient.getResourceGroupManagerRemote(); this.resourceManager = this.remoteClient.getResourceManagerRemote(); this.roleManager = this.remoteClient.getRoleManagerRemote(); this.subjectManager = this.remoteClient.getSubjectManagerRemote(); }
API changes here: roleCriteria.setFilterId(jbasManagerRole.getId()); // add a fetch criteria to the criteria object to get the optionally returned subjects for the role. roleCriteria.setFetchSubjects(true);
API change here: roleCriteria.setFilterName(JBAS_MANAGER_ROLE);