DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27873>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27873 Add Sorting to UserRoleUpdateAction Summary: Add Sorting to UserRoleUpdateAction Product: Jetspeed Version: 1.4 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Miscellaneous AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We have added sorting to several Admin portlets such as UserRoleUpdateAction. Is this the correct place to submit an enhancement? Is there a way to upload the entire class or should we just paste in the changed code? This is from the procedure buildUserRoleContext while(roles.hasNext()) { masterRoles.add(roles.next()); } masterRoles.trimToSize(); // Now sort the roles here Collections.sort(masterRoles, new Comparator() { public int compare(Object o1, Object o2) { Role role = (Role) o1; String s1 = role.getName().toUpperCase(); role = (Role) o2; String s2 = role.getName().toUpperCase(); return s1.compareTo(s2); } }); roles = masterRoles.iterator(); If I'm off base here, would someone kindly let me know? Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
