public final class SearchUtility
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static SearchTerm<?> |
parseFields(int[] searchFields,
java.lang.String[] patterns,
boolean linkWithOR)
Parses the fields and pattern received from UI into an appropriate instance of
SearchTerm. |
public static SearchTerm<?> parseFields(int[] searchFields, java.lang.String[] patterns, boolean linkWithOR)
SearchTerm.
Currently the supported search fields by UI are limited to:
All other are mapped to an instance ofBodyTerm to search for certain pattern inside a mail's text body.searchFields - The search fields as an array of intpatterns - The search patternslinkWithOR - Whether to link with a logical OR; otherwise to link with a logical AND