@Controller @RequestMapping(value="/maintenance") public class MaintenanceDocumentController extends DocumentControllerBase
MaintenanceView
screens which operate on
MaintenanceDocument
instancesModifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
DOCUMENT_LOAD_COMMANDS
REDIRECT_PREFIX
Constructor and Description |
---|
MaintenanceDocumentController() |
Modifier and Type | Method and Description |
---|---|
protected MaintenanceForm |
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(MaintenanceForm form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setups a new
MaintenanceView with the copy maintenance
action |
org.springframework.web.servlet.ModelAndView |
maintenanceEdit(MaintenanceForm form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setups a new
MaintenanceView with the edit maintenance
action |
org.springframework.web.servlet.ModelAndView |
maintenanceNewWithExisting(MaintenanceForm form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setups a new
MaintenanceView 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(MaintenanceForm 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
MaintenanceView with the default new action |
acknowledge, approve, blanketApprove, buildAuthorizationException, cancel, cancelAttachment, checkAndWarnAboutSensitiveData, combineAdHocRecipients, complete, createDocument, deleteNote, disapprove, downloadAttachment, fyi, getAttachmentService, getBusinessObjectService, getConfigurationService, getDataDictionaryService, getDocumentDictionaryService, getDocumentService, getNoteService, insertNote, loadDocument, performWorkflowAction, reload, save, setBusinessObjectService, setDataDictionaryService, setDocumentDictionaryService, setDocumentService, supervisorFunctions
addLine, checkViewAuthorization, close, deleteLine, getUIFModelAndView, getUIFModelAndView, getViewService, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, returnToHistory, returnToHub, returnToPrevious, toggleInactiveRecordDisplay, updateComponent
protected static final org.apache.log4j.Logger LOG
public MaintenanceDocumentController()
protected MaintenanceForm 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)
MaintenanceView
with the default new actionstart
in class UifControllerBase
@RequestMapping(params="methodToCall=maintenanceEdit") public org.springframework.web.servlet.ModelAndView maintenanceEdit(@ModelAttribute(value="KualiForm") MaintenanceForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
MaintenanceView
with the edit maintenance
actionException
@RequestMapping(params="methodToCall=maintenanceCopy") public org.springframework.web.servlet.ModelAndView maintenanceCopy(@ModelAttribute(value="KualiForm") MaintenanceForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
MaintenanceView
with the copy maintenance
actionException
@RequestMapping(params="methodToCall=maintenanceNewWithExisting") public org.springframework.web.servlet.ModelAndView maintenanceNewWithExisting(@ModelAttribute(value="KualiForm") MaintenanceForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
MaintenanceView
with the new with existing
maintenance actionException
protected void setupMaintenance(MaintenanceForm 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
- - MaintenanceForm
instancerequest
- - HTTP request objectmaintenanceAction
- - the maintenance action (new, new from existing, edit, copy)
being requestException
@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()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.