Class ExternalAdminUserModificationListener

java.lang.Object
com.broadleafcommerce.adminuser.user.messaging.ExternalAdminUserModificationListener

@DataRouteByKey("adminUser") public class ExternalAdminUserModificationListener extends Object
Responsible for managing AdminUser record if admin user modification is initiated from the authentication service instead of this service.
  • 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

      @NonNull protected Optional<AdminUser> findAdminUser(User user, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • buildAdminUser

      protected AdminUser buildAdminUser(ExternalAdminUserModificationEvent event)
    • buildContextInfo

      protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildContextInfo(User user)
    • getIdempotentConsumptionService

      protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService()
    • getAdminUserService

      protected AdminUserService<AdminUser> getAdminUserService()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
    • getProperties

      protected AdminUserAccessLevelProperties getProperties()