Class NotificationServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.notification.service.autoconfigure.NotificationServiceAutoConfiguration
@Configuration
@EnableConfigurationProperties({NotificationServiceProperties.class,SSLVerificationProperties.class,ExternalCustomerProperties.class,ExternalAdminUserProperties.class,ExternalTenantProperties.class})
public class NotificationServiceAutoConfiguration
extends Object
- Author:
- BroadleafCommerce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplier<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.defaultNotificationHandler
(ThymeleafMessageBuilder builder, MessageSender defaultEmailMessageSender) notificationAccountMemberProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCustomerProperties externalCustomerProperties) notificationAdminUserProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalAdminUserProperties externalAdminUserProperties) notificationCartProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) notificationCustomerProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCustomerProperties externalCustomerProperties) notificationTenantProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalTenantProperties externalTenantProperties) org.springframework.web.reactive.function.client.WebClient
notificationWebClient
(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties) thymeleafMessageBuilder
(NotificationServiceProperties properties, org.thymeleaf.TemplateEngine templateEngine)
-
Constructor Details
-
NotificationServiceAutoConfiguration
public NotificationServiceAutoConfiguration()
-
-
Method Details
-
thymeleafMessageBuilder
@Bean @ConditionalOnMissingBean public ThymeleafMessageBuilder thymeleafMessageBuilder(NotificationServiceProperties properties, org.thymeleaf.TemplateEngine templateEngine) -
defaultEmailMessageSender
@Bean("defaultEmailMessageSender") @ConditionalOnMissingBean(name="defaultEmailMessageSender") @ConditionalOnProperty(value="broadleaf.notification.default-notification-handler.enabled", havingValue="true", matchIfMissing=true) public MessageSender defaultEmailMessageSender() -
defaultNotificationHandler
@Bean("defaultNotificationHandler") @ConditionalOnMissingBean(name="defaultNotificationHandler") @ConditionalOnProperty(value="broadleaf.notification.default-notification-handler.enabled", havingValue="true", matchIfMissing=true) public NotificationHandler defaultNotificationHandler(ThymeleafMessageBuilder builder, @Qualifier("defaultEmailMessageSender") MessageSender defaultEmailMessageSender) -
notificationCartProvider
@Bean @ConditionalOnMissingBean public CartProvider notificationCartProvider(@Qualifier("notificationWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
notificationCustomerProvider
@Bean @ConditionalOnMissingBean public CustomerProvider notificationCustomerProvider(@Qualifier("notificationWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCustomerProperties externalCustomerProperties) -
notificationAccountMemberProvider
@Bean @ConditionalOnMissingBean public AccountMemberProvider notificationAccountMemberProvider(@Qualifier("notificationWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCustomerProperties externalCustomerProperties) -
notificationAdminUserProvider
@Bean @ConditionalOnMissingBean public AdminUserProvider notificationAdminUserProvider(@Qualifier("notificationWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalAdminUserProperties externalAdminUserProperties) -
notificationTenantProvider
@Bean @ConditionalOnMissingBean public TenantProvider notificationTenantProvider(@Qualifier("notificationWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalTenantProperties externalTenantProperties) -
notificationWebClient
@Bean @ConditionalOnMissingBean(name="notificationWebClient") public org.springframework.web.reactive.function.client.WebClient notificationWebClient(@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
-
cartOperationsOauth2FilterFunctionSupplier
@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) We'll leave this with a general name as it can (and should) be reused in a flex package.- Parameters:
clientRegistrations
-sslVerificationProperties
-- Returns:
-