Class KualiMultipleValueLookupAction

java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.kuali.rice.kns.web.struts.action.KualiAction
org.kuali.rice.kns.web.struts.action.KualiLookupAction
org.kuali.rice.kns.web.struts.action.KualiMultipleValueLookupAction
All Implemented Interfaces:
KualiTableRenderAction

@Deprecated public class KualiMultipleValueLookupAction extends KualiLookupAction implements KualiTableRenderAction
Deprecated.
KNS Struts deprecated, use KRAD and the Spring MVC framework.
This class serves as the struts action for implementing multiple value lookups
  • Field Details

  • Constructor Details

    • KualiMultipleValueLookupAction

      public KualiMultipleValueLookupAction()
      Deprecated.
  • Method Details

    • search

      public org.apache.struts.action.ActionForward search(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method performs the search, and will be responsible for persisting the results via the LookupResultsService. This overrides the superclass's search action method b/c of the differences in how the results are generated and it populates certain attributes that are specific to MultipleValueLookupForm
      Overrides:
      search in class KualiLookupAction
      Parameters:
      mapping -
      form - must be an instance of MultipleValueLookupForm
      request -
      response -
      Throws:
      Exception
    • switchToPage

      public org.apache.struts.action.ActionForward switchToPage(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method switches to another page on a multi-value lookup
      Specified by:
      switchToPage in interface KualiTableRenderAction
      Parameters:
      mapping -
      form - must be an instance of MultipleValueLookupForm
      request -
      response -
      Returns:
      Throws:
      Exception
    • sort

      public org.apache.struts.action.ActionForward sort(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method sorts a column. If the page is currently sorted on a certain column, and the same column is selected to be sorted again, then the results will be reversed. After the search method is called, it is difficult to determine the sort order of the result table, so no column is considered sorted. So, after a search, we were to click sort on an already sorted column, it would appear to have no effect. Subsequent clicks would tell you
      Specified by:
      sort in interface KualiTableRenderAction
      Parameters:
      mapping -
      form - must be an instance of MultipleValueLookupForm
      request -
      response -
      Returns:
      Throws:
      Exception
    • prepareToReturnSelectedResults

      public org.apache.struts.action.ActionForward prepareToReturnSelectedResults(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method does the processing necessary to return selected results and sends a redirect back to the lookup caller
      Parameters:
      mapping -
      form - must be an instance of MultipleValueLookupForm
      request -
      response -
      Returns:
      Throws:
      Exception
    • selectAll

      public org.apache.struts.action.ActionForward selectAll(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method selects all results across all pages
      Parameters:
      mapping -
      form - must be an instance of MultipleValueLookupForm
      request -
      response -
      Returns:
      Throws:
      Exception
    • unselectAll

      public org.apache.struts.action.ActionForward unselectAll(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method unselects all results across all pages
      Parameters:
      mapping -
      form - must be an instance of MultipleValueLookupForm
      request -
      response -
      Returns:
      Throws:
      Exception
    • cancel

      public org.apache.struts.action.ActionForward cancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method overrides the super class cancel method because it is basically equivalent to clicking prepare to return none
      Overrides:
      cancel in class KualiLookupAction
      Throws:
      Exception
      See Also:
    • prepareToReturnNone

      public org.apache.struts.action.ActionForward prepareToReturnNone(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method returns none of the selected results and redirects back to the lookup caller.
      Parameters:
      mapping -
      form - must be an instance of MultipleValueLookupForm
      request -
      response -
      Returns:
      Throws:
      Exception
    • export

      public org.apache.struts.action.ActionForward export(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Deprecated.
      This method prepares to export results. Note: this method will not look for any rows selected since the last page view, so it is best that exporting opens in a new browser window.
      Parameters:
      mapping -
      form - must be an instance of MultipleValueLookupForm
      request -
      response -
      Returns:
      Throws:
      Exception
    • performMultipleValueLookup

      protected Collection performMultipleValueLookup(MultipleValueLookupForm multipleValueLookupForm, List<ResultRow> resultTable, int maxRowsPerPage, boolean bounded)
      Deprecated.
      This method performs the lookup and returns a collection of lookup items. Also initializes values in the form that will allow the multiple value lookup page to render
      Parameters:
      multipleValueLookupForm -
      resultTable - a list of result rows (used to generate what's shown in the UI). This list will be modified by this method
      maxRowsPerPage -
      bounded - whether the results will be bounded
      Returns:
      the list of result BOs, possibly bounded by size
    • switchToPage

      protected List<ResultRow> switchToPage(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
      Deprecated.
      This method performs the operations necessary for a multiple value lookup to switch to another page of results and rerender the page
      Parameters:
      multipleValueLookupForm -
      maxRowsPerPage -
      Returns:
      a list of result rows, used by the UI to render the page
    • sort

      protected List<ResultRow> sort(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
      Deprecated.
      This method performs the operations necessary for a multiple value lookup to sort results and rerender the page
      Parameters:
      multipleValueLookupForm -
      maxRowsPerPage -
      Returns:
      a list of result rows, used by the UI to render the page
    • prepareToReturnSelectedResultBOs

      protected void prepareToReturnSelectedResultBOs(MultipleValueLookupForm multipleValueLookupForm)
      Deprecated.
      This method performs the operations necessary for a multiple value lookup keep track of which results have been selected to be returned to the calling document. Note, this method does not actually requery for the results.
      Parameters:
      multipleValueLookupForm -
    • prepareToReturnNone

      protected void prepareToReturnNone(MultipleValueLookupForm multipleValueLookupForm)
      Deprecated.
      This method performs the operations necessary for a multiple value lookup to return no results to the calling page
      Parameters:
      multipleValueLookupForm -
    • prepareToExport

      protected List<ResultRow> prepareToExport(MultipleValueLookupForm multipleValueLookupForm)
      Deprecated.
      This method performs the operations necessary for a multiple value lookup to export the rows via display tag Note: this method assumes that the export will be opened in a new browser window, therefore, persisting the selected checkboxes will not be needed.
      Parameters:
      multipleValueLookupForm -
      Returns:
      a list of result rows, to be used by display tag to render the results
    • selectAll

      protected List<ResultRow> selectAll(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
      Deprecated.
      This method performs the operations necessary for a multiple value lookup to select all of the results and rerender the page
      Parameters:
      multipleValueLookupForm -
      maxRowsPerPage -
      Returns:
      a list of result rows, used by the UI to render the page
    • clearValues

      public org.apache.struts.action.ActionForward clearValues(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
      Deprecated.
      Description copied from class: KualiLookupAction
      clearValues - clears the values of all the fields on the jsp.
      Overrides:
      clearValues in class KualiLookupAction
      Throws:
      IOException
      javax.servlet.ServletException
    • unselectAll

      protected List<ResultRow> unselectAll(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
      Deprecated.
      This method performs the operations necessary for a multiple value lookup to unselect all of the results and rerender the page
      Parameters:
      multipleValueLookupForm -
      maxRowsPerPage -
      Returns:
      a list of result rows, used by the UI to render the page
    • getMaxRowsPerPage

      protected int getMaxRowsPerPage(MultipleValueLookupForm multipleValueLookupForm)
      Deprecated.
      This method computes the max number of rows that should be rendered per page for a multiple value lookup. This method first looks for an application parameter in FS_PARM_T, group SYSTEM, multipleValueLookupResultsPerPage if someone wants to implement something where a user can decide how many results to display per page, this method is the place to do it. Make this method read form values to determine the max rows per page based on the user inputs
      Parameters:
      multipleValueLookupForm - the form
      Returns:
      See Also: