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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.If there is no app param defined for the # rows/page, then this value will be used for the defaultFields inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
FORM_ACTION, FORWARD_NEXT, FORWARD_TEXT_AREA_UPDATE, METHOD_TO_CALL, POST_TEXT_AREA_TO_PARENT, TEXT_AREA_FIELD_ANCHOR, TEXT_AREA_FIELD_LABEL, TEXT_AREA_FIELD_NAME, TEXT_AREA_MAX_LENGTH, TEXT_AREA_READ_ONLYFields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardcancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method overrides the super class cancel method because it is basically equivalent to clicking prepare to return noneorg.apache.struts.action.ActionForwardclearValues(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.clearValues - clears the values of all the fields on the jsp.org.apache.struts.action.ActionForwardexport(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method prepares to export results.protected intgetMaxRowsPerPage(MultipleValueLookupForm multipleValueLookupForm) Deprecated.This method computes the max number of rows that should be rendered per page for a multiple value lookup.protected CollectionperformMultipleValueLookup(MultipleValueLookupForm multipleValueLookupForm, List<ResultRow> resultTable, int maxRowsPerPage, boolean bounded) Deprecated.This method performs the lookup and returns a collection of lookup items.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.org.apache.struts.action.ActionForwardprepareToReturnNone(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method returns none of the selected results and redirects back to the lookup caller.protected voidprepareToReturnNone(MultipleValueLookupForm multipleValueLookupForm) Deprecated.This method performs the operations necessary for a multiple value lookup to return no results to the calling pageprotected voidprepareToReturnSelectedResultBOs(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.org.apache.struts.action.ActionForwardprepareToReturnSelectedResults(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method does the processing necessary to return selected results and sends a redirect back to the lookup callerorg.apache.struts.action.ActionForwardsearch(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method performs the search, and will be responsible for persisting the results via the LookupResultsService.org.apache.struts.action.ActionForwardselectAll(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method selects all results across all pagesselectAll(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 pageorg.apache.struts.action.ActionForwardsort(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method sorts a column.sort(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage) Deprecated.This method performs the operations necessary for a multiple value lookup to sort results and rerender the pageorg.apache.struts.action.ActionForwardswitchToPage(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method switches to another page on a multi-value lookupswitchToPage(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 pageorg.apache.struts.action.ActionForwardunselectAll(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.This method unselects all results across all pagesunselectAll(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 pageMethods inherited from class org.kuali.rice.kns.web.struts.action.KualiLookupAction
checkAuthorization, customLookupableMethodCall, execute, refresh, start, suppressActionsIfNeeded, viewResultsMethods inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
addMethodToCallToUncheckedList, defaultDispatch, dispatchMethod, doProcessingAfterPost, findMethodToCall, getApplicationBaseUrl, getBusinessObjectAuthorizationService, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getLineToEdit, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, hideAllTabs, isModuleLocked, performInquiry, performLookup, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, retrieveLookupParameterValue, showAllTabs, toggleTab, updateTextArea, validateLookupInquiryFullParameterMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, getMethod, getMethodName, getParameter, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
DEFAULT_MAX_ROWS_PER_PAGE
public static final int DEFAULT_MAX_ROWS_PER_PAGEDeprecated.If there is no app param defined for the # rows/page, then this value will be used for the default- See Also:
-
-
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:
searchin classKualiLookupAction- Parameters:
mapping-form- must be an instance of MultipleValueLookupFormrequest-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:
switchToPagein interfaceKualiTableRenderAction- Parameters:
mapping-form- must be an instance of MultipleValueLookupFormrequest-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:
sortin interfaceKualiTableRenderAction- Parameters:
mapping-form- must be an instance of MultipleValueLookupFormrequest-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 MultipleValueLookupFormrequest-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 MultipleValueLookupFormrequest-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 MultipleValueLookupFormrequest-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:
cancelin classKualiLookupAction- 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 MultipleValueLookupFormrequest-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 MultipleValueLookupFormrequest-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 methodmaxRowsPerPage-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
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
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
Deprecated.This method performs the operations necessary for a multiple value lookup to return no results to the calling page- Parameters:
multipleValueLookupForm-
-
prepareToExport
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:KualiLookupActionclearValues - clears the values of all the fields on the jsp.- Overrides:
clearValuesin classKualiLookupAction- Throws:
IOExceptionjavax.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
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:
-