Class UserCreatedEventMapper
java.lang.Object
es.kukenan.smartfi.microservice.clients.service.mapper.UserCreatedEventMapper
Component used to create
UserCreatedEvent.-
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 TypeMethodDescriptiones.kukenan.smartfi.microservice.clients.events.created.UserCreatedEventmap(User user, UserManagementOperationContext operationContext) Create aUserCreatedEventfor the given user in the given context.
-
Field Details
-
serviceName
This micro-service name. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest 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 aUserCreatedEventfor 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.
-