public class QueryRequest extends Request
| Constructor and Description |
|---|
QueryRequest() |
| Modifier and Type | Method and Description |
|---|---|
QueryRequest |
addEndpoint(Endpoint endpoint)
Helper function used for adding
Endpoint in a fluent coding style instead of using setEndpoints |
QueryRequest |
addRequestedField(FieldType fieldType)
Helper function used for adding requested fields
Field by field-type in a fluent coding style instead of using setRequestedField |
QueryRequest |
addRequestedField(String fieldName)
Helper function used for adding requested fields
Field by field-name in a fluent coding style instead of using setRequestedField |
void |
addSearchSentence(Sentence searchSentences) |
SortKey |
addSortKey(FieldType fieldType) |
SortKey |
addSortKey(String name) |
void |
close() |
Word |
find(String id)
|
List<Endpoint> |
getEndpoints() |
ObjectType |
getObjectType() |
int |
getPageChunkSize() |
ReferralsHandling |
getReferralsHandling() |
List<Field> |
getRequestedFields() |
Sentence |
getSearchSentence() |
String |
getSearchSentenceText() |
String |
getSearchText() |
Integer |
getSizeLimit() |
List<SortKey> |
getSortKeys() |
Integer |
getTimeLimit() |
boolean |
isPaged() |
void |
setEndpoints(List<Endpoint> endpoints) |
void |
setObjectType(ObjectType objectType) |
void |
setPageChunkSize(int pageChunkSize) |
void |
setReferralsHandling(ReferralsHandling referralsHandling) |
void |
setRequestedFields(List<Field> fields) |
void |
setSearchSentence(Sentence searchSentences) |
void |
setSearchSentenceText(String searchSentenceText) |
void |
setSearchText(String searchText) |
void |
setSizeLimit(Integer sizeLimit) |
void |
setTimeLimit(Integer timeLimit) |
getDirectoryType, isIgnoreSSLValidations, setDirectoryType, setIgnoreSSLValidationspublic int getPageChunkSize()
public void setPageChunkSize(int pageChunkSize)
pageChunkSize - Used in Paged scenarios, specify the max chunk size of each roundtrippublic void setObjectType(ObjectType objectType)
objectType - A ObjectType which indicates the requested object to searchpublic ObjectType getObjectType()
ObjectType which indicates the requested object to searchpublic void setRequestedFields(List<Field> fields)
fields - A list of Field used to indicate the requested field per object to retrieve
When not specified the query will return as result all the available attributespublic List<Field> getRequestedFields()
Field used to indicate the requested field per object to retrieve
When not specified the query will return as result all the available attributespublic void setSearchSentence(Sentence searchSentences)
searchSentences - A Sentence which express part of the querypublic Sentence getSearchSentence()
Sentence which express part of the querypublic String getSearchText()
public void setSearchText(String searchText)
searchText - Free style search, when exist overrides Sentences and Phrasespublic String getSearchSentenceText()
public void setSearchSentenceText(String searchSentenceText)
public List<Endpoint> getEndpoints()
Endpoint, used in multi forest scenariopublic void setEndpoints(List<Endpoint> endpoints)
endpoints - List of Endpoint, used in multi forest scenariopublic ReferralsHandling getReferralsHandling()
ReferralsHandling which dictates the way to handle Referralspublic void setReferralsHandling(ReferralsHandling referralsHandling)
referralsHandling - A ReferralsHandling which dictates the way to handle Referralspublic Integer getSizeLimit()
public void setSizeLimit(Integer sizeLimit)
sizeLimit - Maximum number of entries to retrievepublic Integer getTimeLimit()
public void setTimeLimit(Integer timeLimit)
timeLimit - Maximum time to wait for a response from the server (in seconds).
A value of 0 in this field indicates that no client-requested time-limit restrictions are in effect for the search.public QueryRequest addRequestedField(String fieldName)
Field by field-name in a fluent coding style instead of using setRequestedFieldfieldName - A string which indicates the name of the added fieldpublic QueryRequest addRequestedField(FieldType fieldType)
Field by field-type in a fluent coding style instead of using setRequestedFieldfieldType - A FieldType which indicates the type of the added fieldpublic boolean isPaged()
public QueryRequest addEndpoint(Endpoint endpoint)
Endpoint in a fluent coding style instead of using setEndpointsendpoint - A Endpoint objectspublic void addSearchSentence(Sentence searchSentences)
searchSentences - A Sentence append new Sentence if other Sentences exist, otherwise set as first Sentencepublic Word find(String id)
Sentence and Phrase extends from Word.
This function is used in cases where there is a need to keep track of specific Sentence or Phraseid - Word identifierpublic void close()
close in interface AutoCloseableclose in class Requestpublic List<SortKey> getSortKeys()
Copyright © 2020. All rights reserved.