org.kuali.ole.editor.contoller
Class DublinEditorController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.ole.editor.contoller.DublinEditorController

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

DublinEditorController is the controller class for Dublin Editor


Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
Constructor Summary
DublinEditorController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView addDublinField(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 add the dublin record based on the selected Line index and updates the component.
protected  org.springframework.web.servlet.ModelAndView callSuper(org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DublinEditorForm dublinEditorForm)
          used for test case.
protected  DublinEditorForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          This method creates a instance of DublinEditorForm
 org.springframework.web.servlet.ModelAndView loadDublinRecord(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 fetch the DublinEditorForm records.
 org.springframework.web.servlet.ModelAndView removeDublinField(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 remove the DublinField based on the index position and updates the component.
 void setDocstoreHelperService(DocstoreHelperService docstoreHelperService)
          Sets the docstoreHelperService attribute value.
 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 DublinEditor Screen.
 org.springframework.web.servlet.ModelAndView submit(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 ingest new record to docStore if uuid is null else it will update exisiting record.
 
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

DublinEditorController

public DublinEditorController()
Method Detail

createInitialForm

protected DublinEditorForm createInitialForm(javax.servlet.http.HttpServletRequest request)
This method creates a instance of DublinEditorForm

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

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 DublinEditor Screen.

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

addDublinField

@RequestMapping(params="methodToCall=addField")
public org.springframework.web.servlet.ModelAndView addDublinField(@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 add the dublin record based on the selected Line index and updates the component.

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

removeDublinField

@RequestMapping(params="methodToCall=removeField")
public org.springframework.web.servlet.ModelAndView removeDublinField(@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 remove the DublinField based on the index position and updates the component.

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

submit

@RequestMapping(params="methodToCall=submit")
public org.springframework.web.servlet.ModelAndView submit(@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 ingest new record to docStore if uuid is null else it will update exisiting record. Once the responce has been received from docStore,then form has been nullified. if response has not received from docStore then form nullified in catch block.

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

loadDublinRecord

@RequestMapping(params="methodToCall=loadDublinRecord")
public org.springframework.web.servlet.ModelAndView loadDublinRecord(@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 fetch the DublinEditorForm records.

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

setDocstoreHelperService

public void setDocstoreHelperService(DocstoreHelperService docstoreHelperService)
Sets the docstoreHelperService attribute value.

Parameters:
docstoreHelperService -

callSuper

protected org.springframework.web.servlet.ModelAndView callSuper(org.springframework.validation.BindingResult result,
                                                                 javax.servlet.http.HttpServletRequest request,
                                                                 javax.servlet.http.HttpServletResponse response,
                                                                 DublinEditorForm dublinEditorForm)
used for test case.

Parameters:
result -
request -
response -
dublinEditorForm -
Returns:
ModelAndView


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