Package org.kuali.rice.krad.maintenance
Class MaintenanceDocumentControllerServiceImpl
java.lang.Object
org.kuali.rice.krad.web.service.impl.ControllerServiceImpl
org.kuali.rice.krad.document.DocumentControllerServiceImpl
org.kuali.rice.krad.maintenance.MaintenanceDocumentControllerServiceImpl
- All Implemented Interfaces:
DocumentControllerService,MaintenanceDocumentControllerService,ControllerService
public class MaintenanceDocumentControllerServiceImpl
extends DocumentControllerServiceImpl
implements MaintenanceDocumentControllerService
Default implementation of the maintenance document controller service.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from class org.kuali.rice.krad.document.DocumentControllerServiceImpl
DOCUMENT_LOAD_COMMANDS, EXPLANATION_DIALOG, SENSITIVE_DATA_DIALOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates a new document of the type specified by the docTypeName property of the given form.protected voidcreateMaintenanceDocument(MaintenanceDocumentForm form, String maintenanceAction) Helper method to create a new maintenance document instance and set the instance on the given form.voiddownloadDataObjectAttachment(MaintenanceDocumentForm form, javax.servlet.http.HttpServletResponse response) When the maintenance data object is aPersistableAttachmentorPersistableAttachmentList, streams the selected attachment back to the response.protected MaintenanceDocumentServiceprotected voidloadDocument(DocumentFormBase form) Loads the document by its provided document header id on the given form.voidsetMaintenanceDocumentService(MaintenanceDocumentService maintenanceDocumentService) org.springframework.web.servlet.ModelAndViewSets up a new maintenance document for a copy action on the data object identified by the form parameters.org.springframework.web.servlet.ModelAndViewSets up a new maintenance document for a delete action on the data object identified by the form parameters.voidsetupMaintenanceDocument(MaintenanceDocumentForm form, String maintenanceAction) Invoked to setup a new maintenance document for the maintenance data contained on the form and the given maintenance action.org.springframework.web.servlet.ModelAndViewSets up a new maintenance document for an edit action on the data object identified by the form parameters.org.springframework.web.servlet.ModelAndViewSets up a new maintenance document for a new with existing action on the data object identified by the form parameters.org.springframework.web.servlet.ModelAndViewstart(UifFormBase form) Initial method called when requesting a new view instance.Methods inherited from class org.kuali.rice.krad.document.DocumentControllerServiceImpl
acknowledge, approve, blanketApprove, buildAuthorizationException, cancel, cancelAttachment, checkSensitiveDataAndWarningDialog, close, combineAdHocRecipients, complete, deleteNote, disapprove, docHandler, downloadAttachment, fyi, generateDisapprovalNote, getAddLineNoteInstance, getAttachmentService, getCollectionControllerService, getConfigurationService, getDataDictionaryService, getDocumentDictionaryService, getDocumentService, getLegacyDataAdapter, getModelAndViewService, getNavigationControllerService, getNewNoteAttachment, getNoteService, getParameterService, getWorkflowDocumentActionsService, insertNote, performSuperUserWorkflowAction, performSuperUserWorkflowAction, performWorkflowAction, performWorkflowAction, recall, reload, route, save, save, saveNewNote, sendAdHocRequests, setAttachmentService, setCollectionControllerService, setConfigurationService, setDataDictionaryService, setDocumentDictionaryService, setDocumentService, setLegacyDataAdapter, setModelAndViewService, setNavigationControllerService, setNewNoteProperties, setNoteService, setParameterService, superUserApprove, superUserDisapprove, superUserTakeActions, supervisorFunctionsMethods inherited from class org.kuali.rice.krad.web.service.impl.ControllerServiceImpl
checkViewAuthorization, sessionTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.web.service.ControllerService
cancel, checkViewAuthorization, sessionTimeoutMethods inherited from interface org.kuali.rice.krad.document.DocumentControllerService
acknowledge, approve, blanketApprove, cancelAttachment, close, complete, deleteNote, disapprove, docHandler, downloadAttachment, fyi, insertNote, performSuperUserWorkflowAction, performSuperUserWorkflowAction, performWorkflowAction, performWorkflowAction, recall, reload, route, save, save, sendAdHocRequests, superUserApprove, superUserDisapprove, superUserTakeActions, supervisorFunctions
-
Constructor Details
-
MaintenanceDocumentControllerServiceImpl
public MaintenanceDocumentControllerServiceImpl()
-
-
Method Details
-
start
Initial method called when requesting a new view instance.- Specified by:
startin interfaceControllerService- Overrides:
startin classControllerServiceImpl- Parameters:
form- form instance containing the model data- Returns:
- ModelAndView instance for rendering the view
-
loadDocument
protected void loadDocument(DocumentFormBase form) throws org.kuali.rice.kew.api.exception.WorkflowException Loads the document by its provided document header id on the given form.This has been abstracted out so that it can be overridden in children if the need arises
- Overrides:
loadDocumentin classDocumentControllerServiceImpl- Parameters:
form- form instance that contains the doc id parameter and where the retrieved document instance should be set- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
createDocument
protected void createDocument(DocumentFormBase form) throws org.kuali.rice.kew.api.exception.WorkflowException Creates a new document of the type specified by the docTypeName property of the given form.This has been abstracted out so that it can be overridden in children if the need arises
- Overrides:
createDocumentin classDocumentControllerServiceImpl- Parameters:
form- form instance that contains the doc type parameter and where the new document instance should be set- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
setupMaintenanceEdit
public org.springframework.web.servlet.ModelAndView setupMaintenanceEdit(MaintenanceDocumentForm form) Sets up a new maintenance document for an edit action on the data object identified by the form parameters.- Specified by:
setupMaintenanceEditin interfaceMaintenanceDocumentControllerService- Parameters:
form- form instance containing the maintenance data- Returns:
- ModelAndView instance for rendering the edit maintenance view
-
setupMaintenanceCopy
public org.springframework.web.servlet.ModelAndView setupMaintenanceCopy(MaintenanceDocumentForm form) Sets up a new maintenance document for a copy action on the data object identified by the form parameters.- Specified by:
setupMaintenanceCopyin interfaceMaintenanceDocumentControllerService- Parameters:
form- form instance containing the maintenance data- Returns:
- ModelAndView instance for rendering the copy maintenance view
-
setupMaintenanceNewWithExisting
public org.springframework.web.servlet.ModelAndView setupMaintenanceNewWithExisting(MaintenanceDocumentForm form) Sets up a new maintenance document for a new with existing action on the data object identified by the form parameters.- Specified by:
setupMaintenanceNewWithExistingin interfaceMaintenanceDocumentControllerService- Parameters:
form- form instance containing the maintenance data- Returns:
- ModelAndView instance for rendering the new maintenance view
-
setupMaintenanceDelete
public org.springframework.web.servlet.ModelAndView setupMaintenanceDelete(MaintenanceDocumentForm form) Sets up a new maintenance document for a delete action on the data object identified by the form parameters.- Specified by:
setupMaintenanceDeletein interfaceMaintenanceDocumentControllerService- Parameters:
form- form instance containing the maintenance data- Returns:
- ModelAndView instance for rendering the delete maintenance view
-
setupMaintenanceDocument
Invoked to setup a new maintenance document for the maintenance data contained on the form and the given maintenance action.- Specified by:
setupMaintenanceDocumentin interfaceMaintenanceDocumentControllerService- Parameters:
form- form instance containing the maintenance datamaintenanceAction- type of maintenance action being requested (new, edit, copy, delete)
-
createMaintenanceDocument
Helper method to create a new maintenance document instance and set the instance on the given form.- Parameters:
form- form instance to pull data object from and set new document instance onmaintenanceAction- type of maintenance action being requested
-
downloadDataObjectAttachment
public void downloadDataObjectAttachment(MaintenanceDocumentForm form, javax.servlet.http.HttpServletResponse response) When the maintenance data object is aPersistableAttachmentorPersistableAttachmentList, streams the selected attachment back to the response.- Specified by:
downloadDataObjectAttachmentin interfaceMaintenanceDocumentControllerService- Parameters:
form- form instance containing the maintenance dataresponse- Http response for returning the attachment contents
-
getMaintenanceDocumentService
-
setMaintenanceDocumentService
-