Class ConstrictionSearchParamExtractor
java.lang.Object
ch.tocco.nice2.rest.form.impl.search.ConstrictionSearchParamExtractor
- All Implemented Interfaces:
SearchParamExtractor<PlainQuerySearchParam>
- Direct Known Subclasses:
FormConstrictionSearchParamExtractor
@Component
public class ConstrictionSearchParamExtractor
extends Object
implements SearchParamExtractor<PlainQuerySearchParam>
Search param extractor for
PlainQueryParams
.
The query parameter `_constriction` refers to a constriction, which will be compiled to a condition
and returned as PlainQuerySearchParam
.-
Constructor Summary
ConstructorDescriptionConstrictionSearchParamExtractor
(ConstrictionManager constrictionManager, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionextractParams
(jakarta.ws.rs.core.MultivaluedMap<String, String> queryParams, EntityModel entityModel) protected Optional
<PlainQuerySearchParam> getConditionParam
(String constrictionName, EntityModel entityModel)
-
Constructor Details
-
ConstrictionSearchParamExtractor
public ConstrictionSearchParamExtractor(ConstrictionManager constrictionManager, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
extractParams
public List<PlainQuerySearchParam> extractParams(jakarta.ws.rs.core.MultivaluedMap<String, String> queryParams, EntityModel entityModel) - Specified by:
extractParams
in interfaceSearchParamExtractor<PlainQuerySearchParam>
-
getConditionParam
protected Optional<PlainQuerySearchParam> getConditionParam(String constrictionName, EntityModel entityModel)
-