edu.internet2.middleware.grouper.ui
Class GroupComparatorHelper

java.lang.Object
  extended by edu.internet2.middleware.grouper.ui.GroupComparatorHelper
All Implemented Interfaces:
GrouperComparatorHelper, Serializable

public class GroupComparatorHelper
extends Object
implements GrouperComparatorHelper

Implementation of ComparatorHelper used to sort Groups and GroupAsMaps. The context affects sorting thus:

If the sort field contains spaces, the field is 'split' and each sub part is assumed to be separate attribute to sort on.

Version:
$Id: GroupComparatorHelper.java,v 1.4 2009-11-07 14:46:34 isgwb Exp $
Author:
Gary Brown.
See Also:
Serialized Form

Constructor Summary
GroupComparatorHelper()
           
 
Method Summary
 String getComparisonString(Object obj, ResourceBundle config, String context)
          Determine the correct String for sorting
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupComparatorHelper

public GroupComparatorHelper()
Method Detail

getComparisonString

public String getComparisonString(Object obj,
                                  ResourceBundle config,
                                  String context)
Description copied from interface: GrouperComparatorHelper
Determine the correct String for sorting

Specified by:
getComparisonString in interface GrouperComparatorHelper
Returns:
a String, based on context, used to sort this object