Class CatalogBrowseServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.catalogbrowse.service.autoconfigure.CatalogBrowseServiceAutoConfiguration
@Configuration
@EnableConfigurationProperties({SSLVerificationProperties.class,ExternalProviderProperties.class})
public class CatalogBrowseServiceAutoConfiguration
extends Object
- Author:
- Nathan Moore (nathandmoore)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.common.extension.data.PackageDataRouteSupplier<com.broadleafcommerce.common.extension.data.DataRouteSupporting>browseRouteSupplier(com.broadleafcommerce.common.extension.data.DataRouteSupporting route) Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction>catalogBrowseOauth2FilterFunctionSupplier(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.com.broadleafcommerce.common.extension.data.DataRouteSupportingDefines aDataRouteSupportingfor Catalog Browse.org.springframework.web.reactive.function.client.WebClientcatalogBrowseWebClient(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties) org.springframework.web.reactive.function.client.WebClientcatalogSearchWebClient(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties)
-
Constructor Details
-
CatalogBrowseServiceAutoConfiguration
public CatalogBrowseServiceAutoConfiguration()
-
-
Method Details
-
catalogBrowseOauth2FilterFunctionSupplier
@Bean(name="oAuth2FilterFunctionSupplier") @ConditionalOnMissingBean(name="oAuth2FilterFunctionSupplier") public Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> catalogBrowseOauth2FilterFunctionSupplier(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.- Parameters:
clientRegistrations-sslVerificationProperties-- Returns:
-
catalogBrowseWebClient
@Bean @ConditionalOnMissingBean(name="catalogBrowseWebClient") public org.springframework.web.reactive.function.client.WebClient catalogBrowseWebClient(@Qualifier("oAuth2FilterFunctionSupplier") Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties) throws SSLException - Throws:
SSLException
-
catalogSearchWebClient
@Bean @ConditionalOnMissingBean(name="catalogSearchWebClient") public org.springframework.web.reactive.function.client.WebClient catalogSearchWebClient(@Qualifier("oAuth2FilterFunctionSupplier") Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties) throws SSLException - Throws:
SSLException
-
catalogBrowseSource
@Bean(name="catalogBrowseSource") @ConditionalOnMissingBean(name="catalogBrowseSource") public com.broadleafcommerce.common.extension.data.DataRouteSupporting catalogBrowseSource()Defines aDataRouteSupportingfor Catalog Browse. By default, this is detached from any persistence and is used for supporting theCustomerSegmentContextInfoCustomizerin a flexpackage configuration to ensure it is only invoked for this specific service. -
browseRouteSupplier
@Bean(name="browseRouteSupplier") @ConditionalOnMissingBean(name="browseRouteSupplier") public com.broadleafcommerce.common.extension.data.PackageDataRouteSupplier<com.broadleafcommerce.common.extension.data.DataRouteSupporting> browseRouteSupplier(@Nullable @Qualifier("catalogBrowseSource") com.broadleafcommerce.common.extension.data.DataRouteSupporting route)
-