Package com.webmethods.sc.directory
Class DirectorySearchQuery
java.lang.Object
com.webmethods.sc.directory.DirectorySearchQuery
Class that describes directory service search query
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Describes refine field query for directory service -
Constructor Summary
ConstructorsConstructorDescriptionDirectorySearchQuery
(String keywordQuery, int maxResults, DirectorySearchQuery.RefineQueryField[] refineQueryFields) Default constructor DirectorySearchQuery -
Method Summary
Modifier and TypeMethodDescriptionReturns keyword query for this search.int
Returns max number of results to return.Returns list of search refine fieldsvoid
setKeywordQuery
(String keywordQuery) Sets keyword query for this search.void
setMaxResults
(int maxResults) Sets max number of results to return.void
setRefineQueryFields
(DirectorySearchQuery.RefineQueryField[] refineQueryFields) Sets list of search refine fieldstoJson()
-
Constructor Details
-
DirectorySearchQuery
public DirectorySearchQuery(String keywordQuery, int maxResults, DirectorySearchQuery.RefineQueryField[] refineQueryFields) Default constructor DirectorySearchQuery- Parameters:
keywordQuery
- keyword search value. Passing on null or "" empty string will match to all principals to be searchedmaxResults
- maximum number of results to be returned by this query. Setting -1 will return all principals foundrefineQueryFields
- optional array of refined search fields
-
-
Method Details
-
getKeywordQuery
Returns keyword query for this search. Empty string or null will match all principals -
setKeywordQuery
Sets keyword query for this search. Empty string or null will match all principals -
getMaxResults
public int getMaxResults()Returns max number of results to return. -1 means all -
setMaxResults
public void setMaxResults(int maxResults) Sets max number of results to return. -1 means all -
getRefineQueryFields
Returns list of search refine fields -
setRefineQueryFields
Sets list of search refine fields -
toJson
-