Uses of Class
com.broadleafcommerce.promotion.offer.domain.CodeGenerator
Package
Description
-
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.domain
Modifier and TypeMethodDescriptionVoucherCodeGenerationRequest.getCodeGenerator()
TheCodeGenerator
to use to generate voucher codes.Modifier and TypeMethodDescriptionvoid
VoucherCodeGenerationRequest.setCodeGenerator
(CodeGenerator codeGenerator) TheCodeGenerator
to use to generate voucher codes. -
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.service
Modifier and TypeInterfaceDescriptioninterface
CodeGeneratorService<P extends CodeGenerator>
Base service API forcom.broadleafcommerce.promotion.campaign.domain.CodeGenerator
.class
DefaultCodeGeneratorService<P extends CodeGenerator>
Modifier and TypeFieldDescriptionprotected final CodeGeneratorService<CodeGenerator>
DefaultCodeGenerationService.service
Modifier and TypeMethodDescriptionprotected CodeGenerator
DefaultCodeGenerationService.updateCodesGenerated
(CodeGenerator info, int codesCreated, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Modifier and TypeMethodDescriptionprotected CodeGeneratorService<CodeGenerator>
DefaultCodeGenerationService.getService()
Modifier and TypeMethodDescriptionprotected CodeGeneratorBucket
DefaultCodeGenerationService.createCodeGeneratorBucket
(CodeGenerator generator, int batchSize) Provide ability to override CodeGeneratorBucketDefaultOfferCodeService.createOfferCodeEntities
(CodeGenerator info, Set<String> currentCodeSet) protected CodeGenerationResult
DefaultCodeGenerationService.generateCodes
(CodeGenerator generator, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Generates and returns a list ofoffer codes
based on the givenCodeGenerator
.protected int
DefaultCodeGenerationService.getBatchSize
(CodeGenerator generator) 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.DefaultCodeGenerationService.markInProgressAndGenerateAndGetCodes
(CodeGenerator codeGenerationInfo, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) default void
CodeGenerationService.markInProgressAndGenerateCodes
(CodeGenerator info, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Updates theCodeGenerator
to have a status ofCodeGenerationStatusType.IN_PROCESS
, then performs the code generation.DefaultOfferCodeService.persistCodesAndReturn
(CodeGenerator info, Set<String> currentCodeSet, Class<P> payloadType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCodeService.persistCodesAndReturn
(CodeGenerator info, Set<String> currentCodeSet, Class<P> payloadType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) int
DefaultOfferCodeService.persistCodesAndReturnNumber
(CodeGenerator info, Set<String> currentCodeSet, Class<P> payloadType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) int
OfferCodeService.persistCodesAndReturnNumber
(CodeGenerator info, Set<String> currentCodeSet, Class<P> payloadType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultOfferCodeService.populateCodeGeneratorDetailsToCode
(CodeGenerator codeGenerator, P offerCode) protected void
DefaultCodeGenerationService.processCodeGeneratorError
(CodeGenerationResult generationResult, CodeGenerator codeGenerator, int codesCreated, String errorMessage, Exception exception, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) protected CodeGenerator
DefaultCodeGenerationService.updateCodesGenerated
(CodeGenerator info, int codesCreated, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) ModifierConstructorDescriptionDefaultCodeGenerationService
(com.broadleafcommerce.common.extension.TypeFactory campaignFactory, CodeFormatAvailableCharHelper availableCharHelper, CodeGeneratorService<CodeGenerator> service, OfferCodeService<OfferCode> offerCodeService, CampaignService<Campaign> campaignService) -
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.service.autoconfigure
Modifier and TypeMethodDescriptionCampaignServiceAutoConfiguration.codeGeneratorService
(CodeGeneratorRepository<com.broadleafcommerce.data.tracking.core.Trackable> codeGeneratorRepository, CampaignRepository<com.broadleafcommerce.data.tracking.core.Trackable> campaignRepository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager entityValidatorManager) Modifier and TypeMethodDescriptionCampaignServiceAutoConfiguration.codeGenerationService
(com.broadleafcommerce.common.extension.TypeFactory factory, CodeGeneratorService<CodeGenerator> codeGeneratorService, OfferCodeService<OfferCode> codeService, CampaignService<Campaign> campaignService) -
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.service.helper
Modifier and TypeMethodDescriptionlong
CodeFormatAvailableCharHelper.countAllowedCharsInFirstPosition
(CodeGenerator generator) long
CodeFormatAvailableCharHelper.countCombinationsForGenerator
(CodeGenerator generator) Calculate the number of combinations for the passed in generator object.long
CodeFormatAvailableCharHelper.countCombinationsForGenerator
(CodeGenerator generator, int skipCount, boolean firstOnly) Calculate the number of combinations for the passed in generator object.CodeFormatAvailableCharHelper.getAvailableCharactersForFormatElement
(CodeGenerator generator, char formatElement) CodeFormatAvailableCharHelper.resolveCharMap
(CodeGenerator generator) If the generator has a custom alphabet then use that for the charMap, otherwise, use the default charMap configured in the helper.ModifierConstructorDescriptionCodeGeneratorBucket
(CodeFormatAvailableCharHelper helper, CodeGenerator generator, int batchSize) The -
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.service.validation
Modifier and TypeMethodDescriptionvoid
CodeGeneratorPreValidator.prevalidateForCreate
(CodeGenerator codeGenerator, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Validates that the input provided by an API caller before any initialization logic is performedprotected void
CodeGeneratorValidator.validateActiveEndDate
(@NonNull CodeGenerator codeGenerator, @NonNull org.springframework.validation.Errors errors) protected boolean
CodeGeneratorValidator.validateCodeFormat
(@NonNull CodeGenerator codeGenerator, @NonNull org.springframework.validation.Errors errors) protected void
CodeGeneratorValidator.validateNumberOfCodesToGenerate
(@NonNull CodeGenerator businessInstance, @NonNull org.springframework.validation.Errors errors) -
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.web.endpoint
Modifier and TypeFieldDescriptionprotected final CodeGeneratorService<CodeGenerator>
CampaignEndpoint.generatorService
protected final CodeGeneratorService<CodeGenerator>
CodeGeneratorEndpoint.service
Modifier and TypeMethodDescriptionCodeGeneratorEndpoint.createCodeGenerator
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, CodeGenerator req) CampaignEndpoint.generateCodes
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, CodeGenerator req) CampaignEndpoint.generateCodeStatus
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, String generatorId) CodeGeneratorEndpoint.readCodeGeneratorById
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String campaignId) CodeGeneratorEndpoint.replaceCodeGenerator
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, CodeGenerator req) CodeGeneratorEndpoint.updateCodeGenerator
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, CodeGenerator req) Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<CodeGenerator>
CampaignEndpoint.generateCodesStatus
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, org.springframework.data.domain.Pageable page) org.springframework.data.domain.Page<CodeGenerator>
CodeGeneratorEndpoint.readOfferCodeByCampaign
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String campaignId, org.springframework.data.domain.Pageable page) Modifier and TypeMethodDescriptionCodeGeneratorEndpoint.createCodeGenerator
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, CodeGenerator req) CampaignEndpoint.generateCodes
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, CodeGenerator req) CodeGeneratorEndpoint.replaceCodeGenerator
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, CodeGenerator req) CodeGeneratorEndpoint.updateCodeGenerator
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, CodeGenerator req) ModifierConstructorDescriptionCampaignEndpoint
(CampaignService<Campaign> service, OfferCodeService<OfferCode> offerCodeService, CodeGeneratorService<CodeGenerator> generatorService, CodeGenerationService generationService) CodeGeneratorEndpoint
(CodeGeneratorService<CodeGenerator> service, OfferCodeService<OfferCode> codeService)