Class LocalizedFieldParameterHandler
java.lang.Object
ch.tocco.nice2.netui.impl.bind.entity.search.queryparams.LocalizedFieldParameterHandler
- All Implemented Interfaces:
QueryParameterHandler
@Component
public class LocalizedFieldParameterHandler
extends Object
implements QueryParameterHandler
-
Constructor Summary
ConstructorDescriptionLocalizedFieldParameterHandler
(FulltextSearchBuilderFactory fulltextSearchBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addCriterion
(QueryBuilder q, TypedValue tv, Map<String, FieldModel> fieldModelsMap) Adds a condition to the query as 'and' conjunction with multiple fields in an 'or' manner.boolean
Handles the specified query parameter.
-
Constructor Details
-
LocalizedFieldParameterHandler
-
-
Method Details
-
processQueryParameter
Description copied from interface:QueryParameterHandler
Handles the specified query parameter. Returnstrue
to indicate successfull handling, so query parameters are not handled twice.- Specified by:
processQueryParameter
in interfaceQueryParameterHandler
- Throws:
RpcExecutionException
-
addCriterion
public boolean addCriterion(QueryBuilder q, TypedValue tv, Map<String, FieldModel> fieldModelsMap) throws IllegalArgumentExceptionAdds a condition to the query as 'and' conjunction with multiple fields in an 'or' manner.Logic example: "(AND (field1=value) OR (field2=value))"
- Returns:
true
if the query was extended,false
if not.- Throws:
IllegalArgumentException
-