Class AdminCustomerSegmentImportController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
com.broadleafcommerce.customersegment.admin.web.controller.AdminCustomerSegmentImportController
@ConditionalOnImport
@Controller("blAdminCustomerSegmentImportController")
@RequestMapping("/import/customer-segment")
public class AdminCustomerSegmentImportController
extends org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
Created by Brandon Hines on 2/20/17.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected com.broadleafcommerce.dataimport.service.ImportServiceFields inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
adminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, DEFAULT_CONTAINER_VIEW, entityConfiguration, entityFormValidator, eps, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, LOG, MODAL_CONTAINER_VIEW, service, validationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.ClassPathResourceexampleAllFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) org.springframework.core.io.ClassPathResourceexampleFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) uploadGroupImport(jakarta.servlet.http.HttpServletRequest request, Long id, org.springframework.web.multipart.MultipartFile file, String importSpecification) uploadImport(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.multipart.MultipartFile file, String importSpecification) viewImportAllConfigurePrompt(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) Shows the form that the allows the user to upload an import fileviewImportConfigurePrompt(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) Methods inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
attachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, declareForceUseAdditionStatusFilter, 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, translateErrorMessageMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
CUSTOMER_SEGMENT_DOCUMENTATION_URL
- See Also:
-
EXAMPLE_CUSTOMER_SEGMENT_IMPORT
- See Also:
-
EXAMPLE_ALL_CUSTOMER_SEGMENT_IMPORT
- See Also:
-
importService
protected com.broadleafcommerce.dataimport.service.ImportService importService
-
-
Constructor Details
-
AdminCustomerSegmentImportController
public AdminCustomerSegmentImportController()
-
-
Method Details
-
viewImportAllConfigurePrompt
@RequestMapping(value="", method=GET) public String viewImportAllConfigurePrompt(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) throws Exception Shows the form that the allows the user to upload an import file- Throws:
Exception
-
viewImportConfigurePrompt
@RequestMapping(value="/{id}", method=GET) public String viewImportConfigurePrompt(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) throws Exception - Throws:
Exception
-
uploadImport
@RequestMapping(value="", method=POST, produces="application/json") @ResponseBody public Map<String,String> uploadImport(jakarta.servlet.http.HttpServletRequest request, @RequestParam("file") org.springframework.web.multipart.MultipartFile file, @RequestParam("importSpecification") String importSpecification) throws Exception - Throws:
Exception
-
uploadGroupImport
@RequestMapping(value="/{id}", method=POST, produces="application/json") @ResponseBody public Map<String,String> uploadGroupImport(jakarta.servlet.http.HttpServletRequest request, @PathVariable(name="id") Long id, @RequestParam("file") org.springframework.web.multipart.MultipartFile file, @RequestParam("importSpecification") String importSpecification) throws Exception - Throws:
Exception
-
exampleAllFile
@RequestMapping(value="/example-all-import-file", method=GET) @ResponseBody public org.springframework.core.io.ClassPathResource exampleAllFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
exampleFile
@RequestMapping(value="/example-import-file", method=GET) @ResponseBody public org.springframework.core.io.ClassPathResource exampleFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-