public class PortletPrefsSearchOptionsManager extends Object implements ISearchOptionsManager, Serializable
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 |
---|
PortletPrefsSearchOptionsManager() |
Modifier and Type | Method and Description |
---|---|
protected String |
getExpressionString(String prefName) |
Map<String,Object> |
getSearchOptions()
Get a map of the current search options
|
protected Object |
getValue(String expression)
Return the result of the resolved value binding expression.
|
protected boolean |
isPersistedSearchOption(String key) |
protected boolean |
setValue(String expression,
Object value)
Sets value using given JSF value binding expression.
|
void |
updateSearchOptions(Map<String,Object> optionsMap)
Update the search options
|
public Map<String,Object> getSearchOptions()
ISearchOptionsManager
getSearchOptions
in interface ISearchOptionsManager
protected boolean isPersistedSearchOption(String key)
public void updateSearchOptions(Map<String,Object> optionsMap)
ISearchOptionsManager
updateSearchOptions
in interface ISearchOptionsManager
optionsMap
- the options to updateprotected Object getValue(String expression)
#getFacesContext()
must return a valid context for the
current thread.expression
- JSF value binding expressionprotected boolean setValue(String expression, Object value)
expression
- JSF value binding expressionvalue
- new value to assign