Class AdminAdvancedOfferExportController

java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
com.broadleafcommerce.advancedoffer.admin.web.controller.AdminAdvancedOfferExportController

@ConditionalOnExport @Component("blAdminAdvancedOfferExportController") @RequestMapping("/export") public class AdminAdvancedOfferExportController 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, Long id)
    Used by the Import/Export Prompt to upload a data file and then schedule a job so that it can be processed later.
    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 upload an import 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

    • AdminAdvancedOfferExportController

      public AdminAdvancedOfferExportController()
  • Method Details

    • viewConfigurePrompt

      @RequestMapping(value="/offer-code-generation/{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 upload an import file
      Throws:
      Exception
    • uploadExport

      @RequestMapping(value="/offer-code-generation/{id}", 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="Offer Code Group Export") String friendlyName, @PathVariable("id") Long id)
      Used by the Import/Export Prompt to upload a data file and then schedule a job so that it can be processed later.