Class ArrayDesignFormController
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.support.WebContentGenerator
-
- org.springframework.web.servlet.mvc.AbstractController
-
- org.springframework.web.servlet.mvc.BaseCommandController
-
- org.springframework.web.servlet.mvc.AbstractFormController
-
- org.springframework.web.servlet.mvc.SimpleFormController
-
- ubic.gemma.web.controller.BaseFormController
-
- ubic.gemma.web.controller.expression.arrayDesign.ArrayDesignFormController
-
- All Implemented Interfaces:
Aware
,ApplicationContextAware
,ServletContextAware
,Controller
public class ArrayDesignFormController extends BaseFormController
Controller for editing basic information about array designs.- Author:
- keshav
-
-
Field Summary
-
Fields inherited from class ubic.gemma.web.controller.BaseFormController
log
-
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
Constructors Constructor Description ArrayDesignFormController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
formBackingObject(javax.servlet.http.HttpServletRequest request)
Case = GET: Step 1 - return instance of command class (from database).protected ModelAndView
getCancelView(javax.servlet.http.HttpServletRequest request)
Override this to control which cancelView is used.ModelAndView
onSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object command, BindException errors)
ModelAndView
processFormSubmission(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object command, BindException errors)
Default behavior for FormControllers - redirect to the successView when the cancel button has been pressed.protected Map<String,List<?>>
referenceData(javax.servlet.http.HttpServletRequest request)
void
setArrayDesignService(ArrayDesignService arrayDesignService)
-
Methods inherited from class ubic.gemma.web.controller.BaseFormController
getMessageUtil, getText, initBinder, processErrors, saveMessage, saveMessage, saveMessage, saveMessage, saveMessage, setMailEngine, setMessageUtil
-
Methods inherited from class org.springframework.web.servlet.mvc.SimpleFormController
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, 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, initBinder, 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, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, 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
-
-
-
-
Method Detail
-
onSubmit
public ModelAndView onSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object command, BindException errors) throws Exception
- Overrides:
onSubmit
in classSimpleFormController
- Throws:
Exception
-
processFormSubmission
public ModelAndView processFormSubmission(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object command, BindException errors) throws Exception
Description copied from class:BaseFormController
Default behavior for FormControllers - redirect to the successView when the cancel button has been pressed.- Overrides:
processFormSubmission
in classBaseFormController
- Throws:
Exception
-
setArrayDesignService
public void setArrayDesignService(ArrayDesignService arrayDesignService)
-
formBackingObject
protected Object formBackingObject(javax.servlet.http.HttpServletRequest request)
Case = GET: Step 1 - return instance of command class (from database). This is not called in the POST case because the sessionForm is set to 'true' in the constructor. This means the command object was already bound to the session in the GET case.- Overrides:
formBackingObject
in classAbstractFormController
- Parameters:
request
- http request- Returns:
- Object
-
getCancelView
protected ModelAndView getCancelView(javax.servlet.http.HttpServletRequest request)
Description copied from class:BaseFormController
Override this to control which cancelView is used. The default behavior is to go to the success view if there is no cancel view defined; otherwise, get the cancel view.- Overrides:
getCancelView
in classBaseFormController
- Parameters:
request
- can be used to control which cancel view to use. (This is not used in the default implementation)- Returns:
- the view to use.
-
referenceData
protected Map<String,List<?>> referenceData(javax.servlet.http.HttpServletRequest request)
- Overrides:
referenceData
in classSimpleFormController
-
-