Class PortletPrefsSearchOptionsManager
java.lang.Object
com.webmethods.caf.faces.search.options.PortletPrefsSearchOptionsManager
- All Implemented Interfaces:
ISearchOptionsManager
,Serializable
public class PortletPrefsSearchOptionsManager
extends Object
implements ISearchOptionsManager, Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.webmethods.caf.faces.search.options.ISearchOptionsManager
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getExpressionString
(String prefName) Get a map of the current search optionsprotected Object
Return the result of the resolved value binding expression.protected boolean
protected boolean
Sets value using given JSF value binding expression.void
updateSearchOptions
(Map<String, Object> optionsMap) Update the search options
-
Constructor Details
-
PortletPrefsSearchOptionsManager
public PortletPrefsSearchOptionsManager()
-
-
Method Details
-
getSearchOptions
Description copied from interface:ISearchOptionsManager
Get a map of the current search options- Specified by:
getSearchOptions
in interfaceISearchOptionsManager
- Returns:
- map of search options
-
isPersistedSearchOption
-
updateSearchOptions
Description copied from interface:ISearchOptionsManager
Update the search options- Specified by:
updateSearchOptions
in interfaceISearchOptionsManager
- Parameters:
optionsMap
- the options to update
-
getExpressionString
-
getValue
Return the result of the resolved value binding expression.#getFacesContext()
must return a valid context for the current thread.- Parameters:
expression
- JSF value binding expression- Returns:
- result of the expression, can be null
-
setValue
Sets value using given JSF value binding expression. Tries to convert the given value parameter to the target type of the value binding expression.- Parameters:
expression
- JSF value binding expressionvalue
- new value to assign- Returns:
- true if the new value is different from the previous value
-