edu.internet2.middleware.grouper.userData
Class GrouperFavoriteFinder

java.lang.Object
  extended by edu.internet2.middleware.grouper.userData.GrouperFavoriteFinder

public class GrouperFavoriteFinder
extends Object

find object of multiple types, and allow paging

Author:
mchyzer

Nested Class Summary
static class GrouperFavoriteFinder.GrouperFavoriteFinderType
          type of objects to get
 
Constructor Summary
GrouperFavoriteFinder()
           
 
Method Summary
 GrouperFavoriteFinder addGrouperFavoriteFinderType(GrouperFavoriteFinder.GrouperFavoriteFinderType grouperFavoriteFinderType1)
          add grouper object finder type
 GrouperFavoriteFinder assignFilterText(String theFilterText)
          if filtering names by certain strings
 GrouperFavoriteFinder assignGrouperObjectFinderType(Collection<GrouperFavoriteFinder.GrouperFavoriteFinderType> grouperObjectFinderTypes1)
          assign grouper object finder types (null or empty is all)
 GrouperFavoriteFinder assignQueryOptions(QueryOptions theQueryOptions)
          if sorting / paging
 GrouperFavoriteFinder assignSplitScope(boolean theSplitScope)
          if the scope has spaces in it, then split by whitespace, and find results that contain all of the scope strings
 GrouperFavoriteFinder assignSubject(edu.internet2.middleware.subject.Subject theSubject)
          subject to add to queries for example for privileges
 GrouperFavoriteFinder assignUserDataGroupName(String theUserDataGroupName)
           
 Set<GrouperObject> findFavorites()
          find grouper objects based on the paramet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrouperFavoriteFinder

public GrouperFavoriteFinder()
Method Detail

addGrouperFavoriteFinderType

public GrouperFavoriteFinder addGrouperFavoriteFinderType(GrouperFavoriteFinder.GrouperFavoriteFinderType grouperFavoriteFinderType1)
add grouper object finder type

Parameters:
grouperFavoriteFinderType1 -
Returns:
this for chaining

assignGrouperObjectFinderType

public GrouperFavoriteFinder assignGrouperObjectFinderType(Collection<GrouperFavoriteFinder.GrouperFavoriteFinderType> grouperObjectFinderTypes1)
assign grouper object finder types (null or empty is all)

Parameters:
grouperObjectFinderTypes1 -
Returns:
this for chaining

assignSubject

public GrouperFavoriteFinder assignSubject(edu.internet2.middleware.subject.Subject theSubject)
subject to add to queries for example for privileges

Parameters:
theSubject -
Returns:
this for chaining

assignUserDataGroupName

public GrouperFavoriteFinder assignUserDataGroupName(String theUserDataGroupName)

assignFilterText

public GrouperFavoriteFinder assignFilterText(String theFilterText)
if filtering names by certain strings

Parameters:
theFilterText -
Returns:
this for chaining

assignSplitScope

public GrouperFavoriteFinder assignSplitScope(boolean theSplitScope)
if the scope has spaces in it, then split by whitespace, and find results that contain all of the scope strings

Parameters:
theSplitScope -
Returns:
this for chaining

assignQueryOptions

public GrouperFavoriteFinder assignQueryOptions(QueryOptions theQueryOptions)
if sorting / paging

Parameters:
theQueryOptions -

findFavorites

public Set<GrouperObject> findFavorites()
find grouper objects based on the paramet

Returns:
the set of objects