Class OfferServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.promotion.offer.service.autoconfigure.OfferServiceAutoConfiguration
@Configuration
@EnableConfigurationProperties({OfferServiceProperties.class,OfferMessagingProperties.class})
public class OfferServiceAutoConfiguration
extends Object
- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
ConstructorDescriptionOfferServiceAutoConfiguration
(com.broadleafcommerce.common.extension.TypeFactory offerFactory, com.broadleafcommerce.rulesengine.expression.service.RuleEvaluationService ruleEvaluationService, PromotionCacheInvalidationMessagingConfiguration cacheConfig) -
Method Summary
Modifier and TypeMethodDescriptioncodeUsabilityService
(OfferCodeService<OfferCode> codeService, OfferService<Offer> offerService, CampaignService<Campaign> campaignService, SharedCodeSummaryService<SharedCodeAuditSummary> sharedCodeSummaryService, OfferSummaryService<OfferAuditSummary> offerSummaryService, OfferAuditDetailService<OfferAuditDetail> offerAuditDetailService, com.broadleafcommerce.common.extension.TypeFactory factory) fulfillmentLineItemOfferProcessor
(PotentialSavingsCalculator potentialSavingsCalculator, QualifierAndTargetMarker qualifierAndTargetMarker, OrderAndItemOfferHelper orderAndItemOfferHelper) fulfillmentOfferProcessor
(OrderAndItemOfferHelper offerHelper) <P extends Offer>
MarketingMessageOfferCandidateService<P>marketingMessageOfferCandidateService
(OfferCandidateService<P> offerCandidateService) <P extends MarketingMessage,
O extends Offer>
MarketingMessageResolver<P,O> marketingMessageRetrievalService
(MarketingMessageService<P> marketingMessageService, OfferCandidateService<O> offerCandidateService, OfferService<O> offerService, MarketingMessageOfferCandidateService<O> marketingMessageOfferCandidateService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) <P extends MarketingMessage>
MarketingMessageService<P>marketingMessageService
(MarketingMessageRepository<com.broadleafcommerce.data.tracking.core.Trackable> marketingMessageRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) offerApplicationService
(ItemOfferProcessor orderLineItemOfferProcessor, ItemOfferProcessor fulfillmentLineItemOfferProcessor, OrderOfferProcessor orderOfferProcessor, FulfillmentGroupOfferProcessor fulfillmentGroupOfferProcessor) <P extends OfferAuditDetail>
OfferAuditDetailService<P>offerAuditDetailService
(OfferAuditDetailRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerAuditDetailRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) <P extends Offer>
OfferCandidateService<P>offerCandidateService
(OfferService<P> offerService, OfferAuditDetailService<? extends OfferAuditDetail> offerAuditDetailService, OfferUserService offerUserService, CandidateOfferUtility candidateOfferUtility) com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer
offerCurrencyContextInfoCustomizer
(com.broadleafcommerce.common.extension.data.DataRouteSupporting route) offerEngineService
(OfferCandidateService offerCandidateService, OfferApplicationService offerApplicationService, OfferEngineResponseBuilder offerEngineResponseBuilder, ProrationService prorationService, OfferProcesingUtility offerContextUtility, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager entityValidatorManager) offerMaxUseStatusManager
(OfferRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerRepository, OfferCodeRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerCodeRepository, com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager manager) <P extends Offer>
OfferService<P>offerService
(OfferRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser) offerUserService
(OfferAuditDetailService<? extends OfferAuditDetail> offerAuditDetailService, CustomerFields customerFields) orderLineItemOfferProcessor
(PotentialSavingsCalculator potentialSavingsCalculator, QualifierAndTargetMarker qualifierAndTargetMarker, OrderAndItemOfferHelper orderAndItemOfferHelper) orderOfferProcessor
(OrderAndItemOfferHelper orderAndItemOfferHelper, ProrationService prorationService) sharedCodeAuditDetailService
(SharedCodeAuditSummaryRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
-
Constructor Details
-
OfferServiceAutoConfiguration
public OfferServiceAutoConfiguration(com.broadleafcommerce.common.extension.TypeFactory offerFactory, com.broadleafcommerce.rulesengine.expression.service.RuleEvaluationService ruleEvaluationService, @Nullable PromotionCacheInvalidationMessagingConfiguration cacheConfig)
-
-
Method Details
-
offerService
@Bean @ConditionalOnMissingBean public <P extends Offer> OfferService<P> offerService(OfferRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, @Nullable com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager, @Nullable com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser) -
offerAuditDetailService
@Bean @ConditionalOnMissingBean public <P extends OfferAuditDetail> OfferAuditDetailService<P> offerAuditDetailService(OfferAuditDetailRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerAuditDetailRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
offerUserService
@Bean @ConditionalOnMissingBean public OfferUserService offerUserService(OfferAuditDetailService<? extends OfferAuditDetail> offerAuditDetailService, CustomerFields customerFields) -
candidateOfferUtility
-
offerCandidateService
@Bean @ConditionalOnMissingBean public <P extends Offer> OfferCandidateService<P> offerCandidateService(OfferService<P> offerService, OfferAuditDetailService<? extends OfferAuditDetail> offerAuditDetailService, OfferUserService offerUserService, CandidateOfferUtility candidateOfferUtility) -
orderItemOfferPotentialSavingsCalculator
@Bean @ConditionalOnMissingBean public PotentialSavingsCalculator orderItemOfferPotentialSavingsCalculator() -
orderItemOfferQualifierAndTargetMarker
@Bean @ConditionalOnMissingBean public QualifierAndTargetMarker orderItemOfferQualifierAndTargetMarker() -
orderAndItemOfferHelper
-
orderLineItemOfferProcessor
@Bean @ConditionalOnMissingBean(name="orderLineItemOfferProcessor") public ItemOfferProcessor orderLineItemOfferProcessor(PotentialSavingsCalculator potentialSavingsCalculator, QualifierAndTargetMarker qualifierAndTargetMarker, OrderAndItemOfferHelper orderAndItemOfferHelper) -
fulfillmentLineItemOfferProcessor
@Bean @ConditionalOnMissingBean(name="fulfillmentLineItemOfferProcessor") public ItemOfferProcessor fulfillmentLineItemOfferProcessor(PotentialSavingsCalculator potentialSavingsCalculator, QualifierAndTargetMarker qualifierAndTargetMarker, OrderAndItemOfferHelper orderAndItemOfferHelper) -
orderOfferProcessor
@Bean @ConditionalOnMissingBean public OrderOfferProcessor orderOfferProcessor(OrderAndItemOfferHelper orderAndItemOfferHelper, ProrationService prorationService) -
fulfillmentOfferProcessor
@Bean @ConditionalOnMissingBean public FulfillmentGroupOfferProcessor fulfillmentOfferProcessor(OrderAndItemOfferHelper offerHelper) -
offerApplicationService
@Bean @ConditionalOnMissingBean public OfferApplicationService offerApplicationService(ItemOfferProcessor orderLineItemOfferProcessor, ItemOfferProcessor fulfillmentLineItemOfferProcessor, OrderOfferProcessor orderOfferProcessor, FulfillmentGroupOfferProcessor fulfillmentGroupOfferProcessor) -
prorationService
-
offerEngineService
@Bean @ConditionalOnMissingBean public OfferEngineService offerEngineService(OfferCandidateService offerCandidateService, OfferApplicationService offerApplicationService, OfferEngineResponseBuilder offerEngineResponseBuilder, ProrationService prorationService, OfferProcesingUtility offerContextUtility, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager entityValidatorManager) -
offerResponseBuilder
-
offerContextUtility
-
marketingMessageService
@Bean @ConditionalOnMissingBean public <P extends MarketingMessage> MarketingMessageService<P> marketingMessageService(MarketingMessageRepository<com.broadleafcommerce.data.tracking.core.Trackable> marketingMessageRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
marketingMessageRetrievalService
@Bean @ConditionalOnMissingBean public <P extends MarketingMessage,O extends Offer> MarketingMessageResolver<P,O> marketingMessageRetrievalService(MarketingMessageService<P> marketingMessageService, OfferCandidateService<O> offerCandidateService, OfferService<O> offerService, MarketingMessageOfferCandidateService<O> marketingMessageOfferCandidateService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
marketingMessageOfferCandidateService
@Bean @ConditionalOnMissingBean public <P extends Offer> MarketingMessageOfferCandidateService<P> marketingMessageOfferCandidateService(OfferCandidateService<P> offerCandidateService) -
offerMaxUseStatusManager
@Bean @ConditionalOnMissingBean public OfferMaxUseStatusManager offerMaxUseStatusManager(OfferRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerRepository, OfferCodeRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerCodeRepository, com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager manager) -
offerCurrencyContextInfoCustomizer
@Bean @ConditionalOnMissingBean(name="offerCurrencyContextInfoCustomizer") public com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer offerCurrencyContextInfoCustomizer(@Nullable @Qualifier("offerSource") com.broadleafcommerce.common.extension.data.DataRouteSupporting route)
-