org.broadleafcommerce.cms.admin.web.controller
Class AdminAssetUploadController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
org.broadleafcommerce.cms.admin.web.controller.AdminAssetUploadController
@Controller(value="blAdminAssetUploadController")
@RequestMapping(value="/{sectionKey}")
public class AdminAssetUploadController- extends AdminAbstractController
AdminAssetUploadController handles uploading or selecting assets.
Used with entities like SkuImpl and CategoryImpl that have CustomPersistenceHandler
configurations that provide support for adding maps of Media objects.
- Author:
- Brian Polster (bpolster)
|
Method Summary |
String |
chooseMediaForMapKey(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id)
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityConfiguration
protected EntityConfiguration entityConfiguration
staticAssetStorageService
protected StaticAssetStorageService staticAssetStorageService
staticAssetService
protected StaticAssetService staticAssetService
assetController
protected AdminAssetController assetController
AdminAssetUploadController
public AdminAssetUploadController()
chooseMediaForMapKey
@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)
throws Exception
- Throws:
Exception
upload
@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
- Throws:
IOException
upload
@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
- Throws:
IOException
Copyright © 2013. All Rights Reserved.