Class DirectorySearchQuery

java.lang.Object
com.webmethods.sc.directory.DirectorySearchQuery

public class DirectorySearchQuery extends Object
Class that describes directory service search query
  • 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 searched
      maxResults - maximum number of results to be returned by this query. Setting -1 will return all principals found
      refineQueryFields - optional array of refined search fields
  • Method Details

    • getKeywordQuery

      public String getKeywordQuery()
      Returns keyword query for this search. Empty string or null will match all principals
    • setKeywordQuery

      public void setKeywordQuery(String keywordQuery)
      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

      public DirectorySearchQuery.RefineQueryField[] getRefineQueryFields()
      Returns list of search refine fields
    • setRefineQueryFields

      public void setRefineQueryFields(DirectorySearchQuery.RefineQueryField[] refineQueryFields)
      Sets list of search refine fields
    • toJson

      public String toJson()