Class UserPasswordResetEventMapper

java.lang.Object
es.kukenan.smartfi.microservice.clients.service.mapper.UserPasswordResetEventMapper

@Component public class UserPasswordResetEventMapper extends Object
Component used to create UserPasswordChangeEvent.
  • Field Details

    • serviceName

      @Value("${spring.application.name}") private String serviceName
      This micro-service name.
    • requestContextManager

      @Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManager
      Request context manager.
  • Constructor Details

    • UserPasswordResetEventMapper

      public UserPasswordResetEventMapper()
  • Method Details

    • map

      public es.kukenan.smartfi.microservice.clients.events.pwdreset.UserPasswordResetEvent map(User user, String password, String userIp, String userAgent)
      Create an UserPasswordResetEvent from the given user entity.
      Parameters:
      user - the user entity that contains the new password.
      password - provisional password.
      userIp - user real ip
      userAgent - user-agent header
      Returns:
      Full UserPasswordResetEvent instance with information (password and more) obtained from the user.