@Configuration @EnableConfigurationProperties(value={ExternalCartProperties.class,ExternalCatalogProperties.class,ExternalPricingProperties.class,ExternalOfferProperties.class,ExternalCampaignProperties.class,ExternalInventoryProperties.class,CartOperationServiceProperties.class,ItemListAddToCartProperties.class,JWTTransferCartTokenEncoderProperties.class,JWTTransferCartTokenDecoderProperties.class,SSLVerificationProperties.class,CartItemMappingProperties.class}) public class CartOperationServiceAutoConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CartOperationServiceAutoConfiguration.CartCheckoutMessagingAutoConfiguration |
static class |
CartOperationServiceAutoConfiguration.ValidationConfiguration |
Constructor and Description |
---|
CartOperationServiceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> |
cartOperationsOauth2FilterFunctionSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations,
SSLVerificationProperties sslVerificationProperties)
We'll leave this with a general name as it can (and should) be reused in a flex package.
|
ResourceLockProvider |
cartOperationsResourceLockProvider(org.springframework.web.reactive.function.client.WebClient webClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
ExternalCartProperties properties) |
org.springframework.web.reactive.function.client.WebClient |
cartOperationsWebClient(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SSLVerificationProperties sslVerificationProperties) |
static com.broadleafcommerce.common.messaging.service.DefaultIdempotentMessageConsumptionService |
cartOpsIdempotentMessageConsumptionService(com.broadleafcommerce.common.messaging.service.MessageLockService messageLockService) |
static CartOpsMessageLockService |
cartOpsMessageLockService(ResourceLockProvider provider) |
<T extends com.broadleafcommerce.cart.client.domain.ItemListAccessRule> |
itemListAccessRuleProvider(org.springframework.web.reactive.function.client.WebClient webClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
ExternalCartProperties externalCartProperties) |
ItemListAddToCartService |
itemListAddToCartService(ItemListSecurityService<com.broadleafcommerce.cart.client.domain.ItemListAccessRule> securityService,
ItemListItemManagementService<com.broadleafcommerce.cart.client.domain.ItemListItem> itemManagementService,
CartOperationService cartOpService,
ItemListAddToCartProperties properties,
com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
<T extends com.broadleafcommerce.cart.client.domain.ItemListItem> |
itemListItemManagementService(ItemListProvider<com.broadleafcommerce.cart.client.domain.ItemList> itemListProvider,
ItemListItemProvider<T> itemListItemProvider,
ItemListSecurityService<com.broadleafcommerce.cart.client.domain.ItemListAccessRule> securityService,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
ItemListItemMergingService<T> mergingService) |
<T extends com.broadleafcommerce.cart.client.domain.ItemListItem> |
itemListItemProvider(org.springframework.web.reactive.function.client.WebClient webClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
ExternalCartProperties externalCartProperties) |
<T extends com.broadleafcommerce.cart.client.domain.ItemList> |
itemListManagementService(com.broadleafcommerce.common.extension.TypeFactory typeFactory,
ItemListProvider<T> listProvider,
ItemListSecurityService<com.broadleafcommerce.cart.client.domain.ItemListAccessRule> securityService,
ItemListItemManagementService<com.broadleafcommerce.cart.client.domain.ItemListItem> itemManagementService) |
<T extends com.broadleafcommerce.cart.client.domain.ItemList> |
itemListProvider(org.springframework.web.reactive.function.client.WebClient webClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
ExternalCartProperties externalCartProperties) |
<T extends com.broadleafcommerce.cart.client.domain.ItemListAccessRule> |
itemListSecurityService(com.broadleafcommerce.common.extension.TypeFactory typeFactory,
ItemListAccessRuleProvider<T> ruleProvider,
CartOperationServiceProperties properties) |
public CartOperationServiceAutoConfiguration()
@Bean @ConditionalOnMissingBean(name="cartOperationsWebClient") public org.springframework.web.reactive.function.client.WebClient cartOperationsWebClient(@Qualifier(value="oAuth2FilterFunctionSupplier") Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties) throws SSLException
SSLException
@Bean(name="oAuth2FilterFunctionSupplier") @ConditionalOnMissingBean(name="oAuth2FilterFunctionSupplier") public Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> cartOperationsOauth2FilterFunctionSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, SSLVerificationProperties sslVerificationProperties)
clientRegistrations
- sslVerificationProperties
- @Bean @ConditionalOnMissingBean public <T extends com.broadleafcommerce.cart.client.domain.ItemList> ItemListManagementService<T> itemListManagementService(com.broadleafcommerce.common.extension.TypeFactory typeFactory, ItemListProvider<T> listProvider, ItemListSecurityService<com.broadleafcommerce.cart.client.domain.ItemListAccessRule> securityService, ItemListItemManagementService<com.broadleafcommerce.cart.client.domain.ItemListItem> itemManagementService)
@Bean @ConditionalOnMissingBean public ItemListAddToCartService itemListAddToCartService(ItemListSecurityService<com.broadleafcommerce.cart.client.domain.ItemListAccessRule> securityService, ItemListItemManagementService<com.broadleafcommerce.cart.client.domain.ItemListItem> itemManagementService, CartOperationService cartOpService, ItemListAddToCartProperties properties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
@Bean @ConditionalOnMissingBean public <T extends com.broadleafcommerce.cart.client.domain.ItemList> ItemListProvider<T> itemListProvider(@Qualifier(value="cartOperationsWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCartProperties externalCartProperties)
@Bean @ConditionalOnMissingBean public <T extends com.broadleafcommerce.cart.client.domain.ItemListItem> ItemListItemManagementService<T> itemListItemManagementService(ItemListProvider<com.broadleafcommerce.cart.client.domain.ItemList> itemListProvider, ItemListItemProvider<T> itemListItemProvider, ItemListSecurityService<com.broadleafcommerce.cart.client.domain.ItemListAccessRule> securityService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ItemListItemMergingService<T> mergingService)
@Bean @ConditionalOnMissingBean public <T extends com.broadleafcommerce.cart.client.domain.ItemListItem> ItemListItemProvider<T> itemListItemProvider(@Qualifier(value="cartOperationsWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCartProperties externalCartProperties)
@Bean @ConditionalOnMissingBean public <T extends com.broadleafcommerce.cart.client.domain.ItemListAccessRule> ItemListAccessRuleProvider<T> itemListAccessRuleProvider(@Qualifier(value="cartOperationsWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCartProperties externalCartProperties)
@Bean @ConditionalOnMissingBean public ResourceLockProvider cartOperationsResourceLockProvider(@Qualifier(value="cartOperationsWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCartProperties properties)
@Bean @ConditionalOnMissingBean public <T extends com.broadleafcommerce.cart.client.domain.ItemListAccessRule> ItemListSecurityService<T> itemListSecurityService(com.broadleafcommerce.common.extension.TypeFactory typeFactory, ItemListAccessRuleProvider<T> ruleProvider, CartOperationServiceProperties properties)
public static CartOpsMessageLockService cartOpsMessageLockService(ResourceLockProvider provider)
public static com.broadleafcommerce.common.messaging.service.DefaultIdempotentMessageConsumptionService cartOpsIdempotentMessageConsumptionService(com.broadleafcommerce.common.messaging.service.MessageLockService messageLockService)
Copyright © 2021. All rights reserved.