org.kuali.rice.kcb.web.spring
Class UserPreferencesController

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.kcb.web.spring.UserPreferencesController
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 UserPreferencesController
extends org.springframework.web.servlet.mvc.multiaction.MultiActionController

This class is the controller that handles management of various user preferences interfaces (deliver types, user subscriptions, etc).

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

Field Summary
protected  KENIntegrationService kenIntegrationService
           
protected  MessageDelivererRegistryService messageDelivererRegistryService
           
protected  RecipientPreferenceService recipientPreferenceService
           
 
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
UserPreferencesController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView displayDelivererConfigurationForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          displayDelivererConfigurationForm - obtain information necessary for displaying all possible Deliverer types and forward to the form
protected  Collection<String> getAllChannels()
           
 org.springframework.web.servlet.ModelAndView saveDelivererConfiguration(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          saveDelivererConfiguration - save deliverer configuration data
 void setKenIntegrationService(KENIntegrationService kis)
          Sets the KENIntegrationService
 void setMessageDelivererRegistryService(MessageDelivererRegistryService messageDelivererRegistryService)
          Set the MessageDelivererRegistryService
 void setRecipientPreferenceService(RecipientPreferenceService userPreferenceService)
          Set the RecipientPreferenceService
 
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

recipientPreferenceService

protected RecipientPreferenceService recipientPreferenceService

messageDelivererRegistryService

protected MessageDelivererRegistryService messageDelivererRegistryService

kenIntegrationService

protected KENIntegrationService kenIntegrationService
Constructor Detail

UserPreferencesController

public UserPreferencesController()
Method Detail

setRecipientPreferenceService

public void setRecipientPreferenceService(RecipientPreferenceService userPreferenceService)
Set the RecipientPreferenceService

Parameters:
recipientPreferenceService -

setMessageDelivererRegistryService

public void setMessageDelivererRegistryService(MessageDelivererRegistryService messageDelivererRegistryService)
Set the MessageDelivererRegistryService

Parameters:
messageDelivererRegistryService -

setKenIntegrationService

public void setKenIntegrationService(KENIntegrationService kis)
Sets the KENIntegrationService

Parameters:
kis - the KENIntegrationService

getAllChannels

protected Collection<String> getAllChannels()
Returns:
all channels for Rice, including the builtin KEW action list "channel"

displayDelivererConfigurationForm

public org.springframework.web.servlet.ModelAndView displayDelivererConfigurationForm(javax.servlet.http.HttpServletRequest request,
                                                                                      javax.servlet.http.HttpServletResponse response)
                                                                               throws javax.servlet.ServletException,
                                                                                      IOException
displayDelivererConfigurationForm - obtain information necessary for displaying all possible Deliverer types and forward to the form

Parameters:
request -
response -
Returns:
Throws:
javax.servlet.ServletException
IOException

saveDelivererConfiguration

public org.springframework.web.servlet.ModelAndView saveDelivererConfiguration(javax.servlet.http.HttpServletRequest request,
                                                                               javax.servlet.http.HttpServletResponse response)
                                                                        throws javax.servlet.ServletException,
                                                                               IOException
saveDelivererConfiguration - save deliverer configuration data

Parameters:
request -
response -
Returns:
Throws:
javax.servlet.ServletException
IOException


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