edu.internet2.middleware.grouper.filter
Class StemAttributeFilter

java.lang.Object
  extended by edu.internet2.middleware.grouper.filter.BaseQueryFilter
      extended by edu.internet2.middleware.grouper.filter.StemAttributeFilter
All Implemented Interfaces:
QueryFilter

public class StemAttributeFilter
extends BaseQueryFilter

Query by stem attribute (granted they arent real attributes as in another table, but the 4 name columns).

Version:
$Id: StemAttributeFilter.java,v 1.3 2009-01-02 06:57:11 mchyzer Exp $
Author:
mchyzer

Constructor Summary
StemAttributeFilter(String attr, String value, Stem ns)
          QueryFilter that returns groups matching the specified attribute specification.
 
Method Summary
 Set getResults(GrouperSession s)
          Get filter results.
 
Methods inherited from class edu.internet2.middleware.grouper.filter.BaseQueryFilter
filterByScope
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StemAttributeFilter

public StemAttributeFilter(String attr,
                           String value,
                           Stem ns)
QueryFilter that returns groups matching the specified attribute specification.

This performs a substring, lowercased query on attribute.

Parameters:
attr - Search on this attribute.
value - Search for this value.
ns - Restrict results to within this stem.
Method Detail

getResults

public Set getResults(GrouperSession s)
               throws QueryException
Description copied from class: BaseQueryFilter
Get filter results.

Specified by:
getResults in interface QueryFilter
Overrides:
getResults in class BaseQueryFilter
Parameters:
s - Get groups within this session context.
Returns:
Objects that match filter constraints.
Throws:
QueryException
See Also:
BaseQueryFilter.getResults(edu.internet2.middleware.grouper.GrouperSession)