Class ManualQueryAndSearchFilterHandler
java.lang.Object
ch.tocco.nice2.netui.impl.bind.entity.search.ManualQueryAndSearchFilterHandler
- All Implemented Interfaces:
SearchRequestHandler
@Component
public class ManualQueryAndSearchFilterHandler
extends Object
implements SearchRequestHandler
This search handler is needed for the legacy actions in the new client only.
A new handler is required, because the new client sends the selection as
manual query combined with the other things (for example with a search filter).
The legacy client on the other hand sends the selection as rebind values
from the search form combined with the other things (for example with a search filter).
In the legacy client, the manual query was never combined with a search filter,
which is why there was no handler for that combination so far.
-
Constructor Summary
ConstructorDescriptionManualQueryAndSearchFilterHandler
(org.slf4j.Logger log, FormModel formModel, ConstrictionManager constrictionManager, QueryBuilderFactory queryBuilderFactory, SearchFilterHandler searchFilterHandler) -
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.
-
Constructor Details
-
ManualQueryAndSearchFilterHandler
public ManualQueryAndSearchFilterHandler(org.slf4j.Logger log, FormModel formModel, ConstrictionManager constrictionManager, QueryBuilderFactory queryBuilderFactory, SearchFilterHandler searchFilterHandler)
-
-
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
-