@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 org.broadleafcommerce.common.persistence.EntityConfiguration |
entityConfiguration |
protected StaticAssetService |
staticAssetService |
protected StaticAssetStorageService |
staticAssetStorageService |
adminNavigationService, adminRemoteSecurityService, entityFormValidator, formService, service| Constructor and Description |
|---|
AdminAssetUploadController() |
| Modifier and Type | Method and Description |
|---|---|
String |
chooseMediaForMapKey(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
org.springframework.util.MultiValueMap<String,String> requestParams) |
String |
upload(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
String sectionKey) |
Map<String,Object> |
upload(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
String sectionKey,
String id) |
attachSectionSpecificInfo, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributesprotected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
protected StaticAssetStorageService staticAssetStorageService
protected StaticAssetService staticAssetService
protected AdminAssetController assetController
@RequestMapping(value="/{id}/chooseAsset",
method=GET)
public String chooseMediaForMapKey(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable(value="sectionKey")
String sectionKey,
@PathVariable(value="id")
String id,
@RequestParam
org.springframework.util.MultiValueMap<String,String> requestParams)
throws Exception
Exception@RequestMapping(value="/{id}/uploadAsset",
method=POST,
produces="application/json; charset=utf-8")
@ResponseBody
public Map<String,Object> upload(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file,
@PathVariable(value="sectionKey")
String sectionKey,
@PathVariable(value="id")
String id)
throws IOException
IOException@RequestMapping(value="/uploadAsset",
method=POST)
public String upload(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file,
@PathVariable(value="sectionKey")
String sectionKey)
throws IOException
IOExceptionCopyright © 2019. All rights reserved.