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 bu...@apache.org on 2004/03/23 17:52:31 UTC

DO NOT REPLY [Bug 27873] New: - Add Sorting to UserRoleUpdateAction

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: jetspeed-dev@jakarta.apache.org
        ReportedBy: bob.fleischman@mindspring.com


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: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org