org.kuali.ole.ingest.controller
Class ProfileBuilderController

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

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

ProfileBuilderController is the controller class for Profile Builder Controller


Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
Constructor Summary
ProfileBuilderController()
           
 
Method Summary
protected  ProfileBuilderForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          This method will return instance of ProfileBuilderForm
 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 will take the initial request when click on ProfileBuilder controller.
 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 ProfileBuilderXml file into database after uploading the ProfileBuilderXml.
 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

ProfileBuilderController

public ProfileBuilderController()
Method Detail

createInitialForm

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

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

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 will take the initial request when click on ProfileBuilder controller.

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

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


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