Class FormSearchUserInputs
java.lang.Object
org.ametys.web.frontoffice.search.requesttime.input.impl.AbstractSearchUserInputs
org.ametys.web.frontoffice.search.requesttime.input.impl.FormSearchUserInputs
- All Implemented Interfaces:
SearchUserInputs
The search user inputs from a submitted form.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Logger
Loggerstatic final String
The prefix for the criteriastatic final String
The prefix for the facetsstatic final String
The prefix for the sortsFields inherited from class org.ametys.web.frontoffice.search.requesttime.input.impl.AbstractSearchUserInputs
_criteria, _facets, _sorts
-
Constructor Summary
ConstructorDescriptionFormSearchUserInputs
(Request request) The constructor for search user inputs from a form. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
_isNotBlank
(Request request, String param) Returnstrue
if at least one of the parameter values is not blankprotected Object
_requestParameterToTypedObject
(Request request, String param) Gets a typed object from request parameters_retrieveUserCriteria
(Request request) Retrieves the user criteria_retrieveUserFacets
(Request request) Retrieves the user facetsprotected List<Pair<String,
Sort.Order>> _retrieveUserSorts
(Request request) Retrieves the user sortsMethods inherited from class org.ametys.web.frontoffice.search.requesttime.input.impl.AbstractSearchUserInputs
criteria, facets, sorts, toString
-
Field Details
-
__LOGGER
Logger -
CRITERION_PREFIX
The prefix for the criteria- See Also:
-
FACET_PREFIX
The prefix for the facets- See Also:
-
SORT_PREFIX
The prefix for the sorts- See Also:
-
-
Constructor Details
-
FormSearchUserInputs
The constructor for search user inputs from a form.- Parameters:
request
- The request
-
-
Method Details
-
_retrieveUserCriteria
Retrieves the user criteria- Parameters:
request
- the request- Returns:
- the user criteria
-
_isNotBlank
Returnstrue
if at least one of the parameter values is not blank- Parameters:
request
- the requestparam
- the parameter name- Returns:
true
if at least one of the parameter values is not blank
-
_requestParameterToTypedObject
Gets a typed object from request parameters- Parameters:
request
- the requestparam
- the parameter name- Returns:
- a typed object
-
_retrieveUserFacets
Retrieves the user facets- Parameters:
request
- the request- Returns:
- the user facets
-
_retrieveUserSorts
Retrieves the user sorts- Parameters:
request
- the request- Returns:
- the user sorts
-