public class KualiMultipleValueLookupAction extends KualiLookupAction implements KualiTableRenderAction
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_ROWS_PER_PAGE
If there is no app param defined for the # rows/page, then this value
will be used for the default
|
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_ONLY| Constructor and Description |
|---|
KualiMultipleValueLookupAction() |
| Modifier and Type | Method and Description |
|---|---|
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)
This method overrides the super class cancel method because it is basically equivalent to clicking prepare to return none
|
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)
clearValues - clears the values of all the fields on the jsp.
|
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)
This method prepares to export results.
|
protected int |
getMaxRowsPerPage(MultipleValueLookupForm multipleValueLookupForm)
This method computes the max number of rows that should be rendered per page for a multiple value lookup.
|
protected Collection |
performMultipleValueLookup(MultipleValueLookupForm multipleValueLookupForm,
List<ResultRow> resultTable,
int maxRowsPerPage,
boolean bounded)
This method performs the lookup and returns a collection of lookup items.
|
protected List<ResultRow> |
prepareToExport(MultipleValueLookupForm multipleValueLookupForm)
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.ActionForward |
prepareToReturnNone(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method returns none of the selected results and redirects back to the lookup caller.
|
protected void |
prepareToReturnNone(MultipleValueLookupForm multipleValueLookupForm)
This method performs the operations necessary for a multiple value lookup to return no results to the calling page
|
protected void |
prepareToReturnSelectedResultBOs(MultipleValueLookupForm multipleValueLookupForm)
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.ActionForward |
prepareToReturnSelectedResults(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method does the processing necessary to return selected results and sends a redirect back to the lookup caller
|
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)
This method performs the search, and will be responsible for persisting the results via the LookupResultsService.
|
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)
This method selects all results across all pages
|
protected List<ResultRow> |
selectAll(MultipleValueLookupForm multipleValueLookupForm,
int maxRowsPerPage)
This method performs the operations necessary for a multiple value lookup to select all of the results and rerender the page
|
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)
This method sorts a column.
|
protected List<ResultRow> |
sort(MultipleValueLookupForm multipleValueLookupForm,
int maxRowsPerPage)
This method performs the operations necessary for a multiple value lookup to sort results and rerender the page
|
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)
This method switches to another page on a multi-value lookup
|
protected List<ResultRow> |
switchToPage(MultipleValueLookupForm multipleValueLookupForm,
int maxRowsPerPage)
This method performs the operations necessary for a multiple value lookup to switch to another page of results and rerender the page
|
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)
This method unselects all results across all pages
|
protected List<ResultRow> |
unselectAll(MultipleValueLookupForm multipleValueLookupForm,
int maxRowsPerPage)
This method performs the operations necessary for a multiple value lookup to unselect all of the results and rerender the page
|
checkAuthorization, customLookupableMethodCall, execute, refresh, start, suppressActionsIfNeeded, viewResultsaddMethodToCallToUncheckedList, 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, validateLookupInquiryFullParametercancelled, getMethod, getMethodName, getParameter, unspecifiedaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletpublic static final int DEFAULT_MAX_ROWS_PER_PAGE
public KualiMultipleValueLookupAction()
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
search in class KualiLookupActionmapping - form - must be an instance of MultipleValueLookupFormrequest - response - Exceptionpublic 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
switchToPage in interface KualiTableRenderActionmapping - form - must be an instance of MultipleValueLookupFormrequest - response - Exceptionpublic 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
sort in interface KualiTableRenderActionmapping - form - must be an instance of MultipleValueLookupFormrequest - response - Exceptionpublic 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
mapping - form - must be an instance of MultipleValueLookupFormrequest - response - Exceptionpublic 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
mapping - form - must be an instance of MultipleValueLookupFormrequest - response - Exceptionpublic 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
mapping - form - must be an instance of MultipleValueLookupFormrequest - response - Exceptionpublic 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
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
mapping - form - must be an instance of MultipleValueLookupFormrequest - response - Exceptionpublic 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
mapping - form - must be an instance of MultipleValueLookupFormrequest - response - Exceptionprotected Collection performMultipleValueLookup(MultipleValueLookupForm multipleValueLookupForm, List<ResultRow> resultTable, int maxRowsPerPage, boolean bounded)
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 boundedprotected List<ResultRow> switchToPage(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
multipleValueLookupForm - maxRowsPerPage - protected List<ResultRow> sort(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
multipleValueLookupForm - maxRowsPerPage - protected void prepareToReturnSelectedResultBOs(MultipleValueLookupForm multipleValueLookupForm)
multipleValueLookupForm - protected void prepareToReturnNone(MultipleValueLookupForm multipleValueLookupForm)
multipleValueLookupForm - protected List<ResultRow> prepareToExport(MultipleValueLookupForm multipleValueLookupForm)
multipleValueLookupForm - protected List<ResultRow> selectAll(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
multipleValueLookupForm - maxRowsPerPage - 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
KualiLookupActionclearValues in class KualiLookupActionIOExceptionjavax.servlet.ServletExceptionprotected List<ResultRow> unselectAll(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
multipleValueLookupForm - maxRowsPerPage - protected int getMaxRowsPerPage(MultipleValueLookupForm multipleValueLookupForm)
multipleValueLookupForm - the formKRADConstants.SystemGroupParameterNames.MULTIPLE_VALUE_LOOKUP_RESULTS_PER_PAGE,
DEFAULT_MAX_ROWS_PER_PAGECopyright © 2005–2016 The Kuali Foundation. All rights reserved.