Class UserUpdateListenerCustomer
java.lang.Object
com.broadleafcommerce.customer.messaging.UserUpdateListenerCustomer
-
Constructor Summary
ConstructorDescriptionUserUpdateListenerCustomer
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, AccountMemberService<AccountMember> accountMemberService, CustomerService<Customer> customerService) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextInfo
buildContextInfo
(User user) protected AccountMemberService<AccountMember>
protected CustomerService<Customer>
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService
void
protected void
processMessage
(org.springframework.messaging.Message<User> userMessage) protected void
updateAccountRoles
(User user, Customer customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Constructor Details
-
UserUpdateListenerCustomer
public UserUpdateListenerCustomer(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, AccountMemberService<AccountMember> accountMemberService, CustomerService<Customer> customerService)
-
-
Method Details
-
listen
@StreamListener("userUpdateCustomerInput") public void listen(org.springframework.messaging.Message<User> userMessage) -
processMessage
-
updateAccountRoles
protected void updateAccountRoles(User user, Customer customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Parameters:
user
- The User that was persisted.customer
- The Customer associated with the given User.contextInfo
- The context of the database operation.
-
buildContextInfo
-
getIdempotentConsumptionService
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService() -
getAccountMemberService
-
getCustomerService
-