Bug 784907
Summary: | JON 3.01 RC#1 CLI Doc issue, compile time errors in example 8.2.1 | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Mike Foley <mfoley> |
Component: | Documentation | Assignee: | Deon Ballard <dlackey> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 3.0.1 | CC: | fbrychta, hrupp, jsanda |
Target Milestone: | --- | ||
Target Release: | JON 3.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-03 15:06:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 782579 |
Description
Mike Foley
2012-01-26 15:53:51 UTC
12/30/2012 BZ triage meeting mfoley, ccrouch, loleary, asantos Targeting 3.1. This actually wasn't that bad (once I figured out how to do the whole "classpath" and "compile" thing). There were a couple of small things: 17c17 < import org.rhq.enterprise.client.RemoteClient; --- > import org.rhq.enterprise.clientapi.RemoteClient; 119,122c119,122 < this.resourceGroupManager = this.remoteClient.getResourceGroupManagerRemote(); < this.resourceManager = this.remoteClient.getResourceManagerRemote(); < this.roleManager = this.remoteClient.getRoleManagerRemote(); < this.subjectManager = this.remoteClient.getSubjectManagerRemote(); --- > this.resourceGroupManager = this.remoteClient.getResourceGroupManager(); > this.resourceManager = this.remoteClient.getResourceManager(); > this.roleManager = this.remoteClient.getRoleManager(); > this.subjectManager = this.remoteClient.getSubjectManager(); 133c133 < roleCriteria.setFilterName(JBAS_MANAGER_ROLE); --- > roleCriteria.addFilterName(JBAS_MANAGER_ROLE); 174,175c174,175 < roleCriteria.setFilterId(jbasManagerRole.getId()); < roleCriteria.setFetchSubjects(true); --- > roleCriteria.addFilterId(jbasManagerRole.getId()); > roleCriteria.fetchSubjects(true); One thing is that it uses a deprecated function: [root@server rhq-remoting-cli-4.4.0-SNAPSHOT]# javac -g SampleLdapClientMain.java -Xlint:deprecation SampleLdapClientMain.java:189: warning: [deprecation] getSubjectByName(java.lang.String) in org.rhq.enterprise.server.auth.SubjectManagerRemote has been deprecated jbasManagerSubject = subjectManager.getSubjectByName(jbasManager); ^ 1 warning I decided I don't particularly care about that, since I wasn't certain how to replace getSubjectByName(username) with getSubjectByNameAndSessionId(username,sessionId) because I don't know how to get the session ID. If that is an issue, let me know. Verified that SampleLdapClientMain.java from http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/custom-java-client.html#ex.SampleLdapClientMain.java compiles. Bulk closing of old issues in VERIFIED state. |