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

    Fields
    Modifier and Type
    Field
    Description
     
    protected static final String
     

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    uploadExport(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 file

    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, translateErrorMessage

    Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController

    addDeepLink, getContextPath, isAjaxRequest, jsonResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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)