org.kuali.ole.license.controller
Class OleCheckListController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.rice.krad.web.controller.DocumentControllerBase
          extended by org.kuali.rice.krad.web.controller.MaintenanceDocumentController
              extended by org.kuali.ole.license.controller.OleCheckListController

@Controller
@RequestMapping(value="/oleCheckListMaintenance")
public class OleCheckListController
extends org.kuali.rice.krad.web.controller.MaintenanceDocumentController

OleCheckListController is the controller class for CheckList Maintenance Document.


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.kuali.rice.krad.web.controller.DocumentControllerBase
DOCUMENT_LOAD_COMMANDS
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
Constructor Summary
OleCheckListController()
           
 
Method Summary
protected  boolean deleteAttachment(OleCheckListBo oleCheckListBo)
          This method is used to delete the attachment(checklist template) file.
 org.springframework.web.servlet.ModelAndView deleteDocument(org.kuali.rice.krad.web.form.MaintenanceForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method invokes deleteAttachment method to delete attachment and set the error accordingly ..
 org.springframework.web.servlet.ModelAndView downloadAttachment(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method is used to download the attachment.
 org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService()
           
protected  OleCheckListMaintenanceDocumentService getMaintenanceDocumentService()
           
 org.springframework.web.servlet.ModelAndView maintenanceDelete(org.kuali.rice.krad.web.form.MaintenanceForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method invokes setupMaintenanceForDelete method to populate the document for deleting.
 org.springframework.web.servlet.ModelAndView route(org.kuali.rice.krad.web.form.DocumentFormBase docForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method store the uploaded checklist template in the specified path and also populates the document for routing
protected  void setupMaintenanceForDelete(org.kuali.rice.krad.web.form.MaintenanceForm form, javax.servlet.http.HttpServletRequest request, String maintenanceAction)
          This method populates confirmation to delete the document.
 boolean storeAttachment(org.springframework.web.multipart.MultipartFile attachedFile, String fileName)
          This method stores uploaded checklist template in the specified path.
 
Methods inherited from class org.kuali.rice.krad.web.controller.MaintenanceDocumentController
createInitialForm, docHandler, maintenanceCopy, maintenanceEdit, maintenanceNewWithExisting, setupMaintenance, start
 
Methods inherited from class org.kuali.rice.krad.web.controller.DocumentControllerBase
acknowledge, approve, blanketApprove, buildAuthorizationException, cancel, cancelAttachment, checkAndWarnAboutSensitiveData, combineAdHocRecipients, createDocument, deleteNote, disapprove, fyi, getAttachmentService, getBusinessObjectService, getConfigurationService, getDataDictionaryService, getDocumentDictionaryService, getDocumentService, getNoteService, insertNote, loadDocument, performWorkflowAction, reload, save, setBusinessObjectService, setDataDictionaryService, setDocumentDictionaryService, setDocumentService, supervisorFunctions
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addLine, checkViewAuthorization, close, deleteLine, getUIFModelAndView, getUIFModelAndView, getViewService, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, returnToHistory, returnToHub, returnToPrevious, toggleInactiveRecordDisplay, updateComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

OleCheckListController

public OleCheckListController()
Method Detail

downloadAttachment

@RequestMapping(params="methodToCall=downloadAttachment")
public org.springframework.web.servlet.ModelAndView downloadAttachment(@ModelAttribute(value="KualiForm")
                                                                                      org.kuali.rice.krad.web.form.UifFormBase form,
                                                                                      org.springframework.validation.BindingResult result,
                                                                                      javax.servlet.http.HttpServletRequest request,
                                                                                      javax.servlet.http.HttpServletResponse response)
This method is used to download the attachment.

Overrides:
downloadAttachment in class org.kuali.rice.krad.web.controller.DocumentControllerBase
Parameters:
form -
result -
request -
response -
Returns:
ModelAndView

maintenanceDelete

@RequestMapping(params="methodToCall=maintenanceDelete")
public org.springframework.web.servlet.ModelAndView maintenanceDelete(@ModelAttribute(value="KualiForm")
                                                                                     org.kuali.rice.krad.web.form.MaintenanceForm form,
                                                                                     org.springframework.validation.BindingResult result,
                                                                                     javax.servlet.http.HttpServletRequest request,
                                                                                     javax.servlet.http.HttpServletResponse response)
                                                               throws Exception
This method invokes setupMaintenanceForDelete method to populate the document for deleting.

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView
Throws:
Exception

deleteDocument

@RequestMapping(params="methodToCall=deleteDocument")
public org.springframework.web.servlet.ModelAndView deleteDocument(@ModelAttribute(value="KualiForm")
                                                                                  org.kuali.rice.krad.web.form.MaintenanceForm form,
                                                                                  org.springframework.validation.BindingResult result,
                                                                                  javax.servlet.http.HttpServletRequest request,
                                                                                  javax.servlet.http.HttpServletResponse response)
                                                            throws Exception
This method invokes deleteAttachment method to delete attachment and set the error accordingly ..

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView
Throws:
Exception

setupMaintenanceForDelete

protected void setupMaintenanceForDelete(org.kuali.rice.krad.web.form.MaintenanceForm form,
                                         javax.servlet.http.HttpServletRequest request,
                                         String maintenanceAction)
This method populates confirmation to delete the document.

Parameters:
form -
request -
maintenanceAction -

deleteAttachment

protected boolean deleteAttachment(OleCheckListBo oleCheckListBo)
This method is used to delete the attachment(checklist template) file.

Parameters:
oleCheckListBo -
Returns:
boolean

getMaintenanceDocumentService

protected OleCheckListMaintenanceDocumentService getMaintenanceDocumentService()
Overrides:
getMaintenanceDocumentService in class org.kuali.rice.krad.web.controller.MaintenanceDocumentController

getKualiConfigurationService

public org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService()

route

@RequestMapping(params="methodToCall=route")
public org.springframework.web.servlet.ModelAndView route(@ModelAttribute(value="KualiForm")
                                                                         org.kuali.rice.krad.web.form.DocumentFormBase docForm,
                                                                         org.springframework.validation.BindingResult result,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
This method store the uploaded checklist template in the specified path and also populates the document for routing

Overrides:
route in class org.kuali.rice.krad.web.controller.MaintenanceDocumentController
Parameters:
docForm -
result -
request -
response -
Returns:
ModelAndView

storeAttachment

public boolean storeAttachment(org.springframework.web.multipart.MultipartFile attachedFile,
                               String fileName)
                        throws IOException
This method stores uploaded checklist template in the specified path.

Parameters:
attachedFile -
fileName -
Returns:
boolean
Throws:
IOException


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.