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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected AdvancedOfferExportSchedulerFields 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, 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 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:
-
scheduler
-
-
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.
-