@Controller(value="blAdminOfferPriceDataImportController")
@RequestMapping(value="/import/offer-price-data")
public class AdminOfferPriceDataImportController
extends org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
Modifier and Type | Field and Description |
---|---|
protected ImportService |
importService |
protected static String |
OFFER_PRICE_DATA_DOCUMENTATION_URL |
adminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, DEFAULT_CONTAINER_VIEW, entityConfiguration, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, LOG, MODAL_CONTAINER_VIEW, service, validationService
Constructor and Description |
---|
AdminOfferPriceDataImportController(ImportService importService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.core.io.ClassPathResource |
exampleFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Map<String,String> |
uploadImport(javax.servlet.http.HttpServletRequest request,
Long id,
org.springframework.web.multipart.MultipartFile file,
Long sandboxId,
String importSpecification) |
String |
viewImportConfigurePrompt(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
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
protected static final String OFFER_PRICE_DATA_DOCUMENTATION_URL
protected final ImportService importService
public AdminOfferPriceDataImportController(ImportService importService)
@RequestMapping(value="/{id}", method=GET) public String viewImportConfigurePrompt(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) throws Exception
Exception
@RequestMapping(value="/{id}", method=POST, produces="application/json") @ResponseBody public Map<String,String> uploadImport(javax.servlet.http.HttpServletRequest request, @PathVariable(name="id") Long id, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="sandboxId",required=false) Long sandboxId, @RequestParam(value="importSpecification") String importSpecification) throws Exception
Exception
@RequestMapping(value="/example-import-file", method=GET) @ResponseBody public org.springframework.core.io.ClassPathResource exampleFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
Copyright © 2020. All rights reserved.