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 AdminUserprotected com.broadleafcommerce.data.tracking.core.context.ContextInfobuildContextInfo(User user) findAdminUser(User user, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected AdminUserService<AdminUser>protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionServiceprotected AdminUserAccessLevelPropertiesprotected com.broadleafcommerce.common.extension.TypeFactoryprotected voidhandleUpdate(ExternalAdminUserModificationEvent event, AdminUser adminUser, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) voidlisten(org.springframework.messaging.Message<ExternalAdminUserModificationEvent> payload) protected voidprocessMessage(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
-