Class ExternalAdminUserModificationListener
java.lang.Object
com.broadleafcommerce.adminuser.user.messaging.ExternalAdminUserModificationListener
Responsible for managing
AdminUser
record
if admin user modification is initiated from the authentication service instead of this service.-
Constructor Summary
ConstructorsConstructorDescriptionExternalAdminUserModificationListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, AdminUserService<AdminUser> adminUserService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminUserAccessLevelProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected AdminUser
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo
buildContextInfo
(User user) findAdminUser
(User user, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected AdminUserService<AdminUser>
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService
protected AdminUserAccessLevelProperties
protected com.broadleafcommerce.common.extension.TypeFactory
protected void
handleUpdate
(ExternalAdminUserModificationEvent event, AdminUser adminUser, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
listen
(org.springframework.messaging.Message<ExternalAdminUserModificationEvent> payload) protected void
processMessage
(org.springframework.messaging.Message<ExternalAdminUserModificationEvent> payload)
-
Constructor Details
-
ExternalAdminUserModificationListener
public ExternalAdminUserModificationListener(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, AdminUserService<AdminUser> adminUserService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminUserAccessLevelProperties properties)
-
-
Method Details
-
listen
@StreamListener("externalAdminUserModificationInput") public void listen(org.springframework.messaging.Message<ExternalAdminUserModificationEvent> payload) -
processMessage
@SuppressNotification("PERSISTENCE") protected void processMessage(org.springframework.messaging.Message<ExternalAdminUserModificationEvent> payload) -
handleUpdate
protected void handleUpdate(ExternalAdminUserModificationEvent event, AdminUser adminUser, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
findAdminUser
-
buildAdminUser
-
buildContextInfo
-
getIdempotentConsumptionService
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService() -
getAdminUserService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getProperties
-