Class NotifierService

java.lang.Object
com.almis.awe.notifier.service.NotifierService

public class NotifierService extends Object
  • Constructor Details

    • NotifierService

      public NotifierService(QueryService queryService, MaintainService maintainService, BroadcastService broadcastService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Autowired constructor
      Parameters:
      queryService - Query service
      maintainService - Maintain service
      broadcastService - Broadcast service
      objectMapper - Object mapper
  • Method Details

    • getNotifications

      public ServiceData getNotifications() throws AWException
      Get notifications and update notification bell unit
      Returns:
      Notifications
      Throws:
      AWException
    • toggleWebSubscription

      public ServiceData toggleWebSubscription(String user, Integer subscription) throws AWException
      Toggle web subscription
      Parameters:
      user - User name
      subscription - Subscription
      Returns:
      Service data
      Throws:
      AWException
    • toggleEmailSubscription

      public ServiceData toggleEmailSubscription(String user, Integer subscription) throws AWException
      Toggle email subscription
      Parameters:
      user - User name
      subscription - Subscription
      Returns:
      Service data
      Throws:
      AWException
    • goToNotificationScreen

      public ServiceData goToNotificationScreen(Integer notificationId) throws AWException
      Go to notification screen
      Parameters:
      notificationId - Notification id
      Returns:
      Service data
      Throws:
      AWException
    • notify

      public void notify(NotificationDto notification) throws AWException
      Send a notification
      Parameters:
      notification - Notification to send
      Throws:
      AWException