Class NotificationCreatedEventService
java.lang.Object
es.kukenan.smartfi.microservice.contracts.service.events.NotificationCreatedEventService
Service for handler notifications backoffice events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AmqpControllerAMQP Controller (for event publishing).private KafkaControllerKafka Controller.private SubsystemRepositorySubsystemRepository repository.private UserBackofficeRepositoryUserBackofficeRepository repository.private UserRepositoryUserRepository repository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleBackOfficeNotificationCreatedEvent(es.kukenan.smartfi.microservice.backoffice.events.created.BackOfficeNotificationCreatedEvent backOfficeNotificationCreatedEvent) Method for handle event for notification create information.private booleanisValidEvent(es.kukenan.smartfi.microservice.backoffice.events.created.BackofficeMonitorNotificationEventCreatedBody body)
-
Field Details
-
userBackofficeRepository
UserBackofficeRepository repository. -
userRepository
UserRepository repository. -
subsystemRepository
SubsystemRepository repository. -
amqpController
AMQP Controller (for event publishing). -
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)
-