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 CodeGenerationResult
DefaultCodeGenerationService. generateCodes(CodeGenerator generator, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest)
Generates and returns a list ofCampaignCodes
based on the givenCodeGenerator
.CodeGenerationResult
CodeGenerationService. generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationReq, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Returns theCodeGenerationResult
containing generated and/or existingCampaignCodes
for voucher offers based on the givenVoucherCodeGenerationRequest
.CodeGenerationResult
DefaultCodeGenerationService. generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationReq, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected CodeGenerationResult
DefaultCodeGenerationService. generateOrUseAvailableCodes(VoucherCodeGenerationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Returns aCodeGenerationResult
containing a list of generated and/or existingCampaignCodes
based on the givenVoucherCodeGenerationRequest
.protected CodeGenerationResult
DefaultCodeGenerationService. generateVoucherCodes(VoucherCodeGenerationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Delegates toDefaultCodeGenerationService.generateOrUseAvailableCodes(VoucherCodeGenerationRequest, ContextInfo)
to get aCodeGenerationResult
, then updatesgetGeneratedCodes()
based onVoucherCodeGenerationRequest.getCodeGenerator()
.CodeGenerationResult
CodeGenerationService. markInProgressAndGenerateAndGetCodes(CodeGenerator info, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest)
Updates theCodeGenerator
to have a status ofCodeGenerationStatusType.IN_PROCESS
, then performs the code generation.CodeGenerationResult
DefaultCodeGenerationService. 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 void
DefaultCodeGenerationService. 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 CodeGenerationResult
CampaignEndpoint. generateCodesForVouchers(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, VoucherCodeGenerationRequest voucherCodeGenerationReq)
GenerateCampaignCodes
based on the givenVoucherCodeGenerationRequest
.
-