Class UserUpdateListenerCustomer
- java.lang.Object
-
- com.broadleafcommerce.customer.messaging.UserUpdateListenerCustomer
-
@DataRouteByKey("customer") public class UserUpdateListenerCustomer extends Object
-
-
Constructor Summary
Constructors Constructor Description UserUpdateListenerCustomer(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, AccountMemberService<AccountMember> accountMemberService, CustomerService<Customer> customerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.broadleafcommerce.data.tracking.core.context.ContextInfobuildContextInfo(User user)protected AccountMemberService<AccountMember>getAccountMemberService()protected CustomerService<Customer>getCustomerService()protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionServicegetIdempotentConsumptionService()voidlisten(org.springframework.messaging.Message<User> userMessage)protected voidprocessMessage(org.springframework.messaging.Message<User> userMessage)protected voidupdateAccountRoles(User user, Customer customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
-
Constructor Detail
-
UserUpdateListenerCustomer
public UserUpdateListenerCustomer(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, AccountMemberService<AccountMember> accountMemberService, CustomerService<Customer> customerService)
-
-
Method Detail
-
listen
@StreamListener("userUpdateCustomerInput") public void listen(org.springframework.messaging.Message<User> userMessage)
-
processMessage
protected void processMessage(org.springframework.messaging.Message<User> userMessage)
-
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
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildContextInfo(User user)
-
getIdempotentConsumptionService
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService()
-
getAccountMemberService
protected AccountMemberService<AccountMember> getAccountMemberService()
-
getCustomerService
protected CustomerService<Customer> getCustomerService()
-
-