Class BulkOperationsServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.bulkoperations.service.autoconfigure.BulkOperationsServiceAutoConfiguration
@Configuration
@EnableConfigurationProperties({SSLVerificationProperties.class,ExternalSearchProperties.class,ExternalCatalogProperties.class})
public class BulkOperationsServiceAutoConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.reactive.ClientHttpConnector
bulkOperationsClientHttpConnector
(SSLVerificationProperties sslVerificationProperties) Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction>
bulkOperationsOauth2FilterFunctionSupplier
(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector) We'll leave this with a general name as it can (and should) be reused in a flex package.com.broadleafcommerce.common.extension.data.PackageDataRouteSupplier<com.broadleafcommerce.common.extension.data.DataRouteSupporting>
bulkOperationsRouteSupplier
(com.broadleafcommerce.common.extension.data.DataRouteSupporting route) com.broadleafcommerce.common.extension.data.DataRouteSupporting
Defines aDataRouteSupporting
for Bulk Ops.org.springframework.web.reactive.function.client.WebClient
bulkOperationsWebClient
(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector)
-
Constructor Details
-
BulkOperationsServiceAutoConfiguration
public BulkOperationsServiceAutoConfiguration()
-
-
Method Details
-
bulkOperationsOauth2FilterFunctionSupplier
@Bean(name="oAuth2FilterFunctionSupplier") @ConditionalOnMissingBean(name="oAuth2FilterFunctionSupplier") public Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> bulkOperationsOauth2FilterFunctionSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, @Qualifier("bulkOperationsClientHttpConnector") Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector) We'll leave this with a general name as it can (and should) be reused in a flex package.- Parameters:
clientRegistrations
-sslVerificationProperties
-- Returns:
-
bulkOperationsWebClient
@Bean @ConditionalOnMissingBean(name="bulkOperationsWebClient") public org.springframework.web.reactive.function.client.WebClient bulkOperationsWebClient(@Qualifier("oAuth2FilterFunctionSupplier") Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Qualifier("bulkOperationsClientHttpConnector") Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector) -
bulkOperationsClientHttpConnector
@Bean @ConditionalOnMissingBean(name="bulkOperationsClientHttpConnector") public org.springframework.http.client.reactive.ClientHttpConnector bulkOperationsClientHttpConnector(SSLVerificationProperties sslVerificationProperties) throws SSLException - Throws:
SSLException
-
bulkOperationsSource
@Bean(name="bulkOperationsSource") @ConditionalOnMissingBean(name="bulkOperationsSource") public com.broadleafcommerce.common.extension.data.DataRouteSupporting bulkOperationsSource()Defines aDataRouteSupporting
for Bulk Ops. By default, this is detached from any persistence and is used for supportingContextInfoCustomizer
in a flexpackage configuration to ensure it is only invoked for this specific service. -
bulkOperationsRouteSupplier
@Bean(name="bulkOperationsRouteSupplier") @ConditionalOnMissingBean(name="bulkOperationsRouteSupplier") public com.broadleafcommerce.common.extension.data.PackageDataRouteSupplier<com.broadleafcommerce.common.extension.data.DataRouteSupporting> bulkOperationsRouteSupplier(@Nullable @Qualifier("bulkOperationsSource") com.broadleafcommerce.common.extension.data.DataRouteSupporting route) -
bulkOperationsService
-