@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, entityFormValidator, 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, extractDynamicFormFields, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributes
getContextPath, isAjaxRequest
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) 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
IOException
Copyright © 2014. All rights reserved.