Class CollectionControllerServiceImpl

java.lang.Object
org.kuali.rice.krad.web.service.impl.CollectionControllerServiceImpl
All Implemented Interfaces:
CollectionControllerService
Direct Known Subclasses:
LookupCollectionControllerServiceImpl

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

    • CollectionControllerServiceImpl

      public CollectionControllerServiceImpl()
  • Method Details

    • addLine

      public org.springframework.web.servlet.ModelAndView addLine(UifFormBase form)
      Invoked by the add line action to add the add line instance to the model collection.
      Specified by:
      addLine in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • addBlankLine

      public org.springframework.web.servlet.ModelAndView addBlankLine(UifFormBase form)
      Invoked by the add blank line action to add a new line instance to the model mollection.
      Specified by:
      addBlankLine in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • retrieveEditLineDialog

      public org.springframework.web.servlet.ModelAndView retrieveEditLineDialog(UifFormBase form)
      Invoked by the edit line action to show the edit line dialog for the edit line instance to the model collection.
      Specified by:
      retrieveEditLineDialog in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • editLine

      public org.springframework.web.servlet.ModelAndView editLine(UifFormBase form)
      Invoked by the edit line action to edit the edit line instance to the model collection.
      Specified by:
      editLine in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • closeEditLineDialog

      public org.springframework.web.servlet.ModelAndView closeEditLineDialog(UifFormBase form)
      Invoked by the edit line modal's hidden event to close the edit line dialog.
      Specified by:
      closeEditLineDialog in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • saveLine

      public org.springframework.web.servlet.ModelAndView saveLine(UifFormBase form)
      Invoked by the save line action to save an item within the model collection.
      Specified by:
      saveLine in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • deleteLine

      public org.springframework.web.servlet.ModelAndView deleteLine(UifFormBase form)
      Invoked by the delete line action to delete an item within the model collection.
      Specified by:
      deleteLine in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • performHelperLifecycle

      protected org.springframework.web.servlet.ModelAndView performHelperLifecycle(UifFormBase form, Runnable runnable)
      Helper method to run a Runnable through the view lifecycle.
      Parameters:
      form - form instance containing the model data
      runnable - code to run in the lifecycle
      Returns:
      ModelAndView instance for rendering the view
    • retrieveCollectionPage

      public org.springframework.web.servlet.ModelAndView retrieveCollectionPage(UifFormBase form)
      Invoked by the table paging widget to retrieve a page for a collection group.
      Specified by:
      retrieveCollectionPage in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • tableJsonRetrieval

      public org.springframework.web.servlet.ModelAndView tableJsonRetrieval(UifFormBase form)
      Get method for getting aaData for jquery datatables which are using sAjaxSource option.

      This will render the aaData JSON for the displayed page of the table matching the tableId passed in the request parameters.

      Specified by:
      tableJsonRetrieval in interface CollectionControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • getModelAndViewService

      protected ModelAndViewService getModelAndViewService()
    • setModelAndViewService

      public void setModelAndViewService(ModelAndViewService modelAndViewService)