Interface CampaignProvider
- All Known Implementing Classes:
ExternalCampaignProvider
Deprecated.
Deprecated as of 1.8, if using OfferService 2.0, this class is not used
Provider for interfacing with
Campaigns.- Author:
- Sunny Yu
-
Method Summary
Modifier and TypeMethodDescriptiongenerateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.GeneratesCampaignCodesfor voucher offers based on the givenVoucherCodeGenerationRequest.
-
Method Details
-
generateCodesForVouchers
CodeGenerationResult generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.GeneratesCampaignCodesfor voucher offers based on the givenVoucherCodeGenerationRequest.This method will generate and return the
CampaignCodesin the same request, therefore it's meant for small batch of code generation only.- Parameters:
voucherCodeGenerationRequest- theVoucherCodeGenerationRequestto generate the voucherCampaignCodeswithcontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- the
CodeGenerationResultcontaining the generated voucherCampaignCodesbased on the givenVoucherCodeGenerationRequest
-