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