You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by je...@jakarta.apache.org on 2004/08/30 01:13:20 UTC

[jira] Resolved: (JS1-450) [ENH] Add Sorting to UserRoleUpdateAction

Message:

   The following issue has been resolved as FIXED.

   Resolver: Jeremy Ford
       Date: Sun, 29 Aug 2004 4:12 PM

Patches applied.  Also, this had been made optional.  To enable, set the following properties:

groupbrowser.clientsidesort=true
rolebrowser.clientsidesort=true
userbrowser.clientsidesort=true
---------------------------------------------------------------------
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: Sun, 29 Aug 2004 4:12 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