org.broadleafcommerce.openadmin.server.service.artifact.upload
Class UploadAddOrUpdateController

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.broadleafcommerce.openadmin.server.service.artifact.upload.UploadAddOrUpdateController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class UploadAddOrUpdateController
extends org.springframework.web.servlet.mvc.SimpleFormController

Created by jfischer


Field Summary
protected  DynamicEntityService dynamicEntityRemoteService
           
protected  java.lang.Long maximumFileSizeInBytes
           
 
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
UploadAddOrUpdateController()
           
 
Method Summary
protected  void bindMultipart(java.util.Map<java.lang.String,java.util.List<org.springframework.web.multipart.MultipartFile>> multipartFiles, org.springframework.beans.MutablePropertyValues mpvs)
           
protected  java.lang.String buildErrorJSON(java.lang.String errorString)
           
protected  java.lang.String buildJSON(Entity entity)
           
 DynamicEntityService getDynamicEntityRemoteService()
           
 java.lang.Long getMaximumFileSizeInBytes()
           
protected  org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void setDynamicEntityRemoteService(DynamicEntityService dynamicEntityRemoteService)
           
 void setMaximumFileSizeInBytes(java.lang.Long maximumFileSizeInBytes)
           
 
Methods inherited from class org.springframework.web.servlet.mvc.SimpleFormController
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, onSubmit, processFormSubmission, referenceData, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidation
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractFormController
currentFormObject, formBackingObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, 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, 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

dynamicEntityRemoteService

protected DynamicEntityService dynamicEntityRemoteService

maximumFileSizeInBytes

protected java.lang.Long maximumFileSizeInBytes
Constructor Detail

UploadAddOrUpdateController

public UploadAddOrUpdateController()
Method Detail

handleRequestInternal

protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
                                                                             javax.servlet.http.HttpServletResponse response)
                                                                      throws java.lang.Exception
Overrides:
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractFormController
Throws:
java.lang.Exception

buildJSON

protected java.lang.String buildJSON(Entity entity)

buildErrorJSON

protected java.lang.String buildErrorJSON(java.lang.String errorString)

bindMultipart

protected void bindMultipart(java.util.Map<java.lang.String,java.util.List<org.springframework.web.multipart.MultipartFile>> multipartFiles,
                             org.springframework.beans.MutablePropertyValues mpvs)

getDynamicEntityRemoteService

public DynamicEntityService getDynamicEntityRemoteService()

setDynamicEntityRemoteService

public void setDynamicEntityRemoteService(DynamicEntityService dynamicEntityRemoteService)

getMaximumFileSizeInBytes

public java.lang.Long getMaximumFileSizeInBytes()

setMaximumFileSizeInBytes

public void setMaximumFileSizeInBytes(java.lang.Long maximumFileSizeInBytes)


Copyright © 2011. All Rights Reserved.