edu.internet2.middleware.grouper.shibboleth.filter
Class NameInStemFilter

java.lang.Object
  extended by edu.internet2.middleware.grouper.shibboleth.filter.AbstractFilter<String>
      extended by edu.internet2.middleware.grouper.shibboleth.filter.NameInStemFilter
All Implemented Interfaces:
edu.internet2.middleware.grouper.filter.QueryFilter<String>, Filter<String>

public class NameInStemFilter
extends AbstractFilter<String>

Selects objects in a name with Stem.Scope.


Constructor Summary
NameInStemFilter(String name, String scope)
          Constructor.
 
Method Summary
 Set<String> getResults(edu.internet2.middleware.grouper.GrouperSession s)
          
 boolean matches(String name)
          Returns true if the name is a child of the configured name with the configured scope.
 
Methods inherited from class edu.internet2.middleware.grouper.shibboleth.filter.AbstractFilter
getGrouperSession, getQueryFilter, setQueryFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameInStemFilter

public NameInStemFilter(String name,
                        String scope)
Constructor.

Parameters:
name - the name
scope - the scope
Method Detail

getResults

public Set<String> getResults(edu.internet2.middleware.grouper.GrouperSession s)
                       throws edu.internet2.middleware.grouper.exception.QueryException

Specified by:
getResults in interface edu.internet2.middleware.grouper.filter.QueryFilter<String>
Overrides:
getResults in class AbstractFilter<String>
Throws:
edu.internet2.middleware.grouper.exception.QueryException

matches

public boolean matches(String name)
Returns true if the name is a child of the configured name with the configured scope. Returns true if the Grouper object would be returned by the filter. False otherwise.

Parameters:
name - the Grouper object
Returns:
if the Grouper object matches or not


Copyright © 2012 Internet2. All Rights Reserved.