Uses of Class
com.broadleafcommerce.promotion.offer.domain.CodeGenerator
Packages that use CodeGenerator
Package
Description
-
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.domain
Methods in com.broadleafcommerce.promotion.offer.domain that return CodeGeneratorModifier and TypeMethodDescriptionVoucherCodeGenerationRequest.getCodeGenerator()TheCodeGeneratorto use to generate voucher codes.Methods in com.broadleafcommerce.promotion.offer.domain with parameters of type CodeGeneratorModifier and TypeMethodDescriptionvoidVoucherCodeGenerationRequest.setCodeGenerator(CodeGenerator codeGenerator) TheCodeGeneratorto use to generate voucher codes. -
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.service
Classes in com.broadleafcommerce.promotion.offer.service with type parameters of type CodeGeneratorModifier and TypeInterfaceDescriptioninterfaceCodeGeneratorService<P extends CodeGenerator>Base service API forcom.broadleafcommerce.promotion.campaign.domain.CodeGenerator.classDefaultCodeGeneratorService<P extends CodeGenerator>Fields in com.broadleafcommerce.promotion.offer.service with type parameters of type CodeGeneratorModifier and TypeFieldDescriptionprotected final CodeGeneratorService<CodeGenerator>DefaultCodeGenerationService.serviceMethods in com.broadleafcommerce.promotion.offer.service that return CodeGeneratorModifier and TypeMethodDescriptionprotected CodeGeneratorDefaultCodeGenerationService.updateCodesGenerated(CodeGenerator info, int codesCreated, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Methods in com.broadleafcommerce.promotion.offer.service that return types with arguments of type CodeGeneratorModifier and TypeMethodDescriptionprotected CodeGeneratorService<CodeGenerator>DefaultCodeGenerationService.getService()Methods in com.broadleafcommerce.promotion.offer.service with parameters of type CodeGeneratorModifier and TypeMethodDescriptionprotected CodeGeneratorBucketDefaultCodeGenerationService.createCodeGeneratorBucket(CodeGenerator generator, int batchSize) Provide ability to override CodeGeneratorBucketDefaultOfferCodeService.createOfferCodeEntities(CodeGenerator info, Set<String> currentCodeSet) protected CodeGenerationResultDefaultCodeGenerationService.generateCodes(CodeGenerator generator, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Generates and returns a list ofoffer codesbased on the givenCodeGenerator.protected intDefaultCodeGenerationService.getBatchSize(CodeGenerator generator) CodeGenerationService.markInProgressAndGenerateAndGetCodes(CodeGenerator info, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Updates theCodeGeneratorto have a status ofCodeGenerationStatusType.IN_PROCESS, then performs the code generation.DefaultCodeGenerationService.markInProgressAndGenerateAndGetCodes(CodeGenerator codeGenerationInfo, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) default voidCodeGenerationService.markInProgressAndGenerateCodes(CodeGenerator info, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Updates theCodeGeneratorto 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) intDefaultOfferCodeService.persistCodesAndReturnNumber(CodeGenerator info, Set<String> currentCodeSet, Class<P> payloadType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) intOfferCodeService.persistCodesAndReturnNumber(CodeGenerator info, Set<String> currentCodeSet, Class<P> payloadType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidDefaultOfferCodeService.populateCodeGeneratorDetailsToCode(CodeGenerator codeGenerator, P offerCode) protected voidDefaultCodeGenerationService.processCodeGeneratorError(CodeGenerationResult generationResult, CodeGenerator codeGenerator, int codesCreated, String errorMessage, Exception exception, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) protected CodeGeneratorDefaultCodeGenerationService.updateCodesGenerated(CodeGenerator info, int codesCreated, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Constructor parameters in com.broadleafcommerce.promotion.offer.service with type arguments of type CodeGeneratorModifierConstructorDescriptionDefaultCodeGenerationService(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
Methods in com.broadleafcommerce.promotion.offer.service.autoconfigure that return types with arguments of type CodeGeneratorModifier 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) Method parameters in com.broadleafcommerce.promotion.offer.service.autoconfigure with type arguments of type CodeGeneratorModifier 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
Fields in com.broadleafcommerce.promotion.offer.service.helper declared as CodeGeneratorMethods in com.broadleafcommerce.promotion.offer.service.helper that return CodeGeneratorMethods in com.broadleafcommerce.promotion.offer.service.helper with parameters of type CodeGeneratorModifier and TypeMethodDescriptionlongCodeFormatAvailableCharHelper.countAllowedCharsInFirstPosition(CodeGenerator generator) longCodeFormatAvailableCharHelper.countCombinationsForGenerator(CodeGenerator generator) Calculate the number of combinations for the passed in generator object.longCodeFormatAvailableCharHelper.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.Constructors in com.broadleafcommerce.promotion.offer.service.helper with parameters of type CodeGeneratorModifierConstructorDescriptionCodeGeneratorBucket(CodeFormatAvailableCharHelper helper, CodeGenerator generator, int batchSize) The -
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.service.validation
Methods in com.broadleafcommerce.promotion.offer.service.validation with parameters of type CodeGeneratorModifier and TypeMethodDescriptionvoidCodeGeneratorPreValidator.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 voidCodeGeneratorValidator.validateActiveEndDate(@NonNull CodeGenerator codeGenerator, @NonNull org.springframework.validation.Errors errors) protected booleanCodeGeneratorValidator.validateCodeFormat(@NonNull CodeGenerator codeGenerator, @NonNull org.springframework.validation.Errors errors) protected voidCodeGeneratorValidator.validateNumberOfCodesToGenerate(@NonNull CodeGenerator businessInstance, @NonNull org.springframework.validation.Errors errors) -
Uses of CodeGenerator in com.broadleafcommerce.promotion.offer.web.endpoint
Fields in com.broadleafcommerce.promotion.offer.web.endpoint with type parameters of type CodeGeneratorModifier and TypeFieldDescriptionprotected final CodeGeneratorService<CodeGenerator>CampaignEndpoint.generatorServiceprotected final CodeGeneratorService<CodeGenerator>CodeGeneratorEndpoint.serviceMethods in com.broadleafcommerce.promotion.offer.web.endpoint that return CodeGeneratorModifier 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) Methods in com.broadleafcommerce.promotion.offer.web.endpoint that return types with arguments of type CodeGeneratorModifier 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) Methods in com.broadleafcommerce.promotion.offer.web.endpoint with parameters of type CodeGeneratorModifier 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) Constructor parameters in com.broadleafcommerce.promotion.offer.web.endpoint with type arguments of type CodeGeneratorModifierConstructorDescriptionCampaignEndpoint(CampaignService<Campaign> service, OfferCodeService<OfferCode> offerCodeService, CodeGeneratorService<CodeGenerator> generatorService, CodeGenerationService generationService) CodeGeneratorEndpoint(CodeGeneratorService<CodeGenerator> service, OfferCodeService<OfferCode> codeService)