@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, customCriteriaService, DEFAULT_CONTAINER_VIEW, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, LOG, MODAL_CONTAINER_VIEW, service, validationService
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 |
chooseMediaForMapKey(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String addlSectionKey,
String id,
org.springframework.util.MultiValueMap<String,String> requestParams) |
String |
upload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
org.springframework.web.multipart.MultipartFile file,
org.springframework.util.MultiValueMap<String,String> requestParams)
Used by the Asset list view to upload an asset and then immediately show the
edit form for that record.
|
org.springframework.http.ResponseEntity<Map<String,Object>> |
upload(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
String sectionKey,
String id) |
org.springframework.http.ResponseEntity<Map<String,Object>> |
upload(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
String sectionKey,
String addlSectionKey,
String id) |
attachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getFirstId, getLastId, getLowerCount, getMaxIndex, getMaxResults, getPageSize, getPersistencePackageRequest, getSectionCrumbs, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, getUpperCount, modifyAddEntityForm, modifyCriteria, modifyEntityForm, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessage
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
protected 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") 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, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile file, @RequestParam org.springframework.util.MultiValueMap<String,String> requestParams) throws Exception
request
- file
- sectionKey
- IOException
Exception
@RequestMapping(value="/{addlSectionKey}/{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="addlSectionKey") String addlSectionKey, @PathVariable(value="id") String id, @RequestParam org.springframework.util.MultiValueMap<String,String> requestParams) throws Exception
Exception
@RequestMapping(value="/{addlSectionKey}/{id}/uploadAsset", method=POST, produces="application/json") 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="addlSectionKey") String addlSectionKey, @PathVariable(value="id") String id) throws IOException
IOException
Copyright © 2020. All rights reserved.