Class BaseSearchBarPageBean

All Implemented Interfaces:
IPageFlowScopeAdapter, ISearchBarPageBean, ISearchPageBean, Serializable, EventListener, PhaseListener, HttpSessionBindingListener
Direct Known Subclasses:
BaseTaskInboxBarPageBean

public abstract class BaseSearchBarPageBean extends BasePortletPageBean implements ISearchBarPageBean, ISearchPageBean
Base page bean for views containing a search bar control
Since:
7.0
See Also:
  • Field Details

    • fSavedSearchProvider

      protected transient ISavedSearchProvider fSavedSearchProvider
      Reference to the current saved search provider
    • fSearchQueryFactory

      protected transient ISearchQueryFactory fSearchQueryFactory
      Reference to the current search query factory
    • fSearchOptionsManager

      protected transient ISearchOptionsManager fSearchOptionsManager
      Reference to the current search options manager
  • Constructor Details

    • BaseSearchBarPageBean

      public BaseSearchBarPageBean()
      Default Constructor
  • Method Details

    • getSavedSearchProvider

      public ISavedSearchProvider getSavedSearchProvider()
      Description copied from interface: ISearchBarPageBean
      Creates and returns implementation of ISavedSearchProvider
      Specified by:
      getSavedSearchProvider in interface ISearchBarPageBean
    • getSearchQueryFactory

      public ISearchQueryFactory getSearchQueryFactory()
      Description copied from interface: ISearchBarPageBean
      Creates and returns implementation of ISearchQueryFactory
      Specified by:
      getSearchQueryFactory in interface ISearchBarPageBean
    • getSearchOptionsManager

      public ISearchOptionsManager getSearchOptionsManager()
      Description copied from interface: ISearchBarPageBean
      Creates and returns implementation of ISearchOptionsManager
      Specified by:
      getSearchOptionsManager in interface ISearchBarPageBean
    • isSearchBarOnSimpleTab

      public boolean isSearchBarOnSimpleTab()
      Returns true if the active searchbar tab is the the 'Search' tab
      Returns:
      true if the active searchbar tab is the 'Search' tab
    • isSearchBarOnAdvancedTab

      public boolean isSearchBarOnAdvancedTab()
      Returns true if the active searchbar tab is the the 'Advanced' tab
      Returns:
      true if the active searchbar tab is the 'Advanced' tab
    • isSearchBarOnOptionsTab

      public boolean isSearchBarOnOptionsTab()
      Returns true if the active searchbar tab is the the 'Options' tab
      Returns:
      true if the active searchbar tab is the 'Options' tab
    • isSearchBarOnSavedTab

      public boolean isSearchBarOnSavedTab()
      Returns true if the active searchbar tab is the the 'Saved' tab
      Returns:
      true if the active searchbar tab is the 'Saved' tab
    • getSearchBarControl

      public abstract SearchBar getSearchBarControl()
      Retrieves the SearchBar control for this page
      Returns:
      SearchBar control for the page
    • loadSearchQueryDefaults

      public void loadSearchQueryDefaults(ISearchQuery searchQuery)
      Loads default values into search query
      Specified by:
      loadSearchQueryDefaults in interface ISearchBarPageBean
    • getSafeSearchBarControl

      protected SearchBar getSafeSearchBarControl()
      Wrapper around the getSearchBarControl method that throws an exception if the SearchBar value is null
      Returns:
      SearchBar control for the page
    • getActiveSearchQuery

      public ISearchQuery getActiveSearchQuery()
      Gets the active search query object for the SearchBar control.
      Specified by:
      getActiveSearchQuery in interface ISearchPageBean
      Returns:
      Returns the activeSearchQuery.
    • getActiveSavedSearch

      public ISavedSearch getActiveSavedSearch()
      Gets the active saved search object for the SearchBar control.
      Returns:
      Returns the activeSavedSearch.