portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetspeed-...@jakarta.apache.org
Subject [jira] Updated: (JS1-450) [ENH] Add Sorting to UserRoleUpdateAction
Date Thu, 15 Jul 2004 04:25:40 GMT
The following issue has been updated:

    Updater: Bob Fleischman (mailto:bob.fleischman@mindspring.com)
       Date: Wed, 14 Jul 2004 9:24 PM
    Comment:
This is the patch file with sorting for Groups, Users and Roles
    Changes:
             Attachment changed to BrowserSortingPatch.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: Unassigned
   Priority: Blocker

    Project: Jetspeed
 Components: 
             Miscellaneous
   Versions:
             1.4

   Assignee: 
   Reporter: Bob Fleischman

    Created: Tue, 23 Mar 2004 4:52 PM
    Updated: Wed, 14 Jul 2004 9:24 PM
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: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message