org.kuali.rice.krad.demo.uif.controller
Class KradSampleAppController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.rice.krad.demo.uif.controller.KradSampleAppController

@Controller
@RequestMapping(value="/kradsampleapp")
public class KradSampleAppController
extends UifControllerBase

Basic controller for the KRAD sample application

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
KradSampleAppController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView addGrowl(UifFormBase uiTestForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView addStandardSectionsErrors(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds errors to fields defined in the validationMessageFields array
 org.springframework.web.servlet.ModelAndView changeTheme(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  KradSampleAppForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          Called to create a new model(form) object when necessary.
 org.springframework.web.servlet.ModelAndView customRefresh(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView makeReadOnly(UifFormBase uifForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Changes the view to readOnly and returns.
 org.springframework.web.servlet.ModelAndView refreshProgGroup(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Refreshes the group
 org.springframework.web.servlet.ModelAndView refreshWithServerMessages(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Refresh and set server messages
 org.springframework.web.servlet.ModelAndView start(UifFormBase form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initial method called when requesting a new view instance which checks authorization and forwards the view for rendering
 org.springframework.web.servlet.ModelAndView validateView(UifFormBase uiTestForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addBlankLine, addLine, back, cancel, checkForm, checkViewAuthorization, defaultMapping, deleteLine, getBooleanDialogResponse, getMessageView, getStringDialogResponse, getUIFModelAndView, getUIFModelAndView, getUIFModelAndView, getUIFModelAndViewWithInit, getViewService, hasDialogBeenAnswered, hasDialogBeenDisplayed, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, performRedirect, refresh, resetDialogStatus, retrieveCollectionPage, returnFromLightbox, returnToHistory, returnToHub, returnToPrevious, saveLine, sessionTimeout, showDialog, tableJsonRetrieval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KradSampleAppController

public KradSampleAppController()
Method Detail

createInitialForm

protected KradSampleAppForm createInitialForm(javax.servlet.http.HttpServletRequest request)
Description copied from class: UifControllerBase
Called to create a new model(form) object when necessary. This usually occurs on the initial request in a conversation (when the model is not present in the session). This method must be overridden when extending a controller and using a different form type than the superclass.

Specified by:
createInitialForm in class UifControllerBase
Parameters:
request - - the http request that was made

start

@MethodAccessible
@RequestMapping(params="methodToCall=start")
public org.springframework.web.servlet.ModelAndView start(@ModelAttribute(value="KualiForm")
                                                                                          UifFormBase form,
                                                                                          javax.servlet.http.HttpServletRequest request,
                                                                                          javax.servlet.http.HttpServletResponse response)
Description copied from class: UifControllerBase
Initial method called when requesting a new view instance which checks authorization and forwards the view for rendering

Overrides:
start in class UifControllerBase

changeTheme

@RequestMapping(method=GET,
                params="methodToCall=changeTheme")
public org.springframework.web.servlet.ModelAndView changeTheme(@ModelAttribute(value="KualiForm")
                                                                               UifFormBase form,
                                                                               org.springframework.validation.BindingResult result,
                                                                               javax.servlet.http.HttpServletRequest request,
                                                                               javax.servlet.http.HttpServletResponse response)

validateView

@RequestMapping(method=POST,
                params="methodToCall=validateView")
public org.springframework.web.servlet.ModelAndView validateView(@ModelAttribute(value="KualiForm")
                                                                                UifFormBase uiTestForm,
                                                                                org.springframework.validation.BindingResult result,
                                                                                javax.servlet.http.HttpServletRequest request,
                                                                                javax.servlet.http.HttpServletResponse response)

addGrowl

@MethodAccessible
@RequestMapping(method=POST,
                params="methodToCall=addGrowl")
public org.springframework.web.servlet.ModelAndView addGrowl(@ModelAttribute(value="KualiForm")
                                                                                             UifFormBase uiTestForm,
                                                                                             org.springframework.validation.BindingResult result,
                                                                                             javax.servlet.http.HttpServletRequest request,
                                                                                             javax.servlet.http.HttpServletResponse response)

makeReadOnly

@RequestMapping(method=POST,
                params="methodToCall=makeReadOnly")
public org.springframework.web.servlet.ModelAndView makeReadOnly(@ModelAttribute(value="KualiForm")
                                                                                UifFormBase uifForm,
                                                                                org.springframework.validation.BindingResult result,
                                                                                javax.servlet.http.HttpServletRequest request,
                                                                                javax.servlet.http.HttpServletResponse response)
Changes the view to readOnly and returns.

Parameters:
uifForm -
result -
request -
response -
Returns:
readOnly View

addStandardSectionsErrors

@RequestMapping(method=POST,
                params="methodToCall=addStandardSectionsErrors")
public org.springframework.web.servlet.ModelAndView addStandardSectionsErrors(@ModelAttribute(value="KualiForm")
                                                                                             UifFormBase form,
                                                                                             org.springframework.validation.BindingResult result,
                                                                                             javax.servlet.http.HttpServletRequest request,
                                                                                             javax.servlet.http.HttpServletResponse response)
Adds errors to fields defined in the validationMessageFields array


refreshProgGroup

@RequestMapping(method=POST,
                params="methodToCall=refreshProgGroup")
public org.springframework.web.servlet.ModelAndView refreshProgGroup(@ModelAttribute(value="KualiForm")
                                                                                    UifFormBase form,
                                                                                    org.springframework.validation.BindingResult result,
                                                                                    javax.servlet.http.HttpServletRequest request,
                                                                                    javax.servlet.http.HttpServletResponse response)
Refreshes the group

Parameters:
form -
result -
request -
response -
Returns:

refreshWithServerMessages

@RequestMapping(method=POST,
                params="methodToCall=refreshWithServerMessages")
public org.springframework.web.servlet.ModelAndView refreshWithServerMessages(@ModelAttribute(value="KualiForm")
                                                                                             UifFormBase form,
                                                                                             org.springframework.validation.BindingResult result,
                                                                                             javax.servlet.http.HttpServletRequest request,
                                                                                             javax.servlet.http.HttpServletResponse response)
Refresh and set server messages

Parameters:
form -
result -
request -
response -
Returns:

customRefresh

@RequestMapping(method=POST,
                params="methodToCall=customRefresh")
public org.springframework.web.servlet.ModelAndView customRefresh(@ModelAttribute(value="KualiForm")
                                                                                 UifFormBase form,
                                                                                 org.springframework.validation.BindingResult result,
                                                                                 javax.servlet.http.HttpServletRequest request,
                                                                                 javax.servlet.http.HttpServletResponse response)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.