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) -
sessionTimeout
@RequestMapping(params="methodToCall=sessionTimeout") public org.springframework.web.servlet.ModelAndView sessionTimeout(UifFormBase form) -
cancel
@RequestMapping(params="methodToCall=cancel") public org.springframework.web.servlet.ModelAndView cancel(UifFormBase form) -
back
@RequestMapping(params="methodToCall=back") public org.springframework.web.servlet.ModelAndView back(UifFormBase form) -
returnToPrevious
@RequestMapping(params="methodToCall=returnToPrevious") public org.springframework.web.servlet.ModelAndView returnToPrevious(UifFormBase form) -
save
@RequestMapping(method=POST, params="methodToCall=save") public org.springframework.web.servlet.ModelAndView save(UifFormBase form) throws Exception -
saveField
@RequestMapping(method=POST, params="methodToCall=saveField") public org.springframework.web.servlet.ModelAndView saveField(UifFormBase form) throws Exception -
returnToHub
@RequestMapping(params="methodToCall=returnToHub") public org.springframework.web.servlet.ModelAndView returnToHub(UifFormBase form) -
addFileUploadLine
@RequestMapping(method=POST, params="methodToCall=addFileUploadLine") public org.springframework.web.servlet.ModelAndView addFileUploadLine(UifFormBase form) -
deleteFileUploadLine
@RequestMapping(method=POST, params="methodToCall=deleteFileUploadLine") public org.springframework.web.servlet.ModelAndView deleteFileUploadLine(UifFormBase form) -
getFileFromLine
@RequestMapping(method=GET, params="methodToCall=getFileFromLine") public void getFileFromLine(UifFormBase form, javax.servlet.http.HttpServletResponse response) -
addLine
@RequestMapping(method=POST, params="methodToCall=addLine") public org.springframework.web.servlet.ModelAndView addLine(UifFormBase form) -
addBlankLine
@RequestMapping(method=POST, params="methodToCall=addBlankLine") public org.springframework.web.servlet.ModelAndView addBlankLine(UifFormBase form) -
retrieveEditLineDialog
@RequestMapping(method=POST, params="methodToCall=retrieveEditLineDialog") public org.springframework.web.servlet.ModelAndView retrieveEditLineDialog(UifFormBase form) -
editLine
@RequestMapping(method=POST, params="methodToCall=editLine") public org.springframework.web.servlet.ModelAndView editLine(UifFormBase form) -
closeEditLineDialog
@RequestMapping(method=POST, params="methodToCall=closeEditLineDialog") public org.springframework.web.servlet.ModelAndView closeEditLineDialog(UifFormBase form) -
saveLine
@RequestMapping(method=POST, params="methodToCall=saveLine") public org.springframework.web.servlet.ModelAndView saveLine(UifFormBase form) -
deleteLine
@RequestMapping(method=POST, params="methodToCall=deleteLine") public org.springframework.web.servlet.ModelAndView deleteLine(UifFormBase form) -
retrieveCollectionPage
@RequestMapping(params="methodToCall=retrieveCollectionPage") public org.springframework.web.servlet.ModelAndView retrieveCollectionPage(UifFormBase form) -
tableJsonRetrieval
@RequestMapping(method=GET, params="methodToCall=tableJsonRetrieval") public org.springframework.web.servlet.ModelAndView tableJsonRetrieval(UifFormBase form) -
refresh
@MethodAccessible @RequestMapping(params="methodToCall=refresh") public org.springframework.web.servlet.ModelAndView refresh(UifFormBase form) -
performLookup
@RequestMapping(method=POST, params="methodToCall=performLookup") public org.springframework.web.servlet.ModelAndView performLookup(UifFormBase form) -
performFieldSuggest
@RequestMapping(method=GET, params="methodToCall=performFieldSuggest") @ResponseBody public AttributeQueryResult performFieldSuggest(UifFormBase form) -
performFieldQuery
@RequestMapping(method=GET, params="methodToCall=performFieldQuery") @ResponseBody public AttributeQueryResult performFieldQuery(UifFormBase form) -
checkForm
@RequestMapping(method=POST, params="methodToCall=checkForm") public org.springframework.web.servlet.ModelAndView checkForm(UifFormBase form) -
showDialog
protected org.springframework.web.servlet.ModelAndView showDialog(String dialogId, boolean confirmation, UifFormBase form) -
performRedirect
protected org.springframework.web.servlet.ModelAndView performRedirect(UifFormBase form, String baseUrl, Properties urlParameters) -
performRedirect
protected org.springframework.web.servlet.ModelAndView performRedirect(UifFormBase form, String redirectUrl) -
getMessageView
protected org.springframework.web.servlet.ModelAndView getMessageView(UifFormBase form, String headerText, String messageText) -
getModelAndView
-
getModelAndView
protected org.springframework.web.servlet.ModelAndView getModelAndView(UifFormBase form, String pageId) -
getModelAndView
protected org.springframework.web.servlet.ModelAndView getModelAndView(UifFormBase form, Map<String, Object> additionalViewAttributes) -
getModelAndViewWithInit
protected org.springframework.web.servlet.ModelAndView getModelAndViewWithInit(UifFormBase form, String viewId) -
getModelAndViewWithInit
protected org.springframework.web.servlet.ModelAndView getModelAndViewWithInit(UifFormBase form, String viewId, String pageId) -
getControllerService
-
setControllerService
-
getCollectionControllerService
-
setCollectionControllerService
-
getRefreshControllerService
-
setRefreshControllerService
-
getSaveControllerService
-
setSaveControllerService
-
getQueryControllerService
-
setQueryControllerService
-
getFileControllerService
-
setFileControllerService
-
getModelAndViewService
-
setModelAndViewService
-