portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetspeed-...@jakarta.apache.org
Subject [jira] Commented: (JS1-450) [ENH] Add Sorting to UserRoleUpdateAction
Date Tue, 31 Aug 2004 13:46:22 GMT
The following comment has been added to this issue:

     Author: Bob Fleischman
    Created: Tue, 31 Aug 2004 6:44 AM
       Body:
Thank You. I was actually thinking of adding the optional part. It's a great idea and offers
maximum flexibility.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/JS1-450?page=comments#action_37963

---------------------------------------------------------------------
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: Resolved
   Priority: Blocker
 Resolution: FIXED

    Project: Jetspeed
 Components: 
             Miscellaneous
   Fix Fors:
             1.6-dev
   Versions:
             1.4

   Assignee: 
   Reporter: Bob Fleischman

    Created: Tue, 23 Mar 2004 4:52 PM
    Updated: Tue, 31 Aug 2004 6:44 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: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message