Class InMemorySearchOptionsManager
java.lang.Object
com.webmethods.caf.faces.search.options.InMemorySearchOptionsManager
- All Implemented Interfaces:
ISearchOptionsManager
,Serializable
public class InMemorySearchOptionsManager
extends Object
implements ISearchOptionsManager, Serializable
Search Options manager that holds the options only in memory.
Useful mostly for testing outside the portlet environment.
- Since:
- 7.0
- See Also:
-
Field Summary
FieldsFields 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 TypeMethodDescriptionGets hardcoded search options.void
updateSearchOptions
(Map<String, Object> optionsMap) Updates the in-memory search options.
-
Field Details
-
optionsMap
-
-
Constructor Details
-
InMemorySearchOptionsManager
public InMemorySearchOptionsManager()
-
-
Method Details
-
getSearchOptions
Gets hardcoded search options.- initialSearchTab = simpleSearch
- initialSelectedSavedSearch = null
- runSearchOnDisplay = false
- maxResults = 2000
- noMaxResults = false
- Specified by:
getSearchOptions
in interfaceISearchOptionsManager
- Returns:
- map of search options
- See Also:
-
com.webmethods.caf.faces.search.ISearchOptionsManager#getSearchOptions()
-
updateSearchOptions
Updates the in-memory search options. The options are not persisted so they will be lost when this object is garbage collected.- Specified by:
updateSearchOptions
in interfaceISearchOptionsManager
- Parameters:
optionsMap
- the options to update
-