edu.internet2.middleware.grouper.filter
Class StemsInStemFilter
java.lang.Object
edu.internet2.middleware.grouper.filter.BaseQueryFilter
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 searchtheScope
- is the type of children to return (all or immediate)theFailOnStemNotFound
- true if GrouperException should be thrown on StemNotFoundException
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)