Class UserPasswordChangeEventMapper
java.lang.Object
es.kukenan.smartfi.microservice.clients.service.mapper.UserPasswordChangeEventMapper
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
Modifier and TypeMethodDescriptioncreatePrincipal(User user) Create a principal description for the given user entity.es.kukenan.smartfi.microservice.clients.events.pwdchange.UserPasswordChangeEventCreate anUserPasswordChangeEventfrom the given user entity.
-
Field Details
-
serviceName
This micro-service name. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest context manager.
-
-
Constructor Details
-
UserPasswordChangeEventMapper
public UserPasswordChangeEventMapper()
-
-
Method Details
-
map
public es.kukenan.smartfi.microservice.clients.events.pwdchange.UserPasswordChangeEvent map(User user) Create anUserPasswordChangeEventfrom the given user entity.- Parameters:
user- the user entity that contains the new password.- Returns:
- Full
UserPasswordChangeEventinstance with information (password and more) obtained from the user.
-
createPrincipal
Create a principal description for the given user entity.- Parameters:
user- a user entity.- Returns:
- the principal description.
-