public abstract class UifControllerBase extends Object
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.
Constructor and Description |
---|
UifControllerBase() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.ModelAndView |
addBlankLine(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
addFileUploadLine(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
addLine(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
back(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
cancel(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
checkForm(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
closeEditLineDialog(UifFormBase form) |
protected abstract UifFormBase |
createInitialForm()
Invoked to create a new form instance for the request before it is passed to the Binder/BeanWrapper.
|
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.
|
org.springframework.web.servlet.ModelAndView |
deleteFileUploadLine(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
deleteLine(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
editLine(UifFormBase form) |
protected CollectionControllerService |
getCollectionControllerService() |
protected ControllerService |
getControllerService() |
protected FileControllerService |
getFileControllerService() |
void |
getFileFromLine(UifFormBase form,
javax.servlet.http.HttpServletResponse response) |
protected org.springframework.web.servlet.ModelAndView |
getMessageView(UifFormBase form,
String headerText,
String messageText) |
protected org.springframework.web.servlet.ModelAndView |
getModelAndView(UifFormBase form) |
protected org.springframework.web.servlet.ModelAndView |
getModelAndView(UifFormBase form,
Map<String,Object> additionalViewAttributes) |
protected org.springframework.web.servlet.ModelAndView |
getModelAndView(UifFormBase form,
String pageId) |
protected ModelAndViewService |
getModelAndViewService() |
protected org.springframework.web.servlet.ModelAndView |
getModelAndViewWithInit(UifFormBase form,
String viewId) |
protected org.springframework.web.servlet.ModelAndView |
getModelAndViewWithInit(UifFormBase form,
String viewId,
String pageId) |
protected NavigationControllerService |
getNavigationControllerService() |
protected QueryControllerService |
getQueryControllerService() |
protected RefreshControllerService |
getRefreshControllerService() |
SaveControllerService |
getSaveControllerService() |
protected UifFormBase |
initForm()
Creates form instance the will be used for the default model.
|
org.springframework.web.servlet.ModelAndView |
navigate(UifFormBase form) |
AttributeQueryResult |
performFieldQuery(UifFormBase form) |
AttributeQueryResult |
performFieldSuggest(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
performLookup(UifFormBase form) |
protected org.springframework.web.servlet.ModelAndView |
performRedirect(UifFormBase form,
String redirectUrl) |
protected org.springframework.web.servlet.ModelAndView |
performRedirect(UifFormBase form,
String baseUrl,
Properties urlParameters) |
org.springframework.web.servlet.ModelAndView |
refresh(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
retrieveCollectionPage(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
retrieveEditLineDialog(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
returnToHub(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
returnToPrevious(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
save(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
saveField(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
saveLine(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
sessionTimeout(UifFormBase form) |
void |
setCollectionControllerService(CollectionControllerService collectionControllerService) |
void |
setControllerService(ControllerService controllerService) |
void |
setFileControllerService(FileControllerService fileControllerService) |
void |
setModelAndViewService(ModelAndViewService modelAndViewService) |
void |
setNavigationControllerService(NavigationControllerService navigationControllerService) |
void |
setQueryControllerService(QueryControllerService queryControllerService) |
void |
setRefreshControllerService(RefreshControllerService refreshControllerService) |
void |
setSaveControllerService(SaveControllerService saveControllerService) |
protected org.springframework.web.servlet.ModelAndView |
showDialog(String dialogId,
boolean confirmation,
UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
start(UifFormBase form) |
org.springframework.web.servlet.ModelAndView |
tableJsonRetrieval(UifFormBase form) |
public UifControllerBase()
@ModelAttribute(value="KualiForm") protected UifFormBase initForm()
protected abstract UifFormBase createInitialForm()
@RequestMapping public org.springframework.web.servlet.ModelAndView defaultMapping(UifFormBase form)
@RequestMapping(method=GET, params="methodToCall=start") public org.springframework.web.servlet.ModelAndView start(UifFormBase form)
@RequestMapping(params="methodToCall=sessionTimeout") public org.springframework.web.servlet.ModelAndView sessionTimeout(UifFormBase form)
@RequestMapping(params="methodToCall=cancel") public org.springframework.web.servlet.ModelAndView cancel(UifFormBase form)
@RequestMapping(params="methodToCall=back") public org.springframework.web.servlet.ModelAndView back(UifFormBase form)
@RequestMapping(params="methodToCall=returnToPrevious") public org.springframework.web.servlet.ModelAndView returnToPrevious(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=save") public org.springframework.web.servlet.ModelAndView save(UifFormBase form) throws Exception
@RequestMapping(method=POST, params="methodToCall=saveField") public org.springframework.web.servlet.ModelAndView saveField(UifFormBase form) throws Exception
@RequestMapping(params="methodToCall=returnToHub") public org.springframework.web.servlet.ModelAndView returnToHub(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=addFileUploadLine") public org.springframework.web.servlet.ModelAndView addFileUploadLine(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=deleteFileUploadLine") public org.springframework.web.servlet.ModelAndView deleteFileUploadLine(UifFormBase form)
@RequestMapping(method=GET, params="methodToCall=getFileFromLine") public void getFileFromLine(UifFormBase form, javax.servlet.http.HttpServletResponse response)
@RequestMapping(method=POST, params="methodToCall=navigate") public org.springframework.web.servlet.ModelAndView navigate(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=addLine") public org.springframework.web.servlet.ModelAndView addLine(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=addBlankLine") public org.springframework.web.servlet.ModelAndView addBlankLine(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=retrieveEditLineDialog") public org.springframework.web.servlet.ModelAndView retrieveEditLineDialog(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=editLine") public org.springframework.web.servlet.ModelAndView editLine(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=closeEditLineDialog") public org.springframework.web.servlet.ModelAndView closeEditLineDialog(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=saveLine") public org.springframework.web.servlet.ModelAndView saveLine(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=deleteLine") public org.springframework.web.servlet.ModelAndView deleteLine(UifFormBase form)
@RequestMapping(params="methodToCall=retrieveCollectionPage") public org.springframework.web.servlet.ModelAndView retrieveCollectionPage(UifFormBase form)
@RequestMapping(method=GET, params="methodToCall=tableJsonRetrieval") public org.springframework.web.servlet.ModelAndView tableJsonRetrieval(UifFormBase form)
@MethodAccessible @RequestMapping(params="methodToCall=refresh") public org.springframework.web.servlet.ModelAndView refresh(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=performLookup") public org.springframework.web.servlet.ModelAndView performLookup(UifFormBase form)
@RequestMapping(method=GET, params="methodToCall=performFieldSuggest") @ResponseBody public AttributeQueryResult performFieldSuggest(UifFormBase form)
@RequestMapping(method=GET, params="methodToCall=performFieldQuery") @ResponseBody public AttributeQueryResult performFieldQuery(UifFormBase form)
@RequestMapping(method=POST, params="methodToCall=checkForm") public org.springframework.web.servlet.ModelAndView checkForm(UifFormBase form)
protected org.springframework.web.servlet.ModelAndView showDialog(String dialogId, boolean confirmation, UifFormBase form)
protected org.springframework.web.servlet.ModelAndView performRedirect(UifFormBase form, String baseUrl, Properties urlParameters)
protected org.springframework.web.servlet.ModelAndView performRedirect(UifFormBase form, String redirectUrl)
protected org.springframework.web.servlet.ModelAndView getMessageView(UifFormBase form, String headerText, String messageText)
protected org.springframework.web.servlet.ModelAndView getModelAndView(UifFormBase form)
protected org.springframework.web.servlet.ModelAndView getModelAndView(UifFormBase form, String pageId)
protected org.springframework.web.servlet.ModelAndView getModelAndView(UifFormBase form, Map<String,Object> additionalViewAttributes)
org.kuali.rice.krad.web.service.ModelAndViewService#getModelAndView(org.kuali.rice.krad.web.form.UifFormBase,
java.util.Map)
protected org.springframework.web.servlet.ModelAndView getModelAndViewWithInit(UifFormBase form, String viewId)
protected org.springframework.web.servlet.ModelAndView getModelAndViewWithInit(UifFormBase form, String viewId, String pageId)
protected ControllerService getControllerService()
public void setControllerService(ControllerService controllerService)
protected NavigationControllerService getNavigationControllerService()
public void setNavigationControllerService(NavigationControllerService navigationControllerService)
protected CollectionControllerService getCollectionControllerService()
public void setCollectionControllerService(CollectionControllerService collectionControllerService)
protected RefreshControllerService getRefreshControllerService()
public void setRefreshControllerService(RefreshControllerService refreshControllerService)
public SaveControllerService getSaveControllerService()
public void setSaveControllerService(SaveControllerService saveControllerService)
protected QueryControllerService getQueryControllerService()
public void setQueryControllerService(QueryControllerService queryControllerService)
protected FileControllerService getFileControllerService()
public void setFileControllerService(FileControllerService fileControllerService)
protected ModelAndViewService getModelAndViewService()
public void setModelAndViewService(ModelAndViewService modelAndViewService)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.