Class NotificationCreatedEventMapper

java.lang.Object
es.kukenan.smartfi.microservice.smartficore.service.mapper.NotificationCreatedEventMapper

@Component public class NotificationCreatedEventMapper extends Object
Component used to create NotificationCreatedEvent.
  • 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

    • NotificationCreatedEventMapper

      public NotificationCreatedEventMapper()
  • Method Details

    • map

      public es.kukenan.smartfi.microservice.contracts.events.created.NotificationCreatedEvent map(User user, String msg)
      Create an NotificationCreatedEvent from the given user entity.
      Parameters:
      user - the user entity.
      msg - message information.
      Returns:
      Full NotificationCreatedEvent instance with information obtained from the user and contract.