Class UifClientListener
java.lang.Object
org.kuali.rice.krad.web.controller.UifControllerBase
org.kuali.rice.krad.web.controller.UifClientListener
Controller that receives various ajax requests from the client to manager server side state
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearForm(String formKeyToClear, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked from the client when the user is leaving a view (by the portal tabs or other mechanism) to clear the form from session storageprotected UifFormBaseInvoked to create a new form instance for the request before it is passed to the Binder/BeanWrapper.keepSessionAlive(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked from the session timeout warning dialog to keep a session alive on behalf of a userorg.springframework.web.servlet.ModelAndViewlogout(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked from the session timeout warning dialog to log the user out, forwards to logout message viewretrieveMessage(String key, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked from the client to retrieve text for a messageMethods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
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, refresh, retrieveCollectionPage, retrieveEditLineDialog, returnToHub, returnToPrevious, save, saveField, saveLine, sessionTimeout, setCollectionControllerService, setControllerService, setFileControllerService, setModelAndViewService, setNavigationControllerService, setQueryControllerService, setRefreshControllerService, setSaveControllerService, showDialog, start, tableJsonRetrieval
-
Constructor Details
-
UifClientListener
public UifClientListener()
-
-
Method Details
-
createInitialForm
Invoked to create a new form instance for the request before it is passed to the Binder/BeanWrapper.- Specified by:
createInitialFormin classUifControllerBase- Returns:
- UifFormBase instance that will be used for data binding and backing the view.
-
clearForm
@MethodAccessible @RequestMapping(params="methodToCall=clearForm") @ResponseBody public String clearForm(@RequestParam("formKeyToClear") String formKeyToClear, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked from the client when the user is leaving a view (by the portal tabs or other mechanism) to clear the form from session storage- Parameters:
formKeyToClear- key of form that should be cleared- Returns:
- String json success string
-
retrieveMessage
@MethodAccessible @RequestMapping(params="methodToCall=retrieveMessage") @ResponseBody public String retrieveMessage(@RequestParam("key") String key, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked from the client to retrieve text for a message- Parameters:
key- - key for the message- Returns:
- String response in JSON format containing the message text
-
keepSessionAlive
@MethodAccessible @RequestMapping(params="methodToCall=keepSessionAlive") @ResponseBody public String keepSessionAlive(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked from the session timeout warning dialog to keep a session alive on behalf of a user- Returns:
- String json success string
-
logout
@MethodAccessible @RequestMapping(params="methodToCall=logout") public org.springframework.web.servlet.ModelAndView logout(@ModelAttribute("KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked from the session timeout warning dialog to log the user out, forwards to logout message view
-