Class SearchFormHandlerImpl
java.lang.Object
ch.tocco.nice2.netui.impl.bind.entity.search.SearchFormHandlerImpl
- All Implemented Interfaces:
SearchFormHandler
,SearchRequestHandler
-
Constructor Summary
ConstructorDescriptionSearchFormHandlerImpl
(org.slf4j.Logger log, QueryBuilderFactory queryBuilderFactory, NiceDataModel dataModel, FormModel formModel, ConstrictionManager constrictionManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateSearchQuery
(SearchRequest request) Returns the search query for this search request.int
getScore
(SearchRequest request) Returns the priority of this handler.void
setBuiltinParameterHandlers
(List<QueryParameterHandler> queryParameterHandlers) void
setQueryParameterHandlers
(List<QueryParameterHandler> queryParameterHandlers)
-
Constructor Details
-
SearchFormHandlerImpl
public SearchFormHandlerImpl(org.slf4j.Logger log, QueryBuilderFactory queryBuilderFactory, NiceDataModel dataModel, FormModel formModel, ConstrictionManager constrictionManager)
-
-
Method Details
-
setQueryParameterHandlers
@Autowired @Lazy public void setQueryParameterHandlers(List<QueryParameterHandler> queryParameterHandlers) -
setBuiltinParameterHandlers
@Autowired @Lazy public void setBuiltinParameterHandlers(List<QueryParameterHandler> queryParameterHandlers) -
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
-