Package com.almis.awe.notifier.service
Class NotifierService
java.lang.Object
com.almis.awe.notifier.service.NotifierService
-
Constructor Summary
ConstructorDescriptionNotifierService
(QueryService queryService, MaintainService maintainService, BroadcastService broadcastService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionGet notifications and update notification bell unitgoToNotificationScreen
(Integer notificationId) Go to notification screenvoid
notify
(NotificationDto notification) Send a notificationtoggleEmailSubscription
(String user, Integer subscription) Toggle email subscriptiontoggleWebSubscription
(String user, Integer subscription) Toggle web subscription
-
Constructor Details
-
NotifierService
public NotifierService(QueryService queryService, MaintainService maintainService, BroadcastService broadcastService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Autowired constructor- Parameters:
queryService
- Query servicemaintainService
- Maintain servicebroadcastService
- Broadcast serviceobjectMapper
- Object mapper
-
-
Method Details
-
getNotifications
Get notifications and update notification bell unit- Returns:
- Notifications
- Throws:
AWException
-
toggleWebSubscription
Toggle web subscription- Parameters:
user
- User namesubscription
- Subscription- Returns:
- Service data
- Throws:
AWException
-
toggleEmailSubscription
Toggle email subscription- Parameters:
user
- User namesubscription
- Subscription- Returns:
- Service data
- Throws:
AWException
-
goToNotificationScreen
Go to notification screen- Parameters:
notificationId
- Notification id- Returns:
- Service data
- Throws:
AWException
-
notify
Send a notification- Parameters:
notification
- Notification to send- Throws:
AWException
-