Class NotificationCreatedEventMapper
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.service.mapper.NotificationCreatedEventMapper
Component used to create
NotificationCreatedEvent.-
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
-
NotificationCreatedEventMapper
public NotificationCreatedEventMapper()
-
-
Method Details
-
map
public es.kukenan.smartfi.microservice.contracts.events.created.NotificationCreatedEvent map(User user, String msg) Create anNotificationCreatedEventfrom the given user entity.- Parameters:
user- the user entity.msg- message information.- Returns:
- Full
NotificationCreatedEventinstance with information obtained from the user and contract.
-