edu.internet2.middleware.grouper.ui
Class GroupOrStemComparatorHelper

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

public class GroupOrStemComparatorHelper
extends Object
implements GrouperComparatorHelper

Implementation of ComparatorHelper used to sort GroupOrStems. Will also sort SubjectPrivilegeAsMaps as these can be shown as groups or stems.

Implementation determines whether underlying Object is a Group or Stem, and calls appropriate Helper implementation

Version:
$Id: GroupOrStemComparatorHelper.java,v 1.1 2007-03-15 15:30:16 isgwb Exp $
Author:
Gary Brown.
See Also:
Serialized Form

Constructor Summary
GroupOrStemComparatorHelper()
           
 
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

GroupOrStemComparatorHelper

public GroupOrStemComparatorHelper()
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