org.kuali.ole.describe.controller
Class WorkInstanceOlemlEditor

java.lang.Object
  extended by org.kuali.ole.describe.controller.AbstractEditor
      extended by org.kuali.ole.describe.controller.WorkInstanceOlemlEditor
All Implemented Interfaces:
DocumentEditor

public class WorkInstanceOlemlEditor
extends AbstractEditor
implements DocumentEditor

InstanceEditorController is the controller class for Instance Editor


Method Summary
 org.springframework.web.servlet.ModelAndView addAccessInformation(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 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.
 org.springframework.web.servlet.ModelAndView addEOWHoldingNotes(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView addExtentOfOwnership(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView addHoldingNotes(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 EditorForm addORDeleteFields(EditorForm editorForm, javax.servlet.http.HttpServletRequest request)
           
 EditorForm addORRemoveAccessInformationAndHoldingsNotes(EditorForm editorForm, javax.servlet.http.HttpServletRequest request)
           
 EditorForm addORRemoveExtentOfOwnership(EditorForm editorForm, javax.servlet.http.HttpServletRequest request)
           
 EditorForm addORRemoveItemNote(EditorForm editorForm, javax.servlet.http.HttpServletRequest request)
           
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  org.kuali.rice.krad.web.form.UifFormBase createInitialForm(javax.servlet.http.HttpServletRequest httpServletRequest)
          This method creates a instance of InstanceEditorForm
 EditorForm createNewRecord(EditorForm editorForm, Request request)
           
 EditorForm delete(EditorForm editorForm)
           
 EditorForm deleteDocument(EditorForm editorForm)
           
 org.springframework.web.servlet.ModelAndView deleteItem(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 EditorForm deleteVerify(EditorForm editorForm)
           
 EditorForm editNewRecord(EditorForm editorForm, Request request)
           
 DiscoveryHelperService getDiscoveryHelperService()
          Gets the discoveryHelperService attribute.
static WorkInstanceOlemlEditor getInstance()
           
 org.springframework.web.servlet.ModelAndView load(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.
 EditorForm loadDocument(EditorForm editorForm)
           
 org.springframework.web.servlet.ModelAndView removeAccessInformation(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 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.
 org.springframework.web.servlet.ModelAndView removeEOWHoldingNotes(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView removeExtentOfOwnership(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView removeHoldingNotes(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 EditorForm saveDocument(EditorForm editorForm)
           
 String saveDocument(Request req, EditorForm editorForm)
           
 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.
 
Methods inherited from class org.kuali.ole.describe.controller.AbstractEditor
getResponseFromDocStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WorkInstanceOlemlEditor getInstance()

loadDocument

public EditorForm loadDocument(EditorForm editorForm)
Specified by:
loadDocument in interface DocumentEditor
Overrides:
loadDocument in class AbstractEditor

saveDocument

public EditorForm saveDocument(EditorForm editorForm)
Specified by:
saveDocument in interface DocumentEditor
Overrides:
saveDocument in class AbstractEditor

deleteDocument

public EditorForm deleteDocument(EditorForm editorForm)
Specified by:
deleteDocument in interface DocumentEditor
Overrides:
deleteDocument in class AbstractEditor

createNewRecord

public EditorForm createNewRecord(EditorForm editorForm,
                                  Request request)
Specified by:
createNewRecord in interface DocumentEditor
Overrides:
createNewRecord in class AbstractEditor

editNewRecord

public EditorForm editNewRecord(EditorForm editorForm,
                                Request request)
Specified by:
editNewRecord in interface DocumentEditor
Overrides:
editNewRecord in class AbstractEditor

saveDocument

public String saveDocument(Request req,
                           EditorForm editorForm)
Specified by:
saveDocument in interface DocumentEditor
Overrides:
saveDocument in class AbstractEditor

createInitialForm

protected org.kuali.rice.krad.web.form.UifFormBase createInitialForm(javax.servlet.http.HttpServletRequest httpServletRequest)
This method creates a instance of InstanceEditorForm

Parameters:
httpServletRequest -
Returns:
InstanceEditorForm

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.

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

load

public org.springframework.web.servlet.ModelAndView load(@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

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.

addAccessInformation

@RequestMapping(params="methodToCall=addAccessInformation")
public org.springframework.web.servlet.ModelAndView addAccessInformation(@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)

removeAccessInformation

@RequestMapping(params="methodToCall=removeAccessInformation")
public org.springframework.web.servlet.ModelAndView removeAccessInformation(@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)

addHoldingNotes

@RequestMapping(params="methodToCall=addHoldingNotes")
public org.springframework.web.servlet.ModelAndView addHoldingNotes(@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)

removeHoldingNotes

@RequestMapping(params="methodToCall=removeHoldingNotes")
public org.springframework.web.servlet.ModelAndView removeHoldingNotes(@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)

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

deleteItem

@RequestMapping(method=POST,
                params="methodToCall=deleteItem")
public org.springframework.web.servlet.ModelAndView deleteItem(@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
Throws:
Exception

addExtentOfOwnership

@RequestMapping(params="methodToCall=addExtentOfOwnership")
public org.springframework.web.servlet.ModelAndView addExtentOfOwnership(@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)

removeExtentOfOwnership

@RequestMapping(params="methodToCall=removeExtentOfOwnership")
public org.springframework.web.servlet.ModelAndView removeExtentOfOwnership(@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)

addEOWHoldingNotes

@RequestMapping(params="methodToCall=addEOWHoldingNotes")
public org.springframework.web.servlet.ModelAndView addEOWHoldingNotes(@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)

removeEOWHoldingNotes

@RequestMapping(params="methodToCall=removeEOWHoldingNotes")
public org.springframework.web.servlet.ModelAndView removeEOWHoldingNotes(@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)

addORDeleteFields

public EditorForm addORDeleteFields(EditorForm editorForm,
                                    javax.servlet.http.HttpServletRequest request)
Specified by:
addORDeleteFields in interface DocumentEditor
Overrides:
addORDeleteFields in class AbstractEditor

deleteVerify

public EditorForm deleteVerify(EditorForm editorForm)
                        throws Exception
Specified by:
deleteVerify in interface DocumentEditor
Overrides:
deleteVerify in class AbstractEditor
Throws:
Exception

delete

public EditorForm delete(EditorForm editorForm)
                  throws Exception
Specified by:
delete in interface DocumentEditor
Overrides:
delete in class AbstractEditor
Throws:
Exception

addORRemoveExtentOfOwnership

public EditorForm addORRemoveExtentOfOwnership(EditorForm editorForm,
                                               javax.servlet.http.HttpServletRequest request)
Specified by:
addORRemoveExtentOfOwnership in interface DocumentEditor
Overrides:
addORRemoveExtentOfOwnership in class AbstractEditor

addORRemoveAccessInformationAndHoldingsNotes

public EditorForm addORRemoveAccessInformationAndHoldingsNotes(EditorForm editorForm,
                                                               javax.servlet.http.HttpServletRequest request)
Specified by:
addORRemoveAccessInformationAndHoldingsNotes in interface DocumentEditor
Overrides:
addORRemoveAccessInformationAndHoldingsNotes in class AbstractEditor

addORRemoveItemNote

public EditorForm addORRemoveItemNote(EditorForm editorForm,
                                      javax.servlet.http.HttpServletRequest request)
Specified by:
addORRemoveItemNote in interface DocumentEditor
Overrides:
addORRemoveItemNote in class AbstractEditor


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