org.kuali.ole.editor.contoller
Class InstanceEditorController

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

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

InstanceEditorController is the controller class for Instance Editor


Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
Constructor Summary
InstanceEditorController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView addItemRecord(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 adds the existingItem records from docStore in to oleItems and it will be set in InstanceEditorForm.
protected  org.springframework.web.servlet.ModelAndView callSuper(org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, InstanceEditorForm instanceEditorForm)
          Used for Test-case
protected  InstanceEditorForm createInitialForm(javax.servlet.http.HttpServletRequest httpServletRequest)
          This method creates a instance of InstanceEditorForm
 DiscoveryHelperService getDiscoveryHelperService()
          Gets the discoveryHelperService attribute.
 org.springframework.web.servlet.ModelAndView getNewItemData(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 get new itemData
 org.springframework.web.servlet.ModelAndView loadInstanceRecord(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 holding/Item records based on the AdditionalAttributes.
 void setDiscoveryHelperService(DiscoveryHelperService discoveryHelperService)
          Sets the discoveryHelperService attribute value.
 void setDocstoreHelperService(DocstoreHelperService docstoreHelperService)
          Sets the docstoreHelperService attribute values.
 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 InstanceEditor 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.
 org.springframework.web.servlet.ModelAndView updateLeftPane(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 update the Left Pane hierarchy details.
 
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

InstanceEditorController

public InstanceEditorController()
Method Detail

createInitialForm

protected InstanceEditorForm createInitialForm(javax.servlet.http.HttpServletRequest httpServletRequest)
This method creates a instance of InstanceEditorForm

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

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

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

loadInstanceRecord

@RequestMapping(params="methodToCall=loadInstanceRecord")
public org.springframework.web.servlet.ModelAndView loadInstanceRecord(@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 holding/Item records based on the AdditionalAttributes.

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. and nullify the form.

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

updateLeftPane

@RequestMapping(params="methodToCall=updateLeftPane")
public org.springframework.web.servlet.ModelAndView updateLeftPane(@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 update the Left Pane hierarchy details.

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

addItemRecord

@RequestMapping(method=POST,
                params="methodToCall=addNewItem")
public org.springframework.web.servlet.ModelAndView addItemRecord(@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 adds the existingItem records from docStore in to oleItems and it will be set in InstanceEditorForm.

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

getNewItemData

@RequestMapping(method=POST,
                params="methodToCall=getNewItemData")
public org.springframework.web.servlet.ModelAndView getNewItemData(@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 get new itemData

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

callSuper

protected org.springframework.web.servlet.ModelAndView callSuper(org.springframework.validation.BindingResult result,
                                                                 javax.servlet.http.HttpServletRequest request,
                                                                 javax.servlet.http.HttpServletResponse response,
                                                                 InstanceEditorForm instanceEditorForm)
Used for Test-case

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

setDocstoreHelperService

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

Parameters:
docstoreHelperService -

setDiscoveryHelperService

public void setDiscoveryHelperService(DiscoveryHelperService discoveryHelperService)
Sets the discoveryHelperService attribute value.

Parameters:
discoveryHelperService -

getDiscoveryHelperService

public DiscoveryHelperService getDiscoveryHelperService()
Gets the discoveryHelperService attribute.

Returns:
Returns DiscoveryHelperService.


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