Class SecurityGatewayEventService

java.lang.Object
es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
es.kukenan.smartfi.microservice.communication.service.messaging.SecurityGatewayEventService

@Service public class SecurityGatewayEventService extends AbstractDomainEventService
This service owns the logic of the users lifecycle domain events processing.
  • Field Details

  • Constructor Details

    • SecurityGatewayEventService

      public SecurityGatewayEventService()
  • Method Details

    • handleOtpGeneratedEvent

      public void handleOtpGeneratedEvent(es.kukenan.smartfi.microservice.security.gateway.events.otp.OtpGeneratedEvent event)
      Handle the OtpGeneratedEvent received 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.