edu.internet2.middleware.grouper.filter
Class StemsInStemFilter

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

public class StemsInStemFilter
extends BaseQueryFilter

Query by stem name exact, and get all stem children, or just immediate

Version:
$Id: StemsInStemFilter.java,v 1.2 2009-03-15 06:37:22 mchyzer Exp $
Author:
mchyzer

Constructor Summary
StemsInStemFilter(java.lang.String theStemName, Stem.Scope theScope, boolean theFailOnStemNotFound)
          QueryFilter that returns stems matching the specified name value.
 
Method Summary
 java.util.Set<Stem> 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

StemsInStemFilter

public StemsInStemFilter(java.lang.String theStemName,
                         Stem.Scope theScope,
                         boolean theFailOnStemNotFound)
QueryFilter that returns stems matching the specified name value.

This performs a substring, lowercased query on name.

Parameters:
theStemName - is the name (exact) of the stem to search
theScope - is the type of children to return (all or immediate)
theFailOnStemNotFound - true if GrouperException should be thrown on StemNotFoundException
Method Detail

getResults

public java.util.Set<Stem> 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)