org.kuali.ole.editor.contoller
Class MarcEditorController

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

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

MarcEditorController is the controller class for Marc Editor


Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
Constructor Summary
MarcEditorController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView addControlField(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 controlField record based on the selected Line index and updates the component.
 org.springframework.web.servlet.ModelAndView addDataField(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 datField 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, MarcEditorForm marcEditorForm)
          This method used for Test-Case
protected  MarcEditorForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          This method will return instance of MarcEditorForm
 String getURL()
          Gets the webservice URL using PropertyUtil.
 org.springframework.web.servlet.ModelAndView loadMarcRecord(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 load the MarcEditor records based on uuid.
 void processResponse(String responseFromDocstore, MarcEditorForm marcEditorForm, String uuid)
          This method will processResponse,provided the docStore should return response and should have a tokenId
 org.springframework.web.servlet.ModelAndView removeControlField(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 controlField based on the index position and updates the component.
 org.springframework.web.servlet.ModelAndView removeDataField(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 dataField based on the index position and updates the component.
 boolean responseToOLESentRequired()
          This method returns True if tokenId is not null,else return False.
 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 MarcEditor 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 provided the marcEditorForm should be valid.
 boolean validateMarcEditorData(MarcEditorForm marcEditorForm)
          This method will Validate the MarcEditorForm and return either True or False Validation happen based on existence of leader,Tags and values for controlFields and dataFields .
 
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

MarcEditorController

public MarcEditorController()
Method Detail

createInitialForm

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

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

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

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

addControlField

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

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

removeControlField

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

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

addDataField

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

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

removeDataField

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

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

loadMarcRecord

@RequestMapping(params="methodToCall=loadMarcRecord")
public org.springframework.web.servlet.ModelAndView loadMarcRecord(@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 load the MarcEditor records based on uuid.

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 provided the marcEditorForm should be valid.

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

processResponse

public void processResponse(String responseFromDocstore,
                            MarcEditorForm marcEditorForm,
                            String uuid)
This method will processResponse,provided the docStore should return response and should have a tokenId

Parameters:
responseFromDocstore -
marcEditorForm -

responseToOLESentRequired

public boolean responseToOLESentRequired()
This method returns True if tokenId is not null,else return False.

Returns:
boolean

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,
                                                                 MarcEditorForm marcEditorForm)
This method used for Test-Case

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

validateMarcEditorData

public boolean validateMarcEditorData(MarcEditorForm marcEditorForm)
This method will Validate the MarcEditorForm and return either True or False Validation happen based on existence of leader,Tags and values for controlFields and dataFields .

Parameters:
marcEditorForm -
Returns:
valid

getURL

public String getURL()
Gets the webservice URL using PropertyUtil.

Returns:
String


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