@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, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, formService, mainEntityActionsExtensionManager, 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) |
org.springframework.http.ResponseEntity<Map<String,Object>> |
upload(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
String sectionKey,
String id) |
attachSectionSpecificInfo, attachSectionSpecificInfo, extractDynamicFormFields, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getMaxIndex, getSectionCrumbs, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributesaddDeepLink, getContextPath, isAjaxRequest, jsonResponseprotected 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)
public org.springframework.http.ResponseEntity<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 © 2014. All rights reserved.