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 Details

  • Constructor Details

    • InMemorySearchOptionsManager

      public InMemorySearchOptionsManager()
  • Method Details

    • getSearchOptions

      public Map<String,Object> getSearchOptions()
      Gets hardcoded search options.
      • initialSearchTab = simpleSearch
      • initialSelectedSavedSearch = null
      • runSearchOnDisplay = false
      • maxResults = 2000
      • noMaxResults = false
      Specified by:
      getSearchOptions in interface ISearchOptionsManager
      Returns:
      map of search options
      See Also:
      • com.webmethods.caf.faces.search.ISearchOptionsManager#getSearchOptions()
    • updateSearchOptions

      public void updateSearchOptions(Map<String,Object> optionsMap)
      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 interface ISearchOptionsManager
      Parameters:
      optionsMap - the options to update