The following issue has been updated:

    Updater: Bob Fleischman (mailto:[EMAIL PROTECTED])
       Date: Mon, 12 Jul 2004 6:07 AM
    Comment:
Patch to add sorting to GroupBrowser. If this method is OK I will upload patches for 
Users and Roles
    Changes:
             Attachment changed to GroupBrowserPatch.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/JS1-450?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JS1-450

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JS1-450
    Summary: [ENH] Add Sorting to UserRoleUpdateAction
       Type: Bug

     Status: Open

    Project: Jetspeed
 Components: 
             Miscellaneous
   Versions:
             1.4

   Assignee: Jetspeed Developer Mailing List
   Reporter: Bob Fleischman

    Created: Tue, 23 Mar 2004 4:52 PM
    Updated: Mon, 12 Jul 2004 6:07 AM
Environment: Operating System: All
Platform: All

Description:
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


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to