Class SearchFilterHandlerImpl
java.lang.Object
ch.tocco.nice2.netui.impl.bind.entity.search.SearchFilterHandlerImpl
- All Implemented Interfaces:
SearchFilterHandler
,SearchRequestHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.netui.spi.bind.entity.SearchFilterHandler
SearchFilterHandler.QueryParts
-
Constructor Summary
ConstructorDescriptionSearchFilterHandlerImpl
(org.slf4j.Logger log, NiceDataModel dataModel, FormModel formModel, Context context, ConstrictionManager constrictionManager, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateSearchQuery
(SearchRequest request) Returns the search query for this search request.getQueryParts
(SearchRequest request) int
getScore
(SearchRequest request) Returns the priority of this handler.
-
Constructor Details
-
SearchFilterHandlerImpl
public SearchFilterHandlerImpl(org.slf4j.Logger log, NiceDataModel dataModel, FormModel formModel, Context context, ConstrictionManager constrictionManager, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
getScore
Description copied from interface:SearchRequestHandler
Returns the priority of this handler. The most positive score is considered as highest priority. The higher the score, the more specialized this handler is in handling the request. This is called on every search!- Specified by:
getScore
in interfaceSearchRequestHandler
-
createSearchQuery
Description copied from interface:SearchRequestHandler
Returns the search query for this search request.- Specified by:
createSearchQuery
in interfaceSearchRequestHandler
- Throws:
RpcExecutionException
-
getQueryParts
- Specified by:
getQueryParts
in interfaceSearchFilterHandler
-