Class SecurityGatewayEventService
java.lang.Object
es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
es.kukenan.smartfi.microservice.communication.service.messaging.SecurityGatewayEventService
This service owns the logic of the users lifecycle domain events processing.
-
Field Summary
FieldsFields inherited from class es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
CAT_DESTINATION_PREFIX, CAT_LANG, CAT_USER, notificationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleOtpGeneratedEvent(es.kukenan.smartfi.microservice.security.gateway.events.otp.OtpGeneratedEvent event) Handle theOtpGeneratedEventreceived from the messaging system.private <B extends es.kukenan.smartfi.microservice.security.gateway.events.otp.OtpGeneratedEventBody>
Map<String,Object> templateVariables(es.kukenan.smartfi.microservice.security.gateway.events.AbstractSecurityGatewayEvent<B> event, Object... extraEntries) Create a set of variables that could be used in message templates.Methods inherited from class es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
createVirtualUserForCatDestination, eventTypeDescriptor, findMessages, findRealUser, findRealUserFromOnboarding, handleGenericNotificationEvent, handleGenericNotificationEvent, toMessageSpecialProperties
-
Field Details
-
OTP_VARIABLE_NAME
The name of the OTP variable.- See Also:
-
-
Constructor Details
-
SecurityGatewayEventService
public SecurityGatewayEventService()
-
-
Method Details
-
handleOtpGeneratedEvent
public void handleOtpGeneratedEvent(es.kukenan.smartfi.microservice.security.gateway.events.otp.OtpGeneratedEvent event) Handle theOtpGeneratedEventreceived from the messaging system.- Parameters:
event-OtpGeneratedEvent.
-
templateVariables
private <B extends es.kukenan.smartfi.microservice.security.gateway.events.otp.OtpGeneratedEventBody> Map<String,Object> templateVariables(es.kukenan.smartfi.microservice.security.gateway.events.AbstractSecurityGatewayEvent<B> event, Object... extraEntries) Create a set of variables that could be used in message templates.- Type Parameters:
B- event body class.- Parameters:
event- the event.extraEntries- extra entries in the variable map.- Returns:
- a set of variables that could be used in message templates.
-