Class UserCreatedEventMapper

java.lang.Object
es.kukenan.smartfi.microservice.clients.service.mapper.UserCreatedEventMapper

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

    • UserCreatedEventMapper

      public UserCreatedEventMapper()
  • Method Details

    • map

      public es.kukenan.smartfi.microservice.clients.events.created.UserCreatedEvent map(User user, UserManagementOperationContext operationContext)
      Create a UserCreatedEvent for the given user in the given context.
      Parameters:
      user - the new user to create.
      operationContext - the context of this operation, maybe an onboarding process for example.
      Returns:
      the inserted instance data.