Package com.pingidentity.sdk
Class SearchCriteria
java.lang.Object
com.pingidentity.sdk.SearchCriteria
SearchCriteria object to hold all the relevant data for searching. Specify criteria such
as
startIndex, query, orderBy- Since:
- 8.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA helper to createSearchCriteriainstancesstatic final classClass to hold filterable name, value pairs to further narrow down the search resultsstatic enumIndicator of order directionstatic final classClass to hold the sortFieldName to order by and the direction of the order -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilterBy(SearchCriteria.FilterItem filterItem) voidaddOrderBy(SearchCriteria.OrderByItem orderByItem) filter the returned results based on FilterItemintGet the number of items requestedget the search results order by fieldgetQuery()Get the search Query stringintGet the start index of the search resultsvoidsetFilterBy(List<SearchCriteria.FilterItem> filterBy) voidsetItemsRequested(int itemsRequested) voidsetOrderBy(List<SearchCriteria.OrderByItem> orderBy) voidvoidsetStartIndex(int startIndex)
-
Method Details
-
getQuery
Get the search Query string- Returns:
- search query
-
setQuery
-
getStartIndex
public int getStartIndex()Get the start index of the search results- Returns:
- start index of the search results
-
setStartIndex
public void setStartIndex(int startIndex) -
getItemsRequested
public int getItemsRequested()Get the number of items requested- Returns:
- number of items requested
-
setItemsRequested
public void setItemsRequested(int itemsRequested) -
addOrderBy
-
addFilterBy
-
getFilterBy
filter the returned results based on FilterItem- Returns:
- filtered search results based on the given criteria
-
setFilterBy
-
getOrderBy
get the search results order by field- Returns:
- order by field of search results
-
setOrderBy
-