org.kuali.ole.ingest.controller
Class OlePatronRecordController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.ole.ingest.controller.OlePatronRecordController

@Controller
@RequestMapping(value="/patronrecordcontroller")
public class OlePatronRecordController
extends org.kuali.rice.krad.web.controller.UifControllerBase

OlePatronRecordController is the controller class for Patron Record Controller


Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
Constructor Summary
OlePatronRecordController()
           
 
Method Summary
protected  OlePatronRecordForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          This method will return new Instance of OlePatronRecordForm.
 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 will download the Failure records as an attachment based on summaryId.
 org.springframework.web.servlet.ModelAndView start(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 takes the initial request when click on OlePatronRecord Screen.
 org.springframework.web.servlet.ModelAndView upload(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 persist the data from patronXml file into database after uploading the patronXml.
 boolean validateFile(String inputFile)
          This method validate the xml file type.
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addLine, cancel, 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
 

Constructor Detail

OlePatronRecordController

public OlePatronRecordController()
Method Detail

createInitialForm

protected OlePatronRecordForm createInitialForm(javax.servlet.http.HttpServletRequest request)
This method will return new Instance of OlePatronRecordForm.

Specified by:
createInitialForm in class org.kuali.rice.krad.web.controller.UifControllerBase
Parameters:
request -
Returns:
OlePatronRecordForm.

start

@RequestMapping(params="methodToCall=start")
public org.springframework.web.servlet.ModelAndView start(@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 takes the initial request when click on OlePatronRecord Screen.

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

upload

@RequestMapping(params="methodToCall=upload")
public org.springframework.web.servlet.ModelAndView upload(@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)
                                                    throws Exception
This method persist the data from patronXml file into database after uploading the patronXml.

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

validateFile

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

Parameters:
inputFile -
Returns:
boolean

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)
                                                                throws Exception
This method will download the Failure records as an attachment based on summaryId.

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


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