org.kuali.ole.ingest.controller
Class OleLocationController

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

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

OleLocationController is the controller class for Location Controller


Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
Constructor Summary
OleLocationController()
           
 
Method Summary
protected  OleLocationForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          This method will return instance of OleLocationForm.
 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 OleLocation 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 locationXml file into database after uploading the locationXml.
 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

OleLocationController

public OleLocationController()
Method Detail

createInitialForm

protected OleLocationForm createInitialForm(javax.servlet.http.HttpServletRequest request)
This method will return instance of OleLocationForm.

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

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 OleLocation 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 locationXml file into database after uploading the locationXml.

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.