Class SaveControllerServiceImpl

java.lang.Object
org.kuali.rice.krad.web.service.impl.SaveControllerServiceImpl
All Implemented Interfaces:
SaveControllerService

public class SaveControllerServiceImpl extends Object implements SaveControllerService
Default implementation of the save controller service.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • SaveControllerServiceImpl

      public SaveControllerServiceImpl()
  • Method Details

    • save

      public org.springframework.web.servlet.ModelAndView save(UifFormBase form)
      Save the form.

      Save is not implemented by KRAD and must be overridden with an implementation to persist changes to a db. By default, this will just refresh the View.

      Specified by:
      save in interface SaveControllerService
      Parameters:
      form - the form
      Returns:
      ModelAndView with the updated content
    • saveField

      public org.springframework.web.servlet.ModelAndView saveField(UifFormBase form)
      Save the field of the form at the propertyName specified by saveFieldPath (in request params sent); the field is already updated on the form at the time of this invocation.

      SaveField is not implemented by KRAD and must be overridden with an implementation to persist changes to a db. By default, this will just refresh the field specified by updateComponentId.

      Specified by:
      saveField in interface SaveControllerService
      Parameters:
      form - the form with the updated field
      Returns:
      ModelAndView which contains the updated component
    • getModelAndViewService

      public ModelAndViewService getModelAndViewService()
    • setModelAndViewService

      public void setModelAndViewService(ModelAndViewService modelAndViewService)