Class AdminCustomerSegmentExportController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
com.broadleafcommerce.customersegment.admin.web.controller.AdminCustomerSegmentExportController
@ConditionalOnExport
@Controller("blAdminCustomerSegmentExportController")
@RequestMapping("/export")
public class AdminCustomerSegmentExportController
extends org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CustomerSegmentExportSchedulerprotected static final StringFields 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, MODAL_CONTAINER_VIEW, service, validationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionuploadExport(jakarta.servlet.http.HttpServletRequest request, Boolean shareable, String exportEncoding, String exportType, String friendlyName) Used by the Export Prompt to schedule a job so that the export can be processed later.uploadGroupExport(jakarta.servlet.http.HttpServletRequest request, Long id, Boolean shareable, String exportEncoding, String exportType, String friendlyName) viewConfigurePrompt(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) Shows the form that the allows the user to create an export fileMethods 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
-
DEFAULT_FRIENDLY_NAME
- See Also:
-
customerSegmentExportScheduler
-
-
Constructor Details
-
AdminCustomerSegmentExportController
public AdminCustomerSegmentExportController()
-
-
Method Details
-
viewConfigurePrompt
@RequestMapping(value={"/customer-segment","/customer-segment/{id}"}, method=GET) public String viewConfigurePrompt(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 create an export file- Throws:
Exception
-
uploadExport
@RequestMapping(value="/customer-segment", method=POST, produces="application/json") @ResponseBody public Map<String,String> uploadExport(jakarta.servlet.http.HttpServletRequest request, @RequestParam(value="shareable",defaultValue="false") Boolean shareable, @RequestParam("exportEncoding") String exportEncoding, @RequestParam("exportType") String exportType, @RequestParam(value="friendlyName",defaultValue="Customer Segment Export") String friendlyName) Used by the Export Prompt to schedule a job so that the export can be processed later. -
uploadGroupExport
@RequestMapping(value="/customer-segment/{id}", method=POST, produces="application/json") @ResponseBody public Map<String,String> uploadGroupExport(jakarta.servlet.http.HttpServletRequest request, @PathVariable(name="id") Long id, @RequestParam(value="shareable",defaultValue="false") Boolean shareable, @RequestParam("exportEncoding") String exportEncoding, @RequestParam("exportType") String exportType, @RequestParam(value="friendlyName",defaultValue="Customer Segment Export") String friendlyName)
-