02/28/2005
 

com.epicentric.common
Class PortalBeanComparatorFactory

java.lang.Object
  |
  +--com.epicentric.common.PortalBeanComparatorFactory

Deprecated. As of 4.0, to be removed in 8.0 or later.

public class PortalBeanComparatorFactory
extends Object

Utility for sorting modules (PortalBean instances). The available sort types are specified in fields whose names begin with COMPARE_BY. The static getComparator() method uses the passed-in sort type to return the appropriate com.sun.java.util.collections.Comparator object.

See Also:
com.epicentric.portalbeans, StringComparator, DateComparator

Field Summary
static int COMPARE_BY_CATEGORY
          Deprecated. Comparison type for sorting by module display category name
static int COMPARE_BY_CREATION_DATE
          Deprecated. Comparison type for sorting by module creation date
static int COMPARE_BY_NAME
          Deprecated. Comparison type for sorting by module name.
static int COMPARE_BY_TITLE
          Deprecated. Comparison type for sorting by module title.
 
Constructor Summary
PortalBeanComparatorFactory()
          Deprecated.  
 
Method Summary
static com.sun.java.util.collections.Comparator getComparator(int comparisonMethod)
          Deprecated. As of 4.0, to be removed in 8.0 or later.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPARE_BY_CREATION_DATE

public static final int COMPARE_BY_CREATION_DATE
Deprecated. 
Comparison type for sorting by module creation date

COMPARE_BY_CATEGORY

public static final int COMPARE_BY_CATEGORY
Deprecated. 
Comparison type for sorting by module display category name

COMPARE_BY_NAME

public static final int COMPARE_BY_NAME
Deprecated. 
Comparison type for sorting by module name.

COMPARE_BY_TITLE

public static final int COMPARE_BY_TITLE
Deprecated. 
Comparison type for sorting by module title.
Constructor Detail

PortalBeanComparatorFactory

public PortalBeanComparatorFactory()
Deprecated. 
Method Detail

getComparator

public static com.sun.java.util.collections.Comparator getComparator(int comparisonMethod)
Deprecated. As of 4.0, to be removed in 8.0 or later.

Creates a Comparator object for sorting PortalBean instances according to the given comparison type.
Parameters:
comparisonMethod - one of the COMPARE_BY field values
Returns:
new Comparator object corresponding to comparisonMethod; default is the PortalBean name Comparator

02/28/2005
 

Copyright and Trademark Notices