edu.internet2.middleware.grouper.ui
Class StemComparatorHelper
java.lang.Object
edu.internet2.middleware.grouper.ui.StemComparatorHelper
- All Implemented Interfaces:
- GrouperComparatorHelper, Serializable
public class StemComparatorHelper
- extends Object
- implements GrouperComparatorHelper
Implementation of ComparatorHelper used to sort Stems. The context affects sorting thus:
- If it starts 'search:', then anything following : is used as the sort field
- Otherwise 'stem.sort.<context>', 'stem.sort.<default>' and 'stem.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: StemComparatorHelper.java,v 1.2 2008-03-03 13:58:25 isgwb Exp $
- Author:
- Gary Brown.
- See Also:
- Serialized Form
StemComparatorHelper
public StemComparatorHelper()
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
- See Also:
GrouperComparatorHelper.getComparisonString(java.lang.Object, java.util.ResourceBundle, java.lang.String)