Class GroupNameFilter
java.lang.Object
edu.internet2.middleware.grouper.filter.BaseQueryFilter
edu.internet2.middleware.grouper.filter.GroupNameFilter
- All Implemented Interfaces:
QueryFilter
Query by group name.
- Version:
- $Id: GroupNameFilter.java,v 1.4 2009-03-27 19:32:41 shilen Exp $
-
Constructor Summary
ConstructorsConstructorDescriptionGroupNameFilter(String name, Stem ns) QueryFilterthat returns groups matching the specified name.GroupNameFilter(String name, Stem ns, String theSortString, Boolean theAscending, Integer thePageNumber, Integer thePageSize, Set<TypeOfGroup> typeOfGroups1) QueryFilterthat returns groups matching the specified name.GroupNameFilter(String name, Stem ns, String theSortString, Boolean theAscending, Integer thePageNumber, Integer thePageSize, Set<TypeOfGroup> typeOfGroups1, Boolean enabled1) QueryFilterthat returns groups matching the specified name. -
Method Summary
Modifier and TypeMethodDescriptiontrue or null for ascending, false for descending.page number 1 indexed if pagingpage size if pagingGet filter results.must be an hql query field, e.g.type of groupvoidsetAscending(Boolean ascending1) true or null for ascending, false for descending.voidsetEnabled(Boolean enabled) voidsetPageNumber(Integer pageNumber1) page number 1 indexed if pagingvoidsetPageSize(Integer pageSize1) page size if pagingvoidsetSortString(String sortString1) must be an hql query field, e.g.voidsetTypeOfGroup(Set<TypeOfGroup> typeOfGroups1) type of groupMethods inherited from class edu.internet2.middleware.grouper.filter.BaseQueryFilter
filterByScope, getStringForScope, removeRootStem
-
Constructor Details
-
GroupNameFilter
QueryFilterthat returns groups matching the specified name.This performs a substring, lowercased query against name, alternateName, displayName, extension and displayExtension.
NOTE: This query will perform a full table scan.
- Parameters:
name- Find groups matching this name.ns- Restrict results to within this stem.
-
GroupNameFilter
public GroupNameFilter(String name, Stem ns, String theSortString, Boolean theAscending, Integer thePageNumber, Integer thePageSize, Set<TypeOfGroup> typeOfGroups1) QueryFilterthat returns groups matching the specified name.This performs a substring, lowercased query against name, alternateName, displayName, extension and displayExtension.
NOTE: This query will perform a full table scan.
- Parameters:
name- Find groups matching this name.ns- Restrict results to within this stem.theSortString-theAscending-thePageNumber-thePageSize-typeOfGroups1-
-
GroupNameFilter
public GroupNameFilter(String name, Stem ns, String theSortString, Boolean theAscending, Integer thePageNumber, Integer thePageSize, Set<TypeOfGroup> typeOfGroups1, Boolean enabled1) QueryFilterthat returns groups matching the specified name.This performs a substring, lowercased query against name, alternateName, displayName, extension and displayExtension.
NOTE: This query will perform a full table scan.
- Parameters:
name- Find groups matching this name.ns- Restrict results to within this stem.theSortString-theAscending-thePageNumber-thePageSize-typeOfGroups1-enabled1- true if enabled only, false if disabled only, null if everything
-
-
Method Details
-
getTypeOfGroups
type of group- Returns:
- type of group
-
setTypeOfGroup
type of group- Parameters:
typeOfGroups1-
-
getResults
Description copied from class:BaseQueryFilterGet filter results.- Specified by:
getResultsin interfaceQueryFilter- Overrides:
getResultsin classBaseQueryFilter- Parameters:
s- Get groups within this session context.- Returns:
- Objects that match filter constraints.
- Throws:
QueryException
-
getAscending
true or null for ascending, false for descending. If you pass true or false, must pass a sort string- Returns:
- the ascending
-
getPageNumber
page number 1 indexed if paging- Returns:
- the pageNumber
-
getPageSize
page size if paging- Returns:
- the pageSize
-
getSortString
must be an hql query field, e.g. can sort on name, displayName, extension, displayExtension- Returns:
- the sortString
-
setAscending
true or null for ascending, false for descending. If you pass true or false, must pass a sort string- Parameters:
ascending1- the ascending to set
-
setPageNumber
page number 1 indexed if paging- Parameters:
pageNumber1- the pageNumber to set
-
setPageSize
page size if paging- Parameters:
pageSize1- the pageSize to set
-
setSortString
must be an hql query field, e.g. can sort on name, displayName, extension, displayExtension- Parameters:
sortString1- the sortString to set
-
getEnabled
- Returns:
- true if enabled only, false if disabled only, null if everything
-
setEnabled
- Parameters:
enabled- true if enabled only, false if disabled only, null if everything
-