edu.internet2.middleware.grouper.shibboleth.filter
Class NameInStemFilter
java.lang.Object
edu.internet2.middleware.grouper.shibboleth.filter.AbstractFilter<String>
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
.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameInStemFilter
public NameInStemFilter(String name,
String scope)
- Constructor.
- Parameters:
name
- the namescope
- the scope
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.