Class BaseSearchResultOptionsPageBean

All Implemented Interfaces:
IPageFlowScopeAdapter, Serializable, EventListener, PhaseListener, HttpSessionBindingListener
Direct Known Subclasses:
BaseToggleSearchResultOptionsPageBean

public abstract class BaseSearchResultOptionsPageBean extends BasePortletPageBean
Base page bean for search result options pages
Since:
7.0
See Also:
  • Field Details

    • fSortableColumnList

      protected List<SelectItem> fSortableColumnList
      List of sortable columns
    • fViewableColumnList

      protected List<SelectItem> fViewableColumnList
      List of viewable columns
  • Constructor Details

    • BaseSearchResultOptionsPageBean

      public BaseSearchResultOptionsPageBean()
  • Method Details

    • beforeRenderResponse

      protected void beforeRenderResponse()
      Overrides the default behavior to load information about the available table columns
      Overrides:
      beforeRenderResponse in class BaseViewBean
      See Also:
    • getSortableColumnList

      public List<SelectItem> getSortableColumnList()
      Returns the list of sortable columns
      Returns:
      list of sortable columns
    • getViewableColumnList

      public List<SelectItem> getViewableColumnList()
      Returns the list of viewable columns
      Returns:
      list of viewable columns
    • loadColumnInfo

      protected void loadColumnInfo()
      Loads the column information from the search results view
    • getPortletConfig

      protected Object getPortletConfig(ExternalContext externalContext)
    • loadColumnInfoForControl

      protected void loadColumnInfoForControl(String controlId, List<SelectItem> viewableColumnList, List<SelectItem> sortableColumnList)
      Loads the column info for the requested control
      Parameters:
      viewableColumnList - list where the viewable columns are added
      sortableColumnList - list where the sortable columns are added
    • loadColumnInfoForControl

      protected void loadColumnInfoForControl(DataTable dataTable, List<SelectItem> viewableColumnList, List<SelectItem> sortableColumnList)
      Loads the column info details for the supplied data table. Subclasses may override to extend.
      Parameters:
      dataTable - the table component to inspect
      viewableColumnList - list where the viewable columns are added
      sortableColumnList - list where the sortable columns are added
      Since:
      9.9
    • getSearchResultControlId

      protected abstract String getSearchResultControlId()
      Returns the id of the search result table control
      Returns:
      the id of the search result table control
    • getSearchResultsViewId

      protected String getSearchResultsViewId()
      Returns the id of the search results view
      Returns:
      the id of the search results view
    • isSortable

      public boolean isSortable()
      Returns whether there are any sortable columns in the search results table
      Returns:
      true if there are sortable columns, false otherwise
    • persistDisplayOptions

      public String persistDisplayOptions() throws javax.portlet.PortletModeException
      Action handler for the 'Save' button in the search options UI. By default, it will persist the search options chosen by the user and switch to the 'view' portlet mode.
      Returns:
      status of the action handler
      Throws:
      javax.portlet.PortletModeException
    • cancelDisplayOptions

      public String cancelDisplayOptions() throws javax.portlet.PortletModeException
      Action handler for the 'Cancel' button in the search options UI. By default it will switch the portlet back to the 'view' mode.
      Returns:
      status of the action handler
      Throws:
      javax.portlet.PortletModeException