@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 |
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,
org.springframework.web.multipart.MultipartFile file,
String sectionKey)
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, extractDynamicFormFields, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getBlankDynamicFieldTemplateForm, getBlankDynamicMasterFieldGroupTemplateForm, getBlankDynamicMasterFieldGroupTemplateForm, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getMaxIndex, getSectionCrumbs, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, modifyAddEntityForm, modifyEntityForm, setModelAttributes
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, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile file, @PathVariable(value="sectionKey") String sectionKey) throws IOException
request
- file
- sectionKey
- IOException
@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 © 2017. All rights reserved.