Class TabbyServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.tabby.autoconfigure.TabbyServiceAutoConfiguration
@Configuration
@EnableConfigurationProperties({TabbyConfigurationProperties.class,DefaultTabbyGatewayConfiguration.class,ExternalTabbyProviderProperties.class,ExternalOrderOperationProviderProperties.class,SSLVerificationProperties.class})
public class TabbyServiceAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.reactive.ClientHttpConnector
tabbyClientHttpConnector
(SSLVerificationProperties sslVerificationProperties) tabbyCustomerOrderInfoProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ExternalOrderOperationProviderProperties properties, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) tabbyExternalCallService
(com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, TabbyProvider tabbyProvider, ExternalTabbyProviderProperties properties, TabbyConfigurationProperties tabbyConfigurationProperties, TabbyResponseService tabbyResponseService, TabbyRequestService tabbyRequestService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) org.springframework.web.reactive.function.client.WebClient
tabbyGatewayWebClient
(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) Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction>
tabbyOauth2FilterFunctionSupplier
(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.paymentgateway.util.PaymentCallbackSecurityTokenUtil
tabbyPaymentCallbackSecurityTokenUtil
(org.springframework.security.crypto.password.PasswordEncoder paymentCallbackTokenEncoder, com.broadleafcommerce.paymentgateway.properties.PaymentCallbackTokenProperties paymentCallbackTokenProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) tabbyPaymentModificationService
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, CustomerOrderInfoProvider<CustomerOrderInfo> tabbyCustomerOrderInfoProvider, ExternalOrderOperationProviderProperties properties, TabbyConfigurationProperties configurationProperties, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory) tabbyPaymentValidator
(TabbyConfigurationProperties configurationProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) tabbyProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ExternalTabbyProviderProperties properties, com.broadleafcommerce.common.extension.TypeFactory typeFactory, TabbyConfigurationProperties tabbyConfigurationProperties) tabbyRequestService
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, TabbyConfigurationProperties tabbyConfigurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) tabbyResponseService
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) tabbyTransactionLookupService
(TabbyProvider tabbyProvider, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, TabbyConfigurationProperties configurationProperties) tabbyTransactionService
(TabbyExternalCallService tabbyExternalCallService, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, TabbyProvider tabbyProvider, com.broadleafcommerce.common.extension.TypeFactory typeFactory) tabbyWebhookHandler
(TabbyConfigurationProperties configurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Constructor Details
-
TabbyServiceAutoConfiguration
public TabbyServiceAutoConfiguration()
-
-
Method Details
-
tabbyPaymentValidator
@Bean @ConditionalOnMissingBean public TabbyPaymentValidator tabbyPaymentValidator(TabbyConfigurationProperties configurationProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
tabbyTransactionService
@Bean @ConditionalOnMissingBean public TabbyTransactionService tabbyTransactionService(TabbyExternalCallService tabbyExternalCallService, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, TabbyProvider tabbyProvider, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
tabbyRollbackService
@Bean @ConditionalOnMissingBean public TabbyRollbackService tabbyRollbackService(TabbyTransactionService service) -
tabbyOauth2FilterFunctionSupplier
@Bean(name="oAuth2FilterFunctionSupplier") @ConditionalOnMissingBean(name="oAuth2FilterFunctionSupplier") public Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> tabbyOauth2FilterFunctionSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, @Qualifier("tabbyClientHttpConnector") 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. TODO: possibly move this to a broadleaf oauth2 client dependency https://github.com/BroadleafCommerce/MicroPM/issues/1924- Parameters:
clientRegistrations
-clientHttpConnector
-- Returns:
-
tabbyGatewayWebClient
@Bean @ConditionalOnMissingBean(name="tabbyGatewayWebClient") public org.springframework.web.reactive.function.client.WebClient tabbyGatewayWebClient(@Qualifier("oAuth2FilterFunctionSupplier") Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Qualifier("tabbyClientHttpConnector") Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector) -
tabbyClientHttpConnector
@Bean @ConditionalOnMissingBean(name="tabbyClientHttpConnector") public org.springframework.http.client.reactive.ClientHttpConnector tabbyClientHttpConnector(SSLVerificationProperties sslVerificationProperties) throws SSLException - Throws:
SSLException
-
tabbyProvider
@Bean @ConditionalOnMissingBean public TabbyProvider tabbyProvider(@Qualifier("tabbyGatewayWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ExternalTabbyProviderProperties properties, com.broadleafcommerce.common.extension.TypeFactory typeFactory, TabbyConfigurationProperties tabbyConfigurationProperties) -
tabbyRequestService
@Bean @ConditionalOnMissingBean public TabbyRequestService tabbyRequestService(com.fasterxml.jackson.databind.ObjectMapper objectMapper, TabbyConfigurationProperties tabbyConfigurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
tabbyResponseService
@Bean @ConditionalOnMissingBean public TabbyResponseService tabbyResponseService(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
tabbyExternalCallService
@Bean @ConditionalOnMissingBean public TabbyExternalCallService tabbyExternalCallService(com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, TabbyProvider tabbyProvider, ExternalTabbyProviderProperties properties, TabbyConfigurationProperties tabbyConfigurationProperties, TabbyResponseService tabbyResponseService, TabbyRequestService tabbyRequestService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
tabbyTransactionLookupService
@Bean @ConditionalOnMissingBean public TabbyTransactionLookupService tabbyTransactionLookupService(TabbyProvider tabbyProvider, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, TabbyConfigurationProperties configurationProperties) -
tabbyWebhookHandler
@Bean @ConditionalOnMissingBean public TabbyWebhookHandler tabbyWebhookHandler(TabbyConfigurationProperties configurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
tabbyCustomerOrderInfoProvider
@Bean @ConditionalOnMissingBean public CustomerOrderInfoProvider<CustomerOrderInfo> tabbyCustomerOrderInfoProvider(@Qualifier("tabbyGatewayWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ExternalOrderOperationProviderProperties properties, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) -
tabbyPaymentModificationService
@Bean @ConditionalOnMissingBean public TabbyPaymentModificationService tabbyPaymentModificationService(com.fasterxml.jackson.databind.ObjectMapper objectMapper, CustomerOrderInfoProvider<CustomerOrderInfo> tabbyCustomerOrderInfoProvider, ExternalOrderOperationProviderProperties properties, TabbyConfigurationProperties configurationProperties, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
tabbyPaymentCallbackSecurityTokenUtil
@Bean @ConditionalOnMissingBean(name="tabbyPaymentCallbackSecurityTokenUtil") @ConditionalOnProperty(value="broadleaf.payment.legacy-external-payment-pattern-enabled", havingValue="false", matchIfMissing=true) public com.broadleafcommerce.paymentgateway.util.PaymentCallbackSecurityTokenUtil tabbyPaymentCallbackSecurityTokenUtil(org.springframework.security.crypto.password.PasswordEncoder paymentCallbackTokenEncoder, com.broadleafcommerce.paymentgateway.properties.PaymentCallbackTokenProperties paymentCallbackTokenProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-