Class UserPasswordResetEventMapper
java.lang.Object
es.kukenan.smartfi.microservice.clients.service.mapper.UserPasswordResetEventMapper
Component used to create
UserPasswordChangeEvent.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager.private StringThis micro-service name. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serviceName
This micro-service name. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest 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 anUserPasswordResetEventfrom the given user entity.- Parameters:
user- the user entity that contains the new password.password- provisional password.userIp- user real ipuserAgent- user-agent header- Returns:
- Full
UserPasswordResetEventinstance with information (password and more) obtained from the user.
-