@Controller(value="blAdminAssetUploadController")
@RequestMapping(value="/{sectionKey}")
public class AdminAssetUploadController
extends AdminAbstractController
SkuImpl and CategoryImpl that have CustomPersistenceHandler
configurations that provide support for adding maps of Media objects.| Modifier and Type | Field and Description |
|---|---|
protected AdminAssetController |
assetController |
protected EntityConfiguration |
entityConfiguration |
protected StaticAssetService |
staticAssetService |
protected StaticAssetStorageService |
staticAssetStorageService |
adminNavigationService, adminRemoteSecurityService, entityFormValidator, formService, service| Constructor and Description |
|---|
AdminAssetUploadController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
chooseMediaForMapKey(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.lang.String sectionKey,
java.lang.String id,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestParams) |
java.lang.String |
upload(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
java.lang.String sectionKey) |
java.util.Map<java.lang.String,java.lang.Object> |
upload(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
java.lang.String sectionKey,
java.lang.String id) |
attachSectionSpecificInfo, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributesgetContextPath, isAjaxRequestprotected EntityConfiguration entityConfiguration
protected StaticAssetStorageService staticAssetStorageService
protected StaticAssetService staticAssetService
protected AdminAssetController assetController
@RequestMapping(value="/{id}/chooseAsset",
method=GET)
public java.lang.String chooseMediaForMapKey(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable(value="sectionKey")
java.lang.String sectionKey,
@PathVariable(value="id")
java.lang.String id,
@RequestParam
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestParams)
throws java.lang.Exception
java.lang.Exception@RequestMapping(value="/{id}/uploadAsset",
method=POST,
produces="application/json; charset=utf-8")
@ResponseBody
public java.util.Map<java.lang.String,java.lang.Object> upload(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file,
@PathVariable(value="sectionKey")
java.lang.String sectionKey,
@PathVariable(value="id")
java.lang.String id)
throws java.io.IOException
java.io.IOException@RequestMapping(value="/uploadAsset",
method=POST)
public java.lang.String upload(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file,
@PathVariable(value="sectionKey")
java.lang.String sectionKey)
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All Rights Reserved.