Uses of Class
com.broadleafcommerce.promotion.campaign.domain.CodeGenerationResult
-
Packages that use CodeGenerationResult Package Description com.broadleafcommerce.promotion.campaign.service com.broadleafcommerce.promotion.campaign.web.endpoint -
-
Uses of CodeGenerationResult in com.broadleafcommerce.promotion.campaign.service
Methods in com.broadleafcommerce.promotion.campaign.service that return CodeGenerationResult Modifier and Type Method Description protected CodeGenerationResultDefaultCodeGenerationService. generateCodes(CodeGenerator generator, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest)Generates and returns a list ofCampaignCodesbased on the givenCodeGenerator.CodeGenerationResultCodeGenerationService. generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationReq, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Returns theCodeGenerationResultcontaining generated and/or existingCampaignCodesfor voucher offers based on the givenVoucherCodeGenerationRequest.CodeGenerationResultDefaultCodeGenerationService. generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationReq, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)protected CodeGenerationResultDefaultCodeGenerationService. generateOrUseAvailableCodes(VoucherCodeGenerationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Returns aCodeGenerationResultcontaining a list of generated and/or existingCampaignCodesbased on the givenVoucherCodeGenerationRequest.protected CodeGenerationResultDefaultCodeGenerationService. generateVoucherCodes(VoucherCodeGenerationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Delegates toDefaultCodeGenerationService.generateOrUseAvailableCodes(VoucherCodeGenerationRequest, ContextInfo)to get aCodeGenerationResult, then updatesgetGeneratedCodes()based onVoucherCodeGenerationRequest.getCodeGenerator().CodeGenerationResultCodeGenerationService. markInProgressAndGenerateAndGetCodes(CodeGenerator info, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest)Updates theCodeGeneratorto have a status ofCodeGenerationStatusType.IN_PROCESS, then performs the code generation.CodeGenerationResultDefaultCodeGenerationService. markInProgressAndGenerateAndGetCodes(CodeGenerator codeGenerationInfo, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest)Methods in com.broadleafcommerce.promotion.campaign.service with parameters of type CodeGenerationResult Modifier and Type Method Description protected voidDefaultCodeGenerationService. processCodeGeneratorError(CodeGenerationResult generationResult, CodeGenerator codeGenerator, int codesCreated, String errorMessage, Exception exception, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) -
Uses of CodeGenerationResult in com.broadleafcommerce.promotion.campaign.web.endpoint
Methods in com.broadleafcommerce.promotion.campaign.web.endpoint that return CodeGenerationResult Modifier and Type Method Description CodeGenerationResultCampaignEndpoint. generateCodesForVouchers(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, VoucherCodeGenerationRequest voucherCodeGenerationReq)GenerateCampaignCodesbased on the givenVoucherCodeGenerationRequest.
-