org.kuali.ole.patron.controller
Class OlePatronMaintenanceDocumentController

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.patron.controller.OlePatronMaintenanceDocumentController

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

.OlePatronMaintenanceDocumentController invokes MaintenanceDocumentController and returns instance of MaintenanceDocumentService.


Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.DocumentControllerBase
DOCUMENT_LOAD_COMMANDS
 
Constructor Summary
OlePatronMaintenanceDocumentController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView deleteDocument(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          To delete the whole patron document.
 org.springframework.web.servlet.ModelAndView getImage(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView getImageForLoan(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  org.kuali.rice.krad.service.MaintenanceDocumentService getMaintenanceDocumentService()
          This method returns the instance of olePatronMaintenanceDocumentService
 OlePatronService getOlePatronService()
           
 org.springframework.web.servlet.ModelAndView lostBarcode(org.kuali.rice.krad.web.form.DocumentFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView maintenanceDelete(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Use to create a link delete in the lookup result action field which will use to delete patron record..
 org.springframework.web.servlet.ModelAndView route(org.kuali.rice.krad.web.form.DocumentFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          To submit or route the patron maintenance document
protected  void setupMaintenanceForDelete(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form, javax.servlet.http.HttpServletRequest request, String maintenanceAction)
          This method populates confirmation to delete the document.
 org.springframework.web.servlet.ModelAndView uploadImage(org.kuali.rice.krad.web.form.DocumentFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 boolean validateFile(String inputFile)
          This method validate the image file type.
 
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, complete, createDocument, deleteNote, disapprove, downloadAttachment, 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
addBlankLine, addLine, checkForm, checkViewAuthorization, close, deleteLine, getBooleanDialogResponse, getMessageView, getStringDialogResponse, getUIFModelAndView, getUIFModelAndView, getViewService, hasDialogBeenAnswered, hasDialogBeenDisplayed, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, returnFromLightbox, returnToHistory, returnToHub, returnToPrevious, saveLine, showDialog, toggleInactiveRecordDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OlePatronMaintenanceDocumentController

public OlePatronMaintenanceDocumentController()
Method Detail

getOlePatronService

public OlePatronService getOlePatronService()

getMaintenanceDocumentService

protected org.kuali.rice.krad.service.MaintenanceDocumentService getMaintenanceDocumentService()
This method returns the instance of olePatronMaintenanceDocumentService

Overrides:
getMaintenanceDocumentService in class org.kuali.rice.krad.web.controller.MaintenanceDocumentController
Returns:
olePatronMaintenanceDocumentService(MaintenanceDocumentService)

maintenanceDelete

@RequestMapping(params="methodToCall=maintenanceDelete")
public org.springframework.web.servlet.ModelAndView maintenanceDelete(@ModelAttribute(value="KualiForm")
                                                                                     org.kuali.rice.krad.web.form.MaintenanceDocumentForm form,
                                                                                     org.springframework.validation.BindingResult result,
                                                                                     javax.servlet.http.HttpServletRequest request,
                                                                                     javax.servlet.http.HttpServletResponse response)
                                                               throws Exception
Use to create a link delete in the lookup result action field which will use to delete patron record..

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.MaintenanceDocumentForm form,
                                                                                  org.springframework.validation.BindingResult result,
                                                                                  javax.servlet.http.HttpServletRequest request,
                                                                                  javax.servlet.http.HttpServletResponse response)
                                                            throws Exception
To delete the whole patron document.

Parameters:
form -
result -
request -
response -
Returns:
Close the document
Throws:
Exception

setupMaintenanceForDelete

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

Parameters:
form -
request -
maintenanceAction -

route

@RequestMapping(params="methodToCall=route")
public org.springframework.web.servlet.ModelAndView route(@ModelAttribute(value="KualiForm")
                                                                         org.kuali.rice.krad.web.form.DocumentFormBase form,
                                                                         org.springframework.validation.BindingResult result,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
To submit or route the patron maintenance document

Overrides:
route in class org.kuali.rice.krad.web.controller.MaintenanceDocumentController
Parameters:
form - document form base containing the document instance that will be routed
Returns:
ModelAndView

lostBarcode

@RequestMapping(params="methodToCall=lostBarcode")
public org.springframework.web.servlet.ModelAndView lostBarcode(@ModelAttribute(value="KualiForm")
                                                                               org.kuali.rice.krad.web.form.DocumentFormBase form,
                                                                               org.springframework.validation.BindingResult result,
                                                                               javax.servlet.http.HttpServletRequest request,
                                                                               javax.servlet.http.HttpServletResponse response)

uploadImage

@RequestMapping(params="methodToCall=uploadImage")
public org.springframework.web.servlet.ModelAndView uploadImage(@ModelAttribute(value="KualiForm")
                                                                               org.kuali.rice.krad.web.form.DocumentFormBase form,
                                                                               org.springframework.validation.BindingResult result,
                                                                               javax.servlet.http.HttpServletRequest request,
                                                                               javax.servlet.http.HttpServletResponse response)

validateFile

public boolean validateFile(String inputFile)
This method validate the image file type.

Parameters:
inputFile -
Returns:
boolean

getImage

@RequestMapping(params="methodToCall=getImage")
public org.springframework.web.servlet.ModelAndView getImage(@ModelAttribute(value="KualiForm")
                                                                            org.kuali.rice.krad.web.form.MaintenanceDocumentForm form,
                                                                            org.springframework.validation.BindingResult result,
                                                                            javax.servlet.http.HttpServletRequest request,
                                                                            javax.servlet.http.HttpServletResponse response)

getImageForLoan

@RequestMapping(params="methodToCall=getImageForLoan")
public org.springframework.web.servlet.ModelAndView getImageForLoan(@ModelAttribute(value="KualiForm")
                                                                                   org.kuali.rice.krad.web.form.MaintenanceDocumentForm form,
                                                                                   org.springframework.validation.BindingResult result,
                                                                                   javax.servlet.http.HttpServletRequest request,
                                                                                   javax.servlet.http.HttpServletResponse response)


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