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.beans.factory.Aware, 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  ExploitProtectionService exploitProtectionService
           
protected  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(Map<String,List<org.springframework.web.multipart.MultipartFile>> multipartFiles, org.springframework.beans.MutablePropertyValues mpvs)
           
protected  String buildErrorJSON(String errorString)
           
protected  String buildJSON(Entity entity)
           
 DynamicEntityService getDynamicEntityRemoteService()
           
 ExploitProtectionService getExploitProtectionService()
           
 Long getMaximumFileSizeInBytes()
           
protected  org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void setDynamicEntityRemoteService(DynamicEntityService dynamicEntityRemoteService)
           
 void setExploitProtectionService(ExploitProtectionService exploitProtectionService)
           
 void setMaximumFileSizeInBytes(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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dynamicEntityRemoteService

protected DynamicEntityService dynamicEntityRemoteService

exploitProtectionService

protected ExploitProtectionService exploitProtectionService

maximumFileSizeInBytes

protected 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 Exception
Overrides:
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractFormController
Throws:
Exception

buildJSON

protected String buildJSON(Entity entity)
                    throws ServiceException
Throws:
ServiceException

buildErrorJSON

protected String buildErrorJSON(String errorString)
                         throws ServiceException
Throws:
ServiceException

bindMultipart

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

getDynamicEntityRemoteService

public DynamicEntityService getDynamicEntityRemoteService()

setDynamicEntityRemoteService

public void setDynamicEntityRemoteService(DynamicEntityService dynamicEntityRemoteService)

getMaximumFileSizeInBytes

public Long getMaximumFileSizeInBytes()

setMaximumFileSizeInBytes

public void setMaximumFileSizeInBytes(Long maximumFileSizeInBytes)

getExploitProtectionService

public ExploitProtectionService getExploitProtectionService()

setExploitProtectionService

public void setExploitProtectionService(ExploitProtectionService exploitProtectionService)


Copyright © 2013. All Rights Reserved.