Class UserPasswordResetEventService

java.lang.Object
es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
es.kukenan.smartfi.microservice.communication.service.messaging.UserPasswordResetEventService

@Service public class UserPasswordResetEventService extends AbstractDomainEventService
This service owns the logic of the notifications created events processing.
  • Field Details

  • Constructor Details

    • UserPasswordResetEventService

      public UserPasswordResetEventService()
  • Method Details

    • handleUserPasswordResetEvent

      public void handleUserPasswordResetEvent(es.kukenan.smartfi.microservice.clients.events.pwdreset.UserPasswordResetEvent userPasswordResetEvent)
      Handles the given notifications request delivery NotificationCreatedEvent Event.
      Parameters:
      userPasswordResetEvent - object holding the notifications request details.
    • findUser

      private User findUser(String userId)
      Find user for template data.
      Parameters:
      userId - Skyline unique user identifier
      Returns:
      user found by skyline identifier.
    • getTemplateVariables

      private Map<String,Object> getTemplateVariables(es.kukenan.smartfi.microservice.clients.events.pwdreset.UserPasswordResetEventBody body)
      Get event data to complete message template variables.
      Parameters:
      body - user reset password event body.
      Returns:
      Map with variables.