Class GrouperObjectFinder
java.lang.Object
edu.internet2.middleware.grouper.misc.GrouperObjectFinder
find object of multiple types, and allow paging
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
type of objects to getstatic enum
privilege type to query -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddGrouperObjectFinderType
(GrouperObjectFinder.GrouperObjectFinderType grouperObjectFinderType1) add grouper object finder typeassignFilterText
(String theFilterText) if filtering names by certain stringsassignGrouperObjectFinderType
(Collection<GrouperObjectFinder.GrouperObjectFinderType> grouperObjectFinderTypes1) assign grouper object finder types (null or empty is all)assignObjectPrivilege
(GrouperObjectFinder.ObjectPrivilege theObjectPrivilege) which privileges should be used, see the enum for examplesassignParentStemId
(String theParentStemId) if only looking for objects in this stem, also set stemScopeassignQueryOptions
(QueryOptions theQueryOptions) if sorting / pagingassignSourceIds
(Set<String> sourceIds1) if not null, these are source ids to use for searchingassignSplitScope
(boolean theSplitScope) if the scope has spaces in it, then split by whitespace, and find results that contain all of the scope stringsassignStemScope
(Stem.Scope theStemScope) if only looking for objects in a stem, this is if ONE or SUBassignSubject
(Subject theSubject) subject to add to queries for example for privilegesstatic boolean
decoratePaging
(QueryOptions queryOptions, int firstIndexOnPage, int lastIndexOnPage, int firstSetIndex, int lastSetIndex) figure out the paging for one set of objects in a multiset listfind grouper objects based on the paramet
-
Constructor Details
-
GrouperObjectFinder
public GrouperObjectFinder()
-
-
Method Details
-
addGrouperObjectFinderType
public GrouperObjectFinder addGrouperObjectFinderType(GrouperObjectFinder.GrouperObjectFinderType grouperObjectFinderType1) add grouper object finder type- Parameters:
grouperObjectFinderType1
-- Returns:
- this for chaining
-
assignGrouperObjectFinderType
public GrouperObjectFinder assignGrouperObjectFinderType(Collection<GrouperObjectFinder.GrouperObjectFinderType> grouperObjectFinderTypes1) assign grouper object finder types (null or empty is all)- Parameters:
grouperObjectFinderTypes1
-- Returns:
- this for chaining
-
assignObjectPrivilege
public GrouperObjectFinder assignObjectPrivilege(GrouperObjectFinder.ObjectPrivilege theObjectPrivilege) which privileges should be used, see the enum for examples- Parameters:
theObjectPrivilege
-- Returns:
- this for chaining
-
decoratePaging
public static boolean decoratePaging(QueryOptions queryOptions, int firstIndexOnPage, int lastIndexOnPage, int firstSetIndex, int lastSetIndex) figure out the paging for one set of objects in a multiset list- Parameters:
queryOptions
-firstIndexOnPage
-lastIndexOnPage
-firstSetIndex
-lastSetIndex
-- Returns:
- true if should run query, false if not
-
assignSubject
subject to add to queries for example for privileges- Parameters:
theSubject
-- Returns:
- this for chaining
-
assignParentStemId
if only looking for objects in this stem, also set stemScope- Parameters:
theParentStemId
-- Returns:
- this for chaining
-
assignSourceIds
if not null, these are source ids to use for searching- Parameters:
sourceIds1
-- Returns:
- this for chaining
-
assignStemScope
if only looking for objects in a stem, this is if ONE or SUB- Parameters:
theStemScope
-- Returns:
- this for chaining
-
assignFilterText
if filtering names by certain strings- Parameters:
theFilterText
-- Returns:
- this for chaining
-
assignSplitScope
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
if sorting / paging- Parameters:
theQueryOptions
-
-
findGrouperObjects
find grouper objects based on the paramet- Returns:
- the set of objects
-