com.webmethods.caf.faces.data.dir
Class PeopleSearchProvider.SortEntry

java.lang.Object
  extended by com.webmethods.caf.faces.data.dir.PeopleSearchProvider.SortEntry
All Implemented Interfaces:
Comparable
Enclosing class:
PeopleSearchProvider

protected class PeopleSearchProvider.SortEntry
extends Object
implements Comparable

Sort utility class.


Field Summary
protected  PeopleSearchProvider.DirectoryPagingIterator m_dirIter
           
protected  String m_sortExpression
           
 
Constructor Summary
PeopleSearchProvider.SortEntry(String sortExpression, PeopleSearchProvider.DirectoryPagingIterator directoryIterator)
          Constructor that set the binding expression to sort by and the paging iterator from directory service.
 
Method Summary
 int compareTo(Object o)
          Compares this object with the specified object for order.
 PeopleSearchProvider.DirectoryPagingIterator getDirectoryIterator()
          Get the directory iterator.
 String getKey()
          Get the sort key binding expression.
protected  void setDirectoryIterator(PeopleSearchProvider.DirectoryPagingIterator directoryIterator)
          Set the directory iterator.
protected  void setKey(String key)
          Set the sort key value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_sortExpression

protected String m_sortExpression

m_dirIter

protected PeopleSearchProvider.DirectoryPagingIterator m_dirIter
Constructor Detail

PeopleSearchProvider.SortEntry

public PeopleSearchProvider.SortEntry(String sortExpression,
                                      PeopleSearchProvider.DirectoryPagingIterator directoryIterator)
Constructor that set the binding expression to sort by and the paging iterator from directory service.

Parameters:
sortExpression - The binding expression to sort by.
directoryIterator - The paging iterator from directory service.
Method Detail

setKey

protected void setKey(String key)
Set the sort key value.

Parameters:
key - The binding expression to sort by.

getKey

public String getKey()
Get the sort key binding expression.

Returns:
The binding expression to sort by.

setDirectoryIterator

protected void setDirectoryIterator(PeopleSearchProvider.DirectoryPagingIterator directoryIterator)
Set the directory iterator.

Parameters:
directoryIterator - The directory iterator.

getDirectoryIterator

public PeopleSearchProvider.DirectoryPagingIterator getDirectoryIterator()
Get the directory iterator.

Returns:
The directory iterator.

compareTo

public int compareTo(Object o)
Compares this object with the specified object for order.

Specified by:
compareTo in interface Comparable
Parameters:
o - The object to compare to.
Returns:
A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
See Also:
Comparable.compareTo( Object )