Class UserUpdatedEventMapper
java.lang.Object
es.kukenan.smartfi.microservice.clients.service.mapper.UserUpdatedEventMapper
Component used to create
UserUpdatedEvent.-
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
-
UserUpdatedEventMapper
public UserUpdatedEventMapper()
-
-
Method Details
-
map
public es.kukenan.smartfi.microservice.clients.events.updated.UserUpdatedEvent map(User user, User oldUser) Create aUserUpdatedEventfor the given user in the given context.- Parameters:
user- the actual user information.oldUser- previous user information.- Returns:
- the inserted instance data.
-