public class NotifierService extends Object
| Constructor and Description |
|---|
NotifierService(QueryService queryService,
MaintainService maintainService,
BroadcastService broadcastService)
Autowired constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.almis.awe.model.dto.ServiceData |
getNotifications()
Get notifications and update notification bell unit
|
com.almis.awe.model.dto.ServiceData |
goToNotificationScreen(Integer notificationId)
Go to notification screen
|
void |
notify(NotificationDto notification)
Send a notification
|
com.almis.awe.model.dto.ServiceData |
toggleEmailSubscription(String user,
Integer subscription)
Toggle email subscription
|
com.almis.awe.model.dto.ServiceData |
toggleWebSubscription(String user,
Integer subscription)
Toggle web subscription
|
@Autowired public NotifierService(QueryService queryService, MaintainService maintainService, BroadcastService broadcastService)
queryService - Query servicemaintainService - Maintain servicebroadcastService - Broadcast servicepublic com.almis.awe.model.dto.ServiceData getNotifications()
throws com.almis.awe.exception.AWException
com.almis.awe.exception.AWExceptionpublic com.almis.awe.model.dto.ServiceData toggleWebSubscription(String user, Integer subscription) throws com.almis.awe.exception.AWException
user - User namesubscription - Subscriptioncom.almis.awe.exception.AWExceptionpublic com.almis.awe.model.dto.ServiceData toggleEmailSubscription(String user, Integer subscription) throws com.almis.awe.exception.AWException
user - User namesubscription - Subscriptioncom.almis.awe.exception.AWExceptionpublic com.almis.awe.model.dto.ServiceData goToNotificationScreen(Integer notificationId) throws com.almis.awe.exception.AWException
notificationId - Notification idcom.almis.awe.exception.AWExceptionpublic void notify(NotificationDto notification) throws com.almis.awe.exception.AWException
notification - Notification to sendcom.almis.awe.exception.AWExceptionCopyright © 2020. All rights reserved.