Class TransactionalDocumentControllerServiceImpl

All Implemented Interfaces:
DocumentControllerService, TransactionalDocumentControllerService, ControllerService

public class TransactionalDocumentControllerServiceImpl extends DocumentControllerServiceImpl implements TransactionalDocumentControllerService
Default implementation of the transactional document controller service.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • TransactionalDocumentControllerServiceImpl

      public TransactionalDocumentControllerServiceImpl()
  • Method Details

    • copy

      public org.springframework.web.servlet.ModelAndView copy(TransactionalDocumentFormBase form)
      Invoked to copy the current transactional document into a new document.
      Specified by:
      copy in interface TransactionalDocumentControllerService
      Parameters:
      form - form instance containing the transactional document data
      Returns:
      ModelAndView instance for rendering the document view
    • cancel

      public org.springframework.web.servlet.ModelAndView cancel(UifFormBase form)
      Navigates back to a previous point (depending on how the view was requested). Invoked when the cancel action is invoked on a view. org.kuali.rice.krad.web.service.impl.NavigationControllerServiceImpl#back(org.kuali.rice.krad.web.form.UifFormBase, boolean)

      Releases the pessimistic locks before continuing.

      Specified by:
      cancel in interface ControllerService
      Overrides:
      cancel in class DocumentControllerServiceImpl
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • route

      public org.springframework.web.servlet.ModelAndView route(DocumentFormBase form)
      Sends a route workflow action for the document contained on the form.

      Releases the pessimistic locks before continuing.

      Specified by:
      route in interface DocumentControllerService
      Overrides:
      route in class DocumentControllerServiceImpl
      Parameters:
      form - form instance containing the document the route request will be generated for
      Returns:
      ModelAndView instance for rendering the document view
    • approve

      public org.springframework.web.servlet.ModelAndView approve(DocumentFormBase form)
      Sends a approve workflow action for the document contained on the form.

      Releases the pessimistic locks before continuing.

      Specified by:
      approve in interface DocumentControllerService
      Overrides:
      approve in class DocumentControllerServiceImpl
      Parameters:
      form - form instance containing the document the approve request will be generated for
      Returns:
      ModelAndView instance for rendering the document view
    • disapprove

      public org.springframework.web.servlet.ModelAndView disapprove(DocumentFormBase form)
      Sends a disapprove workflow action for the document contained on the form.

      Releases the pessimistic locks before continuing.

      Specified by:
      disapprove in interface DocumentControllerService
      Overrides:
      disapprove in class DocumentControllerServiceImpl
      Parameters:
      form - form instance containing the document the disapprove request will be generated for
      Returns:
      ModelAndView instance for rendering the document view
    • acknowledge

      public org.springframework.web.servlet.ModelAndView acknowledge(DocumentFormBase form)
      Sends a acknowledge workflow action for the document contained on the form.

      Releases the pessimistic locks before continuing.

      Specified by:
      acknowledge in interface DocumentControllerService
      Overrides:
      acknowledge in class DocumentControllerServiceImpl
      Parameters:
      form - form instance containing the document the acknowledge request will be generated for
      Returns:
      ModelAndView instance for rendering the document view
    • close

      public org.springframework.web.servlet.ModelAndView close(DocumentFormBase form)
      Closes the document and returns to the hub.

      Prompts for save and releases the pessimistic locks before continuing.

      Specified by:
      close in interface DocumentControllerService
      Overrides:
      close in class DocumentControllerServiceImpl
      Parameters:
      form - form instance containing the document instance
      Returns:
      ModelAndView instance for rendering the document view
    • releasePessimisticLocks

      protected void releasePessimisticLocks(DocumentFormBase form)
      Releases the pessimistic locks for the current user.
      Parameters:
      form - form instance containing the transactional document data
    • getPessimisticLockService

      protected PessimisticLockService getPessimisticLockService()
    • setPessimisticLockService

      protected void setPessimisticLockService(PessimisticLockService pessimisticLockService)