@ConditionalOnImport @ConditionalOnAdmin @Controller(value="blAdminAdvancedOfferImportController") @RequestMapping(value="/import/offercode") public class AdminAdvancedOfferImportController extends org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EXAMPLE_OFFER_IMPORT |
protected static String |
OFFER_DOCUMENTATION_URL |
protected AdvancedOfferImportService |
offerImportService |
adminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, entityConfiguration, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, LOG, service, validationService| Constructor and Description |
|---|
AdminAdvancedOfferImportController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.io.ClassPathResource |
exampleFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getImportPrompt(javax.servlet.http.HttpServletRequest request,
Long codeGroupId,
org.springframework.ui.Model model) |
Map<String,String> |
uploadImport(javax.servlet.http.HttpServletRequest request,
Long codeGroupId,
org.springframework.web.multipart.MultipartFile file,
String importSpecification) |
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, translateErrorMessageprotected static final String OFFER_DOCUMENTATION_URL
protected static final String EXAMPLE_OFFER_IMPORT
@Autowired protected AdvancedOfferImportService offerImportService
@RequestMapping(value="{codeGroupId}",
method=GET)
public String getImportPrompt(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="codeGroupId")
Long codeGroupId,
org.springframework.ui.Model model)
throws Exception
Exception@RequestMapping(value="{codeGroupId}",
method=POST,
produces="application/json")
@ResponseBody
public Map<String,String> uploadImport(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="codeGroupId")
Long codeGroupId,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file,
@RequestParam(value="importSpecification")
String importSpecification)
throws Exception
Exception@RequestMapping(value="/example-file",
method=GET)
@ResponseBody
public org.springframework.core.io.ClassPathResource exampleFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.