org.openi.web.controller.admin
Class ManageFilesFormController
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
org.openi.web.controller.admin.ManageFilesFormController
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.mvc.Controller
- public class ManageFilesFormController
- extends org.springframework.web.servlet.mvc.SimpleFormController
- Version:
- $Revision: 1.2.2.3 $ $Date: 2005/09/19 10:37:48 $
Controller to delete files.
- Author:
- Uddhab Pant
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController |
DEFAULT_COMMAND_NAME |
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator |
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST |
Method Summary |
protected java.lang.Object |
formBackingObject(javax.servlet.http.HttpServletRequest request)
This method will create the command object and set it in its initial state. |
protected org.springframework.web.servlet.ModelAndView |
handleCancel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors)
This method handles cancel action and redirects to manage file page. |
protected org.springframework.web.servlet.ModelAndView |
handleConfirm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors)
This method handles confirm action. |
protected org.springframework.web.servlet.ModelAndView |
handleDelete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors)
This method handles delete action. |
protected void |
onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
The onBindAndValidate method is called before any validation occurs for each submit. |
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)
Submit callback with all parameters. |
Methods inherited from class org.springframework.web.servlet.mvc.SimpleFormController |
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, onSubmit, onSubmit, processFormSubmission, referenceData, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidation |
Methods inherited from class org.springframework.web.servlet.mvc.AbstractFormController |
getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, handleRequestInternal, isBindOnNewForm, isFormSubmission, isSessionForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewForm |
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController |
bindAndValidate, checkCommand, createBinder, createCommand, getCommandClass, getCommandName, getMessageCodesResolver, getValidator, getValidators, initApplicationContext, initBinder, isValidateOnBinding, onBind, onBind, setCommandClass, setCommandName, setMessageCodesResolver, setValidateOnBinding, setValidator, setValidators |
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, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, isContextRequired |
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 |
ManageFilesFormController
public ManageFilesFormController()
formBackingObject
protected java.lang.Object formBackingObject(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
- This method will create the command object and set it in its initial state.
This method is called before the user is directed to the first page of the wizard
- Parameters:
request
- HttpServletRequest
- Returns:
- Object
- Throws:
java.lang.Exception
onBindAndValidate
protected void onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
throws java.lang.Exception
- The onBindAndValidate method is called before any validation occurs for each submit.
If onBindAndValidate adds errors to the BindException, the validatePage method will still be called.
- Parameters:
request
- HttpServletRequestcommand
- Objecterrors
- BindException
- Throws:
java.lang.Exception
onSubmit
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)
throws java.lang.Exception
- Submit callback with all parameters. Called in case of submit without
errors reported by the registered validator, or on every submit if no validator.
- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponsecommand
- Objecterrors
- BindException
- Returns:
- ModelAndView
- Throws:
java.lang.Exception
handleConfirm
protected org.springframework.web.servlet.ModelAndView handleConfirm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors)
throws java.lang.Exception
- This method handles confirm action.
- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponsecommand
- Objecterrors
- BindException
- Returns:
- ModelAndView
- Throws:
java.lang.Exception
handleDelete
protected org.springframework.web.servlet.ModelAndView handleDelete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors)
throws java.lang.Exception
- This method handles delete action.
- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponsecommand
- Objecterrors
- BindException
- Returns:
- ModelAndView
- Throws:
java.lang.Exception
handleCancel
protected org.springframework.web.servlet.ModelAndView handleCancel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors)
throws java.lang.Exception
- This method handles cancel action and redirects to manage file page.
- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponsecommand
- Objecterrors
- BindException
- Returns:
- ModelAndView
- Throws:
java.lang.Exception