Class SearchFormAndQueryHandler
java.lang.Object
ch.tocco.nice2.netui.impl.bind.entity.search.SearchFormAndQueryHandler
- All Implemented Interfaces:
SearchRequestHandler
-
Constructor Summary
ConstructorDescriptionSearchFormAndQueryHandler
(QueryBuilderFactory queryBuilderFactory, SearchFormHandler searchFormHandler) -
Method Summary
Modifier and TypeMethodDescription@Nullable SearchQueryResponse
createSearchQuery
(SearchRequest request) Returns the search query for this search request.int
getScore
(SearchRequest request) Returns the priority of this handler.
-
Constructor Details
-
SearchFormAndQueryHandler
public SearchFormAndQueryHandler(QueryBuilderFactory queryBuilderFactory, SearchFormHandler searchFormHandler)
-
-
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
@Nullable public @Nullable SearchQueryResponse createSearchQuery(SearchRequest request) throws RpcExecutionException Description copied from interface:SearchRequestHandler
Returns the search query for this search request.- Specified by:
createSearchQuery
in interfaceSearchRequestHandler
- Throws:
RpcExecutionException
-