edu.internet2.middleware.grouper.ui
Class GroupComparatorHelper
java.lang.Object
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 it starts 'search:', then anything following : is used as the sort field
- If it equals 'flat', the media property 'group.sort.flat' is looked up. If that does not exist 'group.display.flat' is looked up
- Otherwise 'group.sort.<context>', 'group.sort.<default>' and 'group.display' are looked up until a value is found
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
GroupComparatorHelper
public GroupComparatorHelper()
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