Class NotificationCreatedEventService

java.lang.Object
es.kukenan.smartfi.microservice.contracts.service.events.NotificationCreatedEventService

@Service public class NotificationCreatedEventService extends Object
Service for handler notifications backoffice events.
  • Field Details

    • userBackofficeRepository

      @Autowired private UserBackofficeRepository userBackofficeRepository
      UserBackofficeRepository repository.
    • userRepository

      @Autowired private UserRepository userRepository
      UserRepository repository.
    • subsystemRepository

      @Autowired private SubsystemRepository subsystemRepository
      SubsystemRepository repository.
    • amqpController

      @Autowired private AmqpController amqpController
      AMQP Controller (for event publishing).
    • kafkaController

      @Autowired private KafkaController kafkaController
      Kafka Controller.
  • Constructor Details

    • NotificationCreatedEventService

      public NotificationCreatedEventService()
  • Method Details

    • handleBackOfficeNotificationCreatedEvent

      public void handleBackOfficeNotificationCreatedEvent(es.kukenan.smartfi.microservice.backoffice.events.created.BackOfficeNotificationCreatedEvent backOfficeNotificationCreatedEvent)
      Method for handle event for notification create information.
      Parameters:
      backOfficeNotificationCreatedEvent - backOfficeNotificationCreatedEvent created event.
    • isValidEvent

      private boolean isValidEvent(es.kukenan.smartfi.microservice.backoffice.events.created.BackofficeMonitorNotificationEventCreatedBody body)