public class FormSearchUserInputs extends AbstractSearchUserInputs
Modifier and Type | Field and Description |
---|---|
protected static Logger |
__LOGGER
Logger
|
static String |
CRITERION_PREFIX
The prefix for the criteria
|
static String |
FACET_PREFIX
The prefix for the facets
|
static String |
SORT_PREFIX
The prefix for the sorts
|
private static String |
USER_INPUT_PREFIX |
_criteria, _facets, _sorts
Constructor and Description |
---|
FormSearchUserInputs(Request request)
The constructor for search user inputs from a form.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
_isNotBlank(Request request,
String param)
Returns
true if at least one of the parameter values is not blank |
protected Object |
_requestParameterToTypedObject(Request request,
String param)
Gets a typed object from request parameters
|
protected Map<String,Object> |
_retrieveUserCriteria(Request request)
Retrieves the user criteria
|
protected Map<String,List<String>> |
_retrieveUserFacets(Request request)
Retrieves the user facets
|
protected List<Pair<String,Sort.Order>> |
_retrieveUserSorts(Request request)
Retrieves the user sorts
|
criteria, facets, sorts, toString
private static final String USER_INPUT_PREFIX
public static final String CRITERION_PREFIX
public static final String FACET_PREFIX
public static final String SORT_PREFIX
public FormSearchUserInputs(Request request)
request
- The requestprotected Map<String,Object> _retrieveUserCriteria(Request request)
request
- the requestprotected boolean _isNotBlank(Request request, String param)
true
if at least one of the parameter values is not blankrequest
- the requestparam
- the parameter nametrue
if at least one of the parameter values is not blankprotected Object _requestParameterToTypedObject(Request request, String param)
request
- the requestparam
- the parameter nameprotected Map<String,List<String>> _retrieveUserFacets(Request request)
request
- the requestprotected List<Pair<String,Sort.Order>> _retrieveUserSorts(Request request)
request
- the request