org.kuali.rice.ken.web.spring
Class AdministerNotificationRequestController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.springframework.web.servlet.mvc.multiaction.MultiActionController
                      extended by org.kuali.rice.ken.web.spring.AdministerNotificationRequestController
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller, org.springframework.web.servlet.mvc.LastModified

public class AdministerNotificationRequestController
extends org.springframework.web.servlet.mvc.multiaction.MultiActionController

Implements reviewer Approve/Disapprove and initiator Acknowledge of a Notification requests sent to channels configured with reviewers

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
static class AdministerNotificationRequestController.AdministerNotificationRequestCommand
          Command object for this controller
 
Field Summary
protected  NotificationMessageContentService messageContentService
           
protected  NotificationRecipientService recipientService
           
protected  NotificationWorkflowDocumentService workflowDocumentService
           
 
Fields inherited from class org.springframework.web.servlet.mvc.multiaction.MultiActionController
DEFAULT_COMMAND_NAME, LAST_MODIFIED_METHOD_SUFFIX, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
AdministerNotificationRequestController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView acknowledge(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AdministerNotificationRequestController.AdministerNotificationRequestCommand command)
          Acknowledge action that acknowledges a notification request disapproval
 org.springframework.web.servlet.ModelAndView approve(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AdministerNotificationRequestController.AdministerNotificationRequestCommand command)
          Approve action that approves a notification request
 org.springframework.web.servlet.ModelAndView disapprove(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AdministerNotificationRequestController.AdministerNotificationRequestCommand command)
          Disapprove action that disapproves a notification request
 void setMessageContentService(NotificationMessageContentService notificationMessageContentService)
          Sets the messageContentService attribute value.
 void setRecipientService(NotificationRecipientService notificationRecipientService)
          Sets the recipientService attribute value.
 void setWorkflowDocumentService(NotificationWorkflowDocumentService notificationWorkflowDocumentService)
          Sets the workflowDocumentService attribute value.
 org.springframework.web.servlet.ModelAndView view(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AdministerNotificationRequestController.AdministerNotificationRequestCommand command)
          View action that displays an approve/disapprove/acknowledge view
 
Methods inherited from class org.springframework.web.servlet.mvc.multiaction.MultiActionController
bind, createBinder, getCommandName, getExceptionHandler, getLastModified, getMethodNameResolver, getValidators, getWebBindingInitializer, handleNoSuchRequestHandlingMethod, handleRequestInternal, initBinder, invokeNamedMethod, newCommandObject, setDelegate, setMethodNameResolver, setValidators, setWebBindingInitializer
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageContentService

protected NotificationMessageContentService messageContentService

workflowDocumentService

protected NotificationWorkflowDocumentService workflowDocumentService

recipientService

protected NotificationRecipientService recipientService
Constructor Detail

AdministerNotificationRequestController

public AdministerNotificationRequestController()
Method Detail

setMessageContentService

public void setMessageContentService(NotificationMessageContentService notificationMessageContentService)
Sets the messageContentService attribute value.

Parameters:
messageContentService - the NotificationMessageContentService impl

setWorkflowDocumentService

public void setWorkflowDocumentService(NotificationWorkflowDocumentService notificationWorkflowDocumentService)
Sets the workflowDocumentService attribute value.

Parameters:
workflowDocumentService - the NotificationWorkflowDocumentService impl

setRecipientService

public void setRecipientService(NotificationRecipientService notificationRecipientService)
Sets the recipientService attribute value.

Parameters:
recipientService - the NotificationRecipientService impl

view

public org.springframework.web.servlet.ModelAndView view(javax.servlet.http.HttpServletRequest request,
                                                         javax.servlet.http.HttpServletResponse response,
                                                         AdministerNotificationRequestController.AdministerNotificationRequestCommand command)
View action that displays an approve/disapprove/acknowledge view

Parameters:
request - the HttpServletRequest
response - the HttpServletResponse
command - the command object bound for this MultiActionController
Returns:
a view ModelAndView

approve

public org.springframework.web.servlet.ModelAndView approve(javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response,
                                                            AdministerNotificationRequestController.AdministerNotificationRequestCommand command)
                                                     throws javax.servlet.ServletException
Approve action that approves a notification request

Parameters:
request - the HttpServletRequest
response - the HttpServletResponse
command - the command object bound for this MultiActionController
Returns:
a view ModelAndView
Throws:
javax.servlet.ServletException - if an error occurs during approval

disapprove

public org.springframework.web.servlet.ModelAndView disapprove(javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response,
                                                               AdministerNotificationRequestController.AdministerNotificationRequestCommand command)
                                                        throws javax.servlet.ServletException
Disapprove action that disapproves a notification request

Parameters:
request - the HttpServletRequest
response - the HttpServletResponse
command - the command object bound for this MultiActionController
Returns:
a view ModelAndView
Throws:
javax.servlet.ServletException - if an error occurs during disapproval

acknowledge

public org.springframework.web.servlet.ModelAndView acknowledge(javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response,
                                                                AdministerNotificationRequestController.AdministerNotificationRequestCommand command)
                                                         throws javax.servlet.ServletException
Acknowledge action that acknowledges a notification request disapproval

Parameters:
request - the HttpServletRequest
response - the HttpServletResponse
command - the command object bound for this MultiActionController
Returns:
a view ModelAndView
Throws:
javax.servlet.ServletException - if an error occurs during acknowledgement


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.