Class UifControllerBase
java.lang.Object
org.kuali.rice.krad.web.controller.UifControllerBase
- Direct Known Subclasses:
DocumentControllerBase,DummyLoginController,IncidentReportController,InitiatedDocumentInfoController,InquiryController,LookupController,MockViewController,ModuleLockedController,SessionTimeoutController,UifClientListener,UifExportController
Base controller class for views within the KRAD User Interface Framework.
Provides common methods such as navigation, collection handling, queries, and refresh calls.
All subclass controller methods after processing should call one of the #getModelAndView methods to
setup the View and return the ModelAndView
instance.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewaddBlankLine(UifFormBase form) org.springframework.web.servlet.ModelAndViewaddFileUploadLine(UifFormBase form) org.springframework.web.servlet.ModelAndViewaddLine(UifFormBase form) org.springframework.web.servlet.ModelAndViewback(UifFormBase form) org.springframework.web.servlet.ModelAndViewcancel(UifFormBase form) org.springframework.web.servlet.ModelAndViewcheckForm(UifFormBase form) org.springframework.web.servlet.ModelAndViewprotected abstract UifFormBaseInvoked to create a new form instance for the request before it is passed to the Binder/BeanWrapper.org.springframework.web.servlet.ModelAndViewdefaultMapping(UifFormBase form) Default method mapping for cases where the method to call is not passed, calls the start method.org.springframework.web.servlet.ModelAndVieworg.springframework.web.servlet.ModelAndViewdeleteLine(UifFormBase form) org.springframework.web.servlet.ModelAndVieweditLine(UifFormBase form) protected CollectionControllerServiceprotected ControllerServiceprotected FileControllerServicevoidgetFileFromLine(UifFormBase form, javax.servlet.http.HttpServletResponse response) protected org.springframework.web.servlet.ModelAndViewgetMessageView(UifFormBase form, String headerText, String messageText) protected org.springframework.web.servlet.ModelAndViewgetModelAndView(UifFormBase form) protected org.springframework.web.servlet.ModelAndViewgetModelAndView(UifFormBase form, String pageId) protected org.springframework.web.servlet.ModelAndViewgetModelAndView(UifFormBase form, Map<String, Object> additionalViewAttributes) protected ModelAndViewServiceprotected org.springframework.web.servlet.ModelAndViewgetModelAndViewWithInit(UifFormBase form, String viewId) protected org.springframework.web.servlet.ModelAndViewgetModelAndViewWithInit(UifFormBase form, String viewId, String pageId) protected NavigationControllerServiceprotected QueryControllerServiceprotected RefreshControllerServiceprotected UifFormBaseinitForm()Creates form instance the will be used for the default model.org.springframework.web.servlet.ModelAndViewnavigate(UifFormBase form) performFieldQuery(UifFormBase form) org.springframework.web.servlet.ModelAndViewperformLookup(UifFormBase form) protected org.springframework.web.servlet.ModelAndViewperformRedirect(UifFormBase form, String redirectUrl) protected org.springframework.web.servlet.ModelAndViewperformRedirect(UifFormBase form, String baseUrl, Properties urlParameters) org.springframework.web.servlet.ModelAndViewrefresh(UifFormBase form) org.springframework.web.servlet.ModelAndVieworg.springframework.web.servlet.ModelAndVieworg.springframework.web.servlet.ModelAndViewreturnToHub(UifFormBase form) org.springframework.web.servlet.ModelAndViewreturnToPrevious(UifFormBase form) org.springframework.web.servlet.ModelAndViewsave(UifFormBase form) org.springframework.web.servlet.ModelAndViewsaveField(UifFormBase form) org.springframework.web.servlet.ModelAndViewsaveLine(UifFormBase form) org.springframework.web.servlet.ModelAndViewsessionTimeout(UifFormBase form) voidsetCollectionControllerService(CollectionControllerService collectionControllerService) voidsetControllerService(ControllerService controllerService) voidsetFileControllerService(FileControllerService fileControllerService) voidsetModelAndViewService(ModelAndViewService modelAndViewService) voidsetNavigationControllerService(NavigationControllerService navigationControllerService) voidsetQueryControllerService(QueryControllerService queryControllerService) voidsetRefreshControllerService(RefreshControllerService refreshControllerService) voidsetSaveControllerService(SaveControllerService saveControllerService) protected org.springframework.web.servlet.ModelAndViewshowDialog(String dialogId, boolean confirmation, UifFormBase form) org.springframework.web.servlet.ModelAndViewstart(UifFormBase form) org.springframework.web.servlet.ModelAndView
-
Constructor Details
-
UifControllerBase
public UifControllerBase()
-
-
Method Details
-
initForm
Creates form instance the will be used for the default model.- Returns:
- UifFormBase form instance for holding model data
-
createInitialForm
Invoked to create a new form instance for the request before it is passed to the Binder/BeanWrapper.- Returns:
- UifFormBase instance that will be used for data binding and backing the view.
-
defaultMapping
@RequestMapping public org.springframework.web.servlet.ModelAndView defaultMapping(UifFormBase form) Default method mapping for cases where the method to call is not passed, calls the start method. -
start
@RequestMapping(method=GET, params="methodToCall=start") public org.springframework.web.servlet.ModelAndView start(UifFormBase form) - See Also:
-
sessionTimeout
@RequestMapping(params="methodToCall=sessionTimeout") public org.springframework.web.servlet.ModelAndView sessionTimeout(UifFormBase form) - See Also:
-
cancel
@RequestMapping(params="methodToCall=cancel") public org.springframework.web.servlet.ModelAndView cancel(UifFormBase form) - See Also:
-
back
@RequestMapping(params="methodToCall=back") public org.springframework.web.servlet.ModelAndView back(UifFormBase form) - See Also:
-
returnToPrevious
@RequestMapping(params="methodToCall=returnToPrevious") public org.springframework.web.servlet.ModelAndView returnToPrevious(UifFormBase form) - See Also:
-
save
@RequestMapping(method=POST, params="methodToCall=save") public org.springframework.web.servlet.ModelAndView save(UifFormBase form) throws Exception - Throws:
Exception- See Also:
-
saveField
@RequestMapping(method=POST, params="methodToCall=saveField") public org.springframework.web.servlet.ModelAndView saveField(UifFormBase form) throws Exception - Throws:
Exception- See Also:
-
returnToHub
@RequestMapping(params="methodToCall=returnToHub") public org.springframework.web.servlet.ModelAndView returnToHub(UifFormBase form) - See Also:
-
addFileUploadLine
@RequestMapping(method=POST, params="methodToCall=addFileUploadLine") public org.springframework.web.servlet.ModelAndView addFileUploadLine(UifFormBase form) - See Also:
-
deleteFileUploadLine
@RequestMapping(method=POST, params="methodToCall=deleteFileUploadLine") public org.springframework.web.servlet.ModelAndView deleteFileUploadLine(UifFormBase form) - See Also:
-
getFileFromLine
@RequestMapping(method=GET, params="methodToCall=getFileFromLine") public void getFileFromLine(UifFormBase form, javax.servlet.http.HttpServletResponse response) - See Also:
-
addLine
@RequestMapping(method=POST, params="methodToCall=addLine") public org.springframework.web.servlet.ModelAndView addLine(UifFormBase form) - See Also:
-
addBlankLine
@RequestMapping(method=POST, params="methodToCall=addBlankLine") public org.springframework.web.servlet.ModelAndView addBlankLine(UifFormBase form) - See Also:
-
retrieveEditLineDialog
@RequestMapping(method=POST, params="methodToCall=retrieveEditLineDialog") public org.springframework.web.servlet.ModelAndView retrieveEditLineDialog(UifFormBase form) - See Also:
-
editLine
@RequestMapping(method=POST, params="methodToCall=editLine") public org.springframework.web.servlet.ModelAndView editLine(UifFormBase form) - See Also:
-
closeEditLineDialog
@RequestMapping(method=POST, params="methodToCall=closeEditLineDialog") public org.springframework.web.servlet.ModelAndView closeEditLineDialog(UifFormBase form) - See Also:
-
saveLine
@RequestMapping(method=POST, params="methodToCall=saveLine") public org.springframework.web.servlet.ModelAndView saveLine(UifFormBase form) - See Also:
-
deleteLine
@RequestMapping(method=POST, params="methodToCall=deleteLine") public org.springframework.web.servlet.ModelAndView deleteLine(UifFormBase form) - See Also:
-
retrieveCollectionPage
@RequestMapping(params="methodToCall=retrieveCollectionPage") public org.springframework.web.servlet.ModelAndView retrieveCollectionPage(UifFormBase form) - See Also:
-
tableJsonRetrieval
@RequestMapping(method=GET, params="methodToCall=tableJsonRetrieval") public org.springframework.web.servlet.ModelAndView tableJsonRetrieval(UifFormBase form) - See Also:
-
refresh
@MethodAccessible @RequestMapping(params="methodToCall=refresh") public org.springframework.web.servlet.ModelAndView refresh(UifFormBase form) - See Also:
-
performLookup
@RequestMapping(method=POST, params="methodToCall=performLookup") public org.springframework.web.servlet.ModelAndView performLookup(UifFormBase form) - See Also:
-
performFieldSuggest
@RequestMapping(method=GET, params="methodToCall=performFieldSuggest") @ResponseBody public AttributeQueryResult performFieldSuggest(UifFormBase form) - See Also:
-
performFieldQuery
@RequestMapping(method=GET, params="methodToCall=performFieldQuery") @ResponseBody public AttributeQueryResult performFieldQuery(UifFormBase form) - See Also:
-
checkForm
@RequestMapping(method=POST, params="methodToCall=checkForm") public org.springframework.web.servlet.ModelAndView checkForm(UifFormBase form) - See Also:
-
showDialog
protected org.springframework.web.servlet.ModelAndView showDialog(String dialogId, boolean confirmation, UifFormBase form) - See Also:
-
performRedirect
protected org.springframework.web.servlet.ModelAndView performRedirect(UifFormBase form, String baseUrl, Properties urlParameters) - See Also:
-
performRedirect
protected org.springframework.web.servlet.ModelAndView performRedirect(UifFormBase form, String redirectUrl) - See Also:
-
getMessageView
protected org.springframework.web.servlet.ModelAndView getMessageView(UifFormBase form, String headerText, String messageText) - See Also:
-
getModelAndView
- See Also:
-
getModelAndView
protected org.springframework.web.servlet.ModelAndView getModelAndView(UifFormBase form, String pageId) - See Also:
-
getModelAndView
protected org.springframework.web.servlet.ModelAndView getModelAndView(UifFormBase form, Map<String, Object> additionalViewAttributes) - See Also:
-
getModelAndViewWithInit
protected org.springframework.web.servlet.ModelAndView getModelAndViewWithInit(UifFormBase form, String viewId) - See Also:
-
getModelAndViewWithInit
protected org.springframework.web.servlet.ModelAndView getModelAndViewWithInit(UifFormBase form, String viewId, String pageId) - See Also:
-
getControllerService
-
setControllerService
-
getCollectionControllerService
-
setCollectionControllerService
-
getRefreshControllerService
-
setRefreshControllerService
-
getSaveControllerService
-
setSaveControllerService
-
getQueryControllerService
-
setQueryControllerService
-
getFileControllerService
-
setFileControllerService
-
getModelAndViewService
-
setModelAndViewService
-