org.jasig.cas.services.web
Class RegisteredServiceSimpleFormController

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.BaseCommandController
                      extended by org.springframework.web.servlet.mvc.AbstractFormController
                          extended by org.springframework.web.servlet.mvc.SimpleFormController
                              extended by org.jasig.cas.services.web.RegisteredServiceSimpleFormController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public final class RegisteredServiceSimpleFormController
extends org.springframework.web.servlet.mvc.SimpleFormController

SimpleFormController to handle adding/editing of RegisteredServices.

Since:
3.1
Version:
$Revision: 47522 $ $Date: 2009-12-14 23:33:36 -0500 (Mon, 14 Dec 2009) $
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
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
RegisteredServiceSimpleFormController(ServicesManager servicesManager, org.jasig.services.persondir.IPersonAttributeDao attributeRepository)
           
 
Method Summary
protected  java.lang.Object formBackingObject(javax.servlet.http.HttpServletRequest request)
           
protected  void initBinder(javax.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder)
          Sets the require fields and the disallowed fields from the HttpServletRequest.
protected  org.springframework.web.servlet.ModelAndView onSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object command, org.springframework.validation.BindException errors)
          Adds the service to the ServiceRegistry via the ServiceRegistryManager.
protected  java.util.Map referenceData(javax.servlet.http.HttpServletRequest request)
          Returns the attributes, page title, and command name.
 
Methods inherited from class org.springframework.web.servlet.mvc.SimpleFormController
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, processFormSubmission, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidation
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractFormController
currentFormObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, handleRequestInternal, isBindOnNewForm, isFormSubmission, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewForm
 
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, getWebBindingInitializer, initApplicationContext, isValidateOnBinding, onBind, onBind, onBindAndValidate, prepareBinder, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, setWebBindingInitializer, suppressBinding, suppressValidation, suppressValidation, useDirectFieldAccess
 
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, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisteredServiceSimpleFormController

public RegisteredServiceSimpleFormController(ServicesManager servicesManager,
                                             org.jasig.services.persondir.IPersonAttributeDao attributeRepository)
Method Detail

initBinder

protected final void initBinder(javax.servlet.http.HttpServletRequest request,
                                org.springframework.web.bind.ServletRequestDataBinder binder)
                         throws java.lang.Exception
Sets the require fields and the disallowed fields from the HttpServletRequest.

Overrides:
initBinder in class org.springframework.web.servlet.mvc.BaseCommandController
Throws:
java.lang.Exception
See Also:
BaseCommandController.initBinder(javax.servlet.http.HttpServletRequest, org.springframework.web.bind.ServletRequestDataBinder)

onSubmit

protected final org.springframework.web.servlet.ModelAndView onSubmit(javax.servlet.http.HttpServletRequest request,
                                                                      javax.servlet.http.HttpServletResponse response,
                                                                      java.lang.Object command,
                                                                      org.springframework.validation.BindException errors)
                                                               throws java.lang.Exception
Adds the service to the ServiceRegistry via the ServiceRegistryManager.

Overrides:
onSubmit in class org.springframework.web.servlet.mvc.SimpleFormController
Throws:
java.lang.Exception
See Also:
SimpleFormController.onSubmit(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, org.springframework.validation.BindException)

formBackingObject

protected java.lang.Object formBackingObject(javax.servlet.http.HttpServletRequest request)
                                      throws java.lang.Exception
Overrides:
formBackingObject in class org.springframework.web.servlet.mvc.AbstractFormController
Throws:
java.lang.Exception

referenceData

protected final java.util.Map referenceData(javax.servlet.http.HttpServletRequest request)
                                     throws java.lang.Exception
Returns the attributes, page title, and command name.

Overrides:
referenceData in class org.springframework.web.servlet.mvc.SimpleFormController
Throws:
java.lang.Exception
See Also:
SimpleFormController.referenceData(javax.servlet.http.HttpServletRequest)


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.