public class QueryAssembler extends Object
| Constructor and Description |
|---|
QueryAssembler() |
| Modifier and Type | Method and Description |
|---|---|
QueryAssembler |
addPhrase(FieldType fieldType,
Phrase phrase)
Adds a Phrase to the LDAP query
|
QueryAssembler |
addPhrase(FieldType fieldType,
PhraseOperator phraseOperator,
String value)
Adds a Phrase to the LDAP query
|
QueryAssembler |
addPhrase(String fieldName,
Phrase phrase) |
QueryAssembler |
addPhrase(String fieldName,
PhraseOperator phraseOperator,
String value) |
QueryAssembler |
addSentence(Sentence sentence)
Adds a Sentence to the LDAP query
|
Sentence |
appendSentence(Sentence newSentence,
Sentence currentSentence)
A utility helper to easely add additional Sentences to the current Sentences' list
|
Sentence |
closeSentence()
Returns the assembled Sentence by gluing the various Phrases with a default SentenceOperator.EMPTY operator
This method also clears the QueryAssembler state for further Queries
|
Sentence |
closeSentence(SentenceOperator sentenceOperator)
Returns the assembled Sentence by gluing the various Phrases with a SentenceOperator
This method also clears the QueryAssembler state for further Queries
|
public QueryAssembler addPhrase(FieldType fieldType, PhraseOperator phraseOperator, String value)
fieldType - FieldType One of the available query attributesphraseOperator - PhraseOperatorvalue - The query valueQueryAssembler Fluent APIpublic QueryAssembler addPhrase(String fieldName, PhraseOperator phraseOperator, String value)
public QueryAssembler addPhrase(FieldType fieldType, Phrase phrase)
fieldType - FieldType One of the available query attributesphrase - Phrase The Phrase to add to the queryQueryAssembler Fluent APIpublic QueryAssembler addPhrase(String fieldName, Phrase phrase)
public QueryAssembler addSentence(Sentence sentence)
sentence - Sentence The Sentence to addQueryAssembler Fluent APIpublic Sentence closeSentence(SentenceOperator sentenceOperator)
sentenceOperator - SentenceOperatorSentence The entire Sentence listpublic Sentence closeSentence()
Sentence The entire Sentence listCopyright © 2020. All rights reserved.