Class NotificationService

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

@Service public class NotificationService extends AbstractDomainEventService
Service class that holds and manage all the on demand notification.
  • Field Details

    • EVENT_ONDEMAND_NOTIFICATION

      public static final String EVENT_ONDEMAND_NOTIFICATION
      Event associated to send on demand message.
      See Also:
    • channelRepository

      @Autowired private ChannelRepository channelRepository
      Channel repository.
    • usersRepository

      @Autowired private UsersRepository usersRepository
      user repository.
  • Constructor Details

    • NotificationService

      public NotificationService()
  • Method Details

    • getNotificationsChannels

      public org.springframework.http.ResponseEntity<Object> getNotificationsChannels()
      Get notification channels.
      Returns:
      channels
    • sendOnDemanNotification

      public void sendOnDemanNotification(es.kukenan.smartfi.microservice.communications.api.ondemand.OnDemandNotificationRequestDto requestDto)
      Send on demand notification.
      Parameters:
      requestDto - notification info.