public class SimpleWebAppSearchOptionsManager extends Object implements ISearchOptionsManager, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MAX_RESULTS_ENV_KEY
Name of web app environment variable which controls default number of max results for search options
|
KEY_INITIAL_SEARCH_TAB, KEY_INITIAL_SELECTED_SAVED_SEARCH, KEY_LAST_SEARCH_STATE, KEY_MAX_RESULTS, KEY_NO_MAX_RESULTS, KEY_RUN_SEARCH_ON_DISPLAY
Constructor and Description |
---|
SimpleWebAppSearchOptionsManager() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getSearchOptions()
Get a map of the current search options
|
protected static ServletContext |
getServletContext() |
protected static String |
getStorageKey() |
protected static boolean |
isPersistedSearchOption(String key) |
void |
updateSearchOptions(Map<String,Object> optionsMap)
Update the search options
|
public static final String DEFAULT_MAX_RESULTS_ENV_KEY
public Map<String,Object> getSearchOptions()
ISearchOptionsManager
getSearchOptions
in interface ISearchOptionsManager
public void updateSearchOptions(Map<String,Object> optionsMap)
ISearchOptionsManager
updateSearchOptions
in interface ISearchOptionsManager
optionsMap
- the options to updateprotected static ServletContext getServletContext()
protected static String getStorageKey()
protected static boolean isPersistedSearchOption(String key)