org.openi.web.controller.admin
Class ManageFilesFormController

java.lang.Object
  extended byorg.springframework.context.support.ApplicationObjectSupport
      extended byorg.springframework.web.context.support.WebApplicationObjectSupport
          extended byorg.springframework.web.servlet.support.WebContentGenerator
              extended byorg.springframework.web.servlet.mvc.AbstractController
                  extended byorg.springframework.web.servlet.mvc.BaseCommandController
                      extended byorg.springframework.web.servlet.mvc.AbstractFormController
                          extended byorg.springframework.web.servlet.mvc.SimpleFormController
                              extended byorg.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

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
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST
 
Constructor Summary
ManageFilesFormController()
           
 
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
 

Constructor Detail

ManageFilesFormController

public ManageFilesFormController()
Method Detail

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 - HttpServletRequest
command - Object
errors - 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 - HttpServletRequest
response - HttpServletResponse
command - Object
errors - 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 - HttpServletRequest
response - HttpServletResponse
command - Object
errors - 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 - HttpServletRequest
response - HttpServletResponse
command - Object
errors - 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 - HttpServletRequest
response - HttpServletResponse
command - Object
errors - BindException
Returns:
ModelAndView
Throws:
java.lang.Exception