public class GroupExactAttributeFilter extends AbstractFilter<Group>
Group
s by attribute name and value.Constructor and Description |
---|
GroupExactAttributeFilter(String name,
String value)
Creates a
GroupAttributeFilter which returns groups with the given attribute name and value. |
Modifier and Type | Method and Description |
---|---|
QueryFilter<Group> |
getQueryFilter()
If the query filter is null, create a new
GroupAttributeFilter . |
boolean |
matches(Object group)
Returns true if the group has an attribute with the configured name and value.
|
getGrouperSession, getResults, setQueryFilter
public GroupExactAttributeFilter(String name, String value)
GroupAttributeFilter
which returns groups with the given attribute name and value. Groups are not
restricted by stem.name
- the attribute namevalue
- the attribute valuepublic QueryFilter<Group> getQueryFilter()
GroupAttributeFilter
. As this filter relies upon a
GrouperSession
, this method should be called after the session has been started in the parent
BaseGrouperDataConnector
.
Get the query filter.getQueryFilter
in class AbstractFilter<Group>
public boolean matches(Object group)
group
- the Grouper objectCopyright © 2016 Internet2. All rights reserved.