Class UserUpdateListenerCustomer
java.lang.Object
com.broadleafcommerce.customer.messaging.UserUpdateListenerCustomer
-
Constructor Summary
ConstructorsConstructorDescriptionUserUpdateListenerCustomer(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, AccountMemberService<AccountMember> accountMemberService, CustomerService<Customer> customerService) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextInfobuildContextInfo(User user) protected AccountMemberService<AccountMember>protected CustomerService<Customer>protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionServicevoidprotected voidprocessMessage(org.springframework.messaging.Message<User> userMessage) protected voidupdateAccountRoles(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
-