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
public class FormSearchUserInputs extends AbstractSearchUserInputs
The search user inputs from a submitted form.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
__LOGGER
Loggerstatic String
CRITERION_PREFIX
The prefix for the criteriastatic String
FACET_PREFIX
The prefix for the facetsstatic String
SORT_PREFIX
The prefix for the sortsprivate static String
USER_INPUT_PREFIX
-
Fields inherited from class org.ametys.web.frontoffice.search.requesttime.input.impl.AbstractSearchUserInputs
_criteria, _facets, _sorts
-
-
Constructor Summary
Constructors Constructor Description FormSearchUserInputs(Request request)
The constructor for search user inputs from a form.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static List<String>
_getParameterValues(String paramName, Request request)
protected 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 parametersprotected Map<String,Object>
_retrieveUserCriteria(Request request)
Retrieves the user criteriaprotected Map<String,List<String>>
_retrieveUserFacets(Request request)
Retrieves the user facetsprotected List<Pair<String,Sort.Order>>
_retrieveUserSorts(Request request)
Retrieves the user sorts-
Methods inherited from class org.ametys.web.frontoffice.search.requesttime.input.impl.AbstractSearchUserInputs
criteria, facets, sorts, toString
-
-
-
-
Field Detail
-
__LOGGER
protected static final org.slf4j.Logger __LOGGER
Logger
-
USER_INPUT_PREFIX
private static final String USER_INPUT_PREFIX
- See Also:
- Constant Field Values
-
CRITERION_PREFIX
public static final String CRITERION_PREFIX
The prefix for the criteria- See Also:
- Constant Field Values
-
FACET_PREFIX
public static final String FACET_PREFIX
The prefix for the facets- See Also:
- Constant Field Values
-
SORT_PREFIX
public static final String SORT_PREFIX
The prefix for the sorts- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FormSearchUserInputs
public FormSearchUserInputs(Request request)
The constructor for search user inputs from a form.- Parameters:
request
- The request
-
-
Method Detail
-
_retrieveUserCriteria
protected Map<String,Object> _retrieveUserCriteria(Request request)
Retrieves the user criteria- Parameters:
request
- the request- Returns:
- the user criteria
-
_isNotBlank
protected boolean _isNotBlank(Request request, String param)
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
protected Object _requestParameterToTypedObject(Request request, String param)
Gets a typed object from request parameters- Parameters:
request
- the requestparam
- the parameter name- Returns:
- a typed object
-
_retrieveUserFacets
protected Map<String,List<String>> _retrieveUserFacets(Request request)
Retrieves the user facets- Parameters:
request
- the request- Returns:
- the user facets
-
_getParameterValues
private static List<String> _getParameterValues(String paramName, Request request)
-
_retrieveUserSorts
protected List<Pair<String,Sort.Order>> _retrieveUserSorts(Request request)
Retrieves the user sorts- Parameters:
request
- the request- Returns:
- the user sorts
-
-