Class OnboardingDomainEventService

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

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

    • onboardingKoNotifiedReasons

      @Value("#{\'${notification.OnboardingKoEvent.notifyOn.reason}\'.split(\',\')}") private List<String> onboardingKoNotifiedReasons
      A list of reasons for which a notification will be created.
    • onboardingKoNotifiedReasonEnabled

      @Value("${notification.OnboardingKoEvent.notifyOn.enabled}") private boolean onboardingKoNotifiedReasonEnabled
      Enabled flag. If disabled, no onboarging ko by reason 1,2.
  • Constructor Details

    • OnboardingDomainEventService

      public OnboardingDomainEventService()
  • Method Details

    • handleOnboardingKoEvent

      public void handleOnboardingKoEvent(es.kukenan.smartfi.microservice.onboarding.events.statuschanged.ko.OnboardingKoEvent onboardingEvent)
      Handles the given notifications request delivery OnboardingKo Event.
      Parameters:
      onboardingEvent - object holding the notifications request details.
    • handleOnboardingValidatedEvent

      public void handleOnboardingValidatedEvent(es.kukenan.smartfi.microservice.onboarding.events.statuschanged.validated.OnboardingValidatedEvent onboardingEvent)
      Handles the given notifications request delivery OnboardingValidated Event.
      Parameters:
      onboardingEvent - object holding the notifications request details.
    • handleOnboardingCompletedEvent

      public void handleOnboardingCompletedEvent(es.kukenan.smartfi.microservice.onboarding.events.statuschanged.completed.OnboardingCompletedEvent onboardingEvent)
      Handles the given notifications request delivery OnboardingCompletedEvent Event.
      Parameters:
      onboardingEvent - object holding the notifications request details.
    • handleOnboardingAlreadyClientEvent

      public void handleOnboardingAlreadyClientEvent(es.kukenan.smartfi.microservice.onboarding.events.statuschanged.alreadyclient.OnboardingAlreadyClientEvent onboardingEvent)
      Handles the given notifications request delivery OnboardingAlreadyClientEvent Event.
      Parameters:
      onboardingEvent - object holding the notifications request details.
    • handleOnboardingAmlVerificationPendingEvent

      public void handleOnboardingAmlVerificationPendingEvent(es.kukenan.smartfi.microservice.onboarding.events.statuschanged.amlverification.OnboardingAmlVerificationPendingEvent onboardingEvent)
      Handles the given notifications request delivery OnboardingAmlVerificationPendingEvent Event.
      Parameters:
      onboardingEvent - object holding the notifications request details.
    • handleOnboardingEvidencesVerificationPendingEvent

      public void handleOnboardingEvidencesVerificationPendingEvent(es.kukenan.smartfi.microservice.onboarding.events.statuschanged.evidencesverification.OnboardingEvidencesVerificationPendingEvent onboardingEvent)
      Handles the given notifications request delivery OnboardingEvidencesVerificationPendingEvent Event.
      Parameters:
      onboardingEvent - object holding the notifications request details.
    • templateVariables

      private <B extends es.kukenan.smartfi.microservice.onboarding.events.BaseOnboardingEventBody> Map<String,Object> templateVariables(es.kukenan.smartfi.microservice.onboarding.events.AbstractOnboardingEvent<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.