|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.web.controller.UifControllerBase org.kuali.rice.krad.web.controller.DocumentControllerBase org.kuali.rice.krad.web.controller.MaintenanceDocumentController
@Controller @RequestMapping(value="/maintenance") public class MaintenanceDocumentController
Controller for MaintenanceDocumentView
screens which operate on
MaintenanceDocument
instances
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
LOG
|
Fields inherited from class org.kuali.rice.krad.web.controller.DocumentControllerBase |
---|
DOCUMENT_LOAD_COMMANDS |
Constructor Summary | |
---|---|
MaintenanceDocumentController()
|
Method Summary | |
---|---|
protected MaintenanceDocumentForm |
createInitialForm(javax.servlet.http.HttpServletRequest request)
Called to create a new model(form) object when necessary. |
org.springframework.web.servlet.ModelAndView |
docHandler(DocumentFormBase formBase,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
After the document is loaded calls method to setup the maintenance object |
protected MaintenanceDocumentService |
getMaintenanceDocumentService()
|
org.springframework.web.servlet.ModelAndView |
maintenanceCopy(MaintenanceDocumentForm form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setups a new MaintenanceDocumentView with the copy maintenance
action |
org.springframework.web.servlet.ModelAndView |
maintenanceEdit(MaintenanceDocumentForm form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setups a new MaintenanceDocumentView with the edit maintenance
action |
org.springframework.web.servlet.ModelAndView |
maintenanceNewWithExisting(MaintenanceDocumentForm form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setups a new MaintenanceDocumentView with the new with existing
maintenance action |
org.springframework.web.servlet.ModelAndView |
route(DocumentFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override route to retrieve the maintenance object if it is an attachment |
protected void |
setupMaintenance(MaintenanceDocumentForm form,
javax.servlet.http.HttpServletRequest request,
String maintenanceAction)
Sets up the MaintenanceDocument on initial get request |
org.springframework.web.servlet.ModelAndView |
start(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Default method for controller that setups a new MaintenanceDocumentView with the default new action |
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase |
---|
addBlankLine, addLine, checkForm, checkViewAuthorization, close, deleteLine, getBooleanDialogResponse, getStringDialogResponse, getUIFModelAndView, getUIFModelAndView, getViewResolver, getViewService, hasDialogBeenAnswered, hasDialogBeenDisplayed, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, renderView, returnFromLightbox, returnToHistory, returnToHub, returnToPrevious, saveLine, setViewResolver, showDialog, toggleInactiveRecordDisplay |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public MaintenanceDocumentController()
Method Detail |
---|
protected MaintenanceDocumentForm createInitialForm(javax.servlet.http.HttpServletRequest request)
UifControllerBase
createInitialForm
in class DocumentControllerBase
request
- - the http request that was madeUifControllerBase.createInitialForm(javax.servlet.http.HttpServletRequest)
@RequestMapping(params="methodToCall=docHandler") public org.springframework.web.servlet.ModelAndView docHandler(@ModelAttribute(value="KualiForm") DocumentFormBase formBase, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
docHandler
in class DocumentControllerBase
Exception
@RequestMapping(params="methodToCall=start") public org.springframework.web.servlet.ModelAndView start(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
MaintenanceDocumentView
with the default new action
start
in class UifControllerBase
@RequestMapping(params="methodToCall=maintenanceEdit") public org.springframework.web.servlet.ModelAndView maintenanceEdit(@ModelAttribute(value="KualiForm") MaintenanceDocumentForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
MaintenanceDocumentView
with the edit maintenance
action
Exception
@RequestMapping(params="methodToCall=maintenanceCopy") public org.springframework.web.servlet.ModelAndView maintenanceCopy(@ModelAttribute(value="KualiForm") MaintenanceDocumentForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
MaintenanceDocumentView
with the copy maintenance
action
Exception
@RequestMapping(params="methodToCall=maintenanceNewWithExisting") public org.springframework.web.servlet.ModelAndView maintenanceNewWithExisting(@ModelAttribute(value="KualiForm") MaintenanceDocumentForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
MaintenanceDocumentView
with the new with existing
maintenance action
Exception
protected void setupMaintenance(MaintenanceDocumentForm form, javax.servlet.http.HttpServletRequest request, String maintenanceAction)
MaintenanceDocument
on initial get request
First step is to create a new document instance based on the query
parameters (document type name or object class name). Then call the
Maintainable
to do setup on the object being maintained.
form
- - MaintenanceDocumentForm
instancerequest
- - HTTP request objectmaintenanceAction
- - the maintenance action (new, new from existing, edit, copy)
being request
Exception
@RequestMapping(params="methodToCall=route") public org.springframework.web.servlet.ModelAndView route(@ModelAttribute(value="KualiForm") DocumentFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
route
in class DocumentControllerBase
form
- - document form base containing the document instance that will be routed
(DocumentFormBase, HttpServletRequest, HttpServletResponse)
protected MaintenanceDocumentService getMaintenanceDocumentService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |