edu.internet2.middleware.grouper.shibboleth.filter
Class NameFilter
java.lang.Object
edu.internet2.middleware.grouper.shibboleth.filter.AbstractFilter<String>
edu.internet2.middleware.grouper.shibboleth.filter.NameFilter
- All Implemented Interfaces:
- edu.internet2.middleware.grouper.filter.QueryFilter<String>, Filter<String>
public class NameFilter
- extends AbstractFilter<String>
Selects an object by exact name.
Method Summary |
Set<String> |
getResults(edu.internet2.middleware.grouper.GrouperSession s)
|
boolean |
matches(String name)
Returns true if the given name equals the configured name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameFilter
public NameFilter(String name)
- Constructor.
- Parameters:
name
- the name
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 given name equals the configured name.
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.