org.telscenter.sail.webapp.presentation.web.controllers.student
Class RegisterStudentController

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 net.sf.sail.webapp.presentation.web.controllers.SignupController
                                  extended by org.telscenter.sail.webapp.presentation.web.controllers.student.RegisterStudentController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller
Direct Known Subclasses:
RegisterStudentForSCYController

public class RegisterStudentController
extends SignupController

Signup controller for TELS student user

Version:
$Id: RegisterStudentController.java 955 2007-08-21 22:47:13Z hiroki $
Author:
Hiroki Terashima

Field Summary
protected static String USERNAME_KEY
           
 
Fields inherited from class net.sf.sail.webapp.presentation.web.controllers.SignupController
userService
 
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
RegisterStudentController()
           
 
Method Summary
protected  Object formBackingObject(javax.servlet.http.HttpServletRequest request)
           
protected  void initBinder(javax.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder)
           
protected  void onBindAndValidate(javax.servlet.http.HttpServletRequest request, Object command, org.springframework.validation.BindException errors)
           
protected  org.springframework.web.servlet.ModelAndView onSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object command, org.springframework.validation.BindException errors)
          On submission of the signup form, a user is created and saved to the data store.
protected  Map<String,Object> referenceData(javax.servlet.http.HttpServletRequest request)
           
 void setStudentService(StudentService studentService)
           
 
Methods inherited from class net.sf.sail.webapp.presentation.web.controllers.SignupController
setUserService
 
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, 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
 

Field Detail

USERNAME_KEY

protected static final String USERNAME_KEY
See Also:
Constant Field Values
Constructor Detail

RegisterStudentController

public RegisterStudentController()
Method Detail

onSubmit

@Transactional(rollbackFor={DuplicateUsernameException.class,ObjectNotFoundException.class,PeriodNotFoundException.class})
protected org.springframework.web.servlet.ModelAndView onSubmit(javax.servlet.http.HttpServletRequest request,
                                                                                                                                                                        javax.servlet.http.HttpServletResponse response,
                                                                                                                                                                        Object command,
                                                                                                                                                                        org.springframework.validation.BindException errors)
                                                         throws Exception
On submission of the signup form, a user is created and saved to the data store.

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

formBackingObject

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

referenceData

protected Map<String,Object> referenceData(javax.servlet.http.HttpServletRequest request)
                                    throws Exception
Overrides:
referenceData in class org.springframework.web.servlet.mvc.SimpleFormController
Throws:
Exception

onBindAndValidate

protected void onBindAndValidate(javax.servlet.http.HttpServletRequest request,
                                 Object command,
                                 org.springframework.validation.BindException errors)
Overrides:
onBindAndValidate in class org.springframework.web.servlet.mvc.BaseCommandController

initBinder

protected void initBinder(javax.servlet.http.HttpServletRequest request,
                          org.springframework.web.bind.ServletRequestDataBinder binder)
                   throws Exception
Overrides:
initBinder in class org.springframework.web.servlet.mvc.BaseCommandController
Throws:
Exception

setStudentService

public void setStudentService(StudentService studentService)
Parameters:
studentService - the studentService to set


Copyright © 2012. All Rights Reserved.