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

java.lang.Object
  extended by edu.internet2.middleware.grouper.shibboleth.filter.BaseGroupQueryFilter
      extended by edu.internet2.middleware.grouper.shibboleth.filter.ExactAttributeGroupFilter
All Implemented Interfaces:
edu.internet2.middleware.grouper.filter.QueryFilter<edu.internet2.middleware.grouper.Group>, GroupQueryFilter

public class ExactAttributeGroupFilter
extends BaseGroupQueryFilter

Selects groups possessing an attribute name and value.


Constructor Summary
ExactAttributeGroupFilter(String name, String value)
          Creates a GroupAttributeFilter which returns groups with the given attribute name and value.
 
Method Summary
 edu.internet2.middleware.grouper.filter.QueryFilter<edu.internet2.middleware.grouper.Group> getQueryFilter()
          If the query filter is null, create a new GroupAttributeFilter.
 boolean matchesGroup(edu.internet2.middleware.grouper.Group group)
          Returns true if the Group would be returned by the filter.
 
Methods inherited from class edu.internet2.middleware.grouper.shibboleth.filter.BaseGroupQueryFilter
getGrouperSession, getResults, setGrouperSession, setQueryFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExactAttributeGroupFilter

public ExactAttributeGroupFilter(String name,
                                 String value)
Creates a GroupAttributeFilter which returns groups with the given attribute name and value. Groups are not restricted by stem.

Parameters:
name - the attribute name
value - the attribute value
Method Detail

getQueryFilter

public edu.internet2.middleware.grouper.filter.QueryFilter<edu.internet2.middleware.grouper.Group> getQueryFilter()
If the query filter is null, create a new 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.

Overrides:
getQueryFilter in class BaseGroupQueryFilter
Returns:
the QueryFilter

matchesGroup

public boolean matchesGroup(edu.internet2.middleware.grouper.Group group)
Returns true if the Group would be returned by the filter. False otherwise.

Parameters:
group - the Group
Returns:
if the group matches or not


Copyright © 2011 Internet2. All Rights Reserved.