Interface CampaignProvider

All Known Implementing Classes:
ExternalCampaignProvider

@Deprecated public interface CampaignProvider
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 Details

    • generateCodesForVouchers

      CodeGenerationResult generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
      Generates CampaignCodes for voucher offers based on the given VoucherCodeGenerationRequest.

      This method will generate and return the CampaignCodes in the same request, therefore it's meant for small batch of code generation only.

      Parameters:
      voucherCodeGenerationRequest - the VoucherCodeGenerationRequest to generate the voucher CampaignCodes with
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the CodeGenerationResult containing the generated voucher CampaignCodes based on the given VoucherCodeGenerationRequest