Class UserPasswordChangeEventMapper

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

@Component public class UserPasswordChangeEventMapper 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

    • UserPasswordChangeEventMapper

      public UserPasswordChangeEventMapper()
  • Method Details

    • map

      public es.kukenan.smartfi.microservice.clients.events.pwdchange.UserPasswordChangeEvent map(User user)
      Create an UserPasswordChangeEvent from the given user entity.
      Parameters:
      user - the user entity that contains the new password.
      Returns:
      Full UserPasswordChangeEvent instance with information (password and more) obtained from the user.
    • createPrincipal

      public String createPrincipal(User user)
      Create a principal description for the given user entity.
      Parameters:
      user - a user entity.
      Returns:
      the principal description.