@Controller @RequestMapping(value="/kew/actionList") public class ActionListController extends UifControllerBase
Modifier and Type | Field and Description |
---|---|
protected static String |
MAX_ACTION_ITEM_DATE_FORMAT |
Constructor and Description |
---|
ActionListController() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomActions(List<? extends ActionItemBase> actionList,
Preferences preferences,
ActionListForm form)
Adds custom actions to action items.
|
org.springframework.web.servlet.ModelAndView |
cancelFilter(UifFormBase form)
Revert to previous filter.
|
org.springframework.web.servlet.ModelAndView |
clear(UifFormBase form)
Clears the action list filter.
|
org.springframework.web.servlet.ModelAndView |
clearFilter(UifFormBase form)
Clears the action list filter.
|
org.springframework.web.servlet.ModelAndView |
clearHelpDeskActionListUser(UifFormBase form)
Clears help desk login.
|
protected ActionListForm |
createInitialForm()
Invoked to create a new form instance for the request before it is passed to the Binder/BeanWrapper.
|
protected ActionItemBase |
getActionItemFromActionList(List<? extends ActionItemBase> actionList,
String actionItemId)
Gets action item from list.
|
protected int |
getPageSize(Preferences preferences)
Get the action list page size.
|
org.springframework.web.servlet.ModelAndView |
helpDeskActionListLogin(UifFormBase form)
Sets up view for help desk login.
|
protected void |
initializeDelegators(ActionListForm actionListForm,
ActionListFilter filter,
List<? extends ActionItemBase> actionList,
javax.servlet.http.HttpServletRequest request)
Initializes Delegators
|
protected void |
initializeDocType(ActionListForm actionListForm,
ActionListFilter filter)
Initializes Document Type.
|
protected void |
initializeFilter(ActionListForm form)
Initializes filter.
|
protected void |
initializePrimaryDelegate(ActionListForm actionListForm,
ActionListFilter filter,
List<? extends ActionItemBase> actionList,
javax.servlet.http.HttpServletRequest request)
Initializes primary delegate.
|
protected String |
initializePrincipalId(ActionListForm actionListForm,
ActionListFilter filter)
Initializes principal id.
|
org.springframework.web.servlet.ModelAndView |
refresh(UifFormBase form)
Refresh request mapping.
|
org.springframework.web.servlet.ModelAndView |
removeOutboxItems(UifFormBase form)
Removes outbox items.
|
protected void |
setDelegationId(ActionListForm actionListForm,
javax.servlet.http.HttpServletRequest request)
Sets the delegation id
|
org.springframework.web.servlet.ModelAndView |
setFilter(UifFormBase form)
Sets the filter.
|
org.springframework.web.servlet.ModelAndView |
start(UifFormBase form)
Start request mapping.
|
protected org.springframework.web.servlet.ModelAndView |
takeMassActions(UifFormBase form)
Process taking mass action on action items
|
org.springframework.web.servlet.ModelAndView |
viewFilter(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Navigates to filter view.
|
org.springframework.web.servlet.ModelAndView |
viewPreferences(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Navigate to preferences page.
|
addBlankLine, addFileUploadLine, addLine, back, cancel, checkForm, closeEditLineDialog, defaultMapping, deleteFileUploadLine, deleteLine, editLine, getCollectionControllerService, getControllerService, getFileControllerService, getFileFromLine, getMessageView, getModelAndView, getModelAndView, getModelAndView, getModelAndViewService, getModelAndViewWithInit, getModelAndViewWithInit, getNavigationControllerService, getQueryControllerService, getRefreshControllerService, getSaveControllerService, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, performRedirect, retrieveCollectionPage, retrieveEditLineDialog, returnToHub, returnToPrevious, save, saveField, saveLine, sessionTimeout, setCollectionControllerService, setControllerService, setFileControllerService, setModelAndViewService, setNavigationControllerService, setQueryControllerService, setRefreshControllerService, setSaveControllerService, showDialog, tableJsonRetrieval
protected static final String MAX_ACTION_ITEM_DATE_FORMAT
public ActionListController()
protected ActionListForm createInitialForm()
UifControllerBase
createInitialForm
in class UifControllerBase
@RequestMapping(params="methodToCall=refresh") public org.springframework.web.servlet.ModelAndView refresh(UifFormBase form)
Handles requests where the methodToCall parameter is 'refresh'.
refresh
in class UifControllerBase
form
- - ActionListForm formresult
- - Spring form binding resultrequest
- - http requestresponse
- - http responseRefreshControllerService.refresh(org.kuali.rice.krad.web.form.UifFormBase)
protected void initializeFilter(ActionListForm form)
Sets up the action list filter
form
- - ActionListForm formprotected String initializePrincipalId(ActionListForm actionListForm, ActionListFilter filter)
Sets up the principal id in the form.
actionListForm
- - ActionListForm formfilter
- - action list filterprotected void initializeDocType(ActionListForm actionListForm, ActionListFilter filter)
Sets up the document type in the form.
actionListForm
- - ActionListForm formfilter
- - action list filterprotected void initializeDelegators(ActionListForm actionListForm, ActionListFilter filter, List<? extends ActionItemBase> actionList, javax.servlet.http.HttpServletRequest request)
Sets up the delegators for the form and filter
actionListForm
- - ActionListForm formfilter
- - action list filteractionList
- - list of action itemsrequest
- - http requestprotected void setDelegationId(ActionListForm actionListForm, javax.servlet.http.HttpServletRequest request)
Sets the delegation id on the form
actionListForm
- - ActionListForm formrequest
- - http requestprotected void initializePrimaryDelegate(ActionListForm actionListForm, ActionListFilter filter, List<? extends ActionItemBase> actionList, javax.servlet.http.HttpServletRequest request)
Sets up the primary delegate in the form.
actionListForm
- - ActionListForm formfilter
- - action list filteractionList
- - list of action itemsrequest
- - http request@MethodAccessible @RequestMapping(params="methodToCall=start") public org.springframework.web.servlet.ModelAndView start(UifFormBase form)
Handles requests where the methodToCall parameter is 'start'. Runs on most requests and sets up the basic variables.
start
in class UifControllerBase
form
- - ActionListForm formrequest
- - http requestresponse
- - http responseControllerService.start(org.kuali.rice.krad.web.form.UifFormBase)
protected int getPageSize(Preferences preferences)
Gets the page size of the Action List. Uses the user's preferences for page size unless the action list has been throttled by an application constant, in which case it uses the smaller of the two values.
preferences
- KEW user preferencesprotected void addCustomActions(List<? extends ActionItemBase> actionList, Preferences preferences, ActionListForm form) throws WorkflowException
Goes through each item in the action list and adds the custom actions. It also adds flags for whether each item has actions. Finally, creates list of actions and flag for the entire action list.
actionList
- list of action itemspreferences
- KEW preferencesWorkflowException
@RequestMapping(params="methodToCall=takeMassActions") protected org.springframework.web.servlet.ModelAndView takeMassActions(UifFormBase form)
Handles requests where the methodToCall parameter is 'takeMassActions'. Iterates through action items that have custom actions and process each selected action.
form
- - ActionListForm formresult
- - Spring form binding resultrequest
- - http requestresponse
- - http responseprotected ActionItemBase getActionItemFromActionList(List<? extends ActionItemBase> actionList, String actionItemId)
Gets the action item from the action item list based on the ID.
actionList
- - list of action itemsactionItemId
- - primary key for action item@MethodAccessible @RequestMapping(params="methodToCall=helpDeskActionListLogin") public org.springframework.web.servlet.ModelAndView helpDeskActionListLogin(UifFormBase form)
Setups the view for the help desk login. User can see other's action items but can't take action on them.
form
- - ActionListForm formresult
- - Spring form binding resultrequest
- - http requestresponse
- - http response@RequestMapping(params="methodToCall=clearFilter") public org.springframework.web.servlet.ModelAndView clearFilter(UifFormBase form)
Clears the action list filter so all action items are shown.
form
- - ActionListForm formresult
- - Spring form binding resultrequest
- - http requestresponse
- - http response@RequestMapping(params="methodToCall=clear") public org.springframework.web.servlet.ModelAndView clear(UifFormBase form)
Clears the action list filter so all action items are shown. Clears filter from secondary page and then forwards to the correct page after the start method runs.
form
- ActionListForm form@RequestMapping(params="methodToCall=setFilter") public org.springframework.web.servlet.ModelAndView setFilter(UifFormBase form)
Sets the action list filter in the form.
form
- - ActionListForm formresult
- - Spring form binding resultrequest
- - http requestresponse
- - http response@RequestMapping(params="methodToCall=clearHelpDeskActionListUser") public org.springframework.web.servlet.ModelAndView clearHelpDeskActionListUser(UifFormBase form)
Set the form back to display the logged in user's action list.
form
- - ActionListForm form@RequestMapping(params="methodToCall=removeOutboxItems") public org.springframework.web.servlet.ModelAndView removeOutboxItems(UifFormBase form)
Removes any outbox items that are selected.
form
- - ActionListForm form@RequestMapping(params="methodToCall=viewFilter") public org.springframework.web.servlet.ModelAndView viewFilter(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Navigate to the Action List Filter page, preserving any newly-modified primary/secondary delegation filters as necessary.
form
- - ActionListForm formresult
- - Spring form binding resultrequest
- - http requestresponse
- - http response@RequestMapping(params="methodToCall=cancelFilter") public org.springframework.web.servlet.ModelAndView cancelFilter(UifFormBase form)
When user changes the filter but presses cancel, the filter goes back to the old filter.
form
- - ActionListForm form@RequestMapping(params="methodToCall=viewPreferences") public org.springframework.web.servlet.ModelAndView viewPreferences(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Navigate to the user's Preferences page, preserving any newly-modified primary/secondary delegation filters as necessary.
form
- - ActionListForm formresult
- - Spring form binding resultrequest
- - http requestresponse
- - http responseCopyright © 2005–2014 The Kuali Foundation. All rights reserved.