Package com.almis.awe.notifier.service
Class NotifierService
- java.lang.Object
-
- com.almis.awe.notifier.service.NotifierService
-
public class NotifierService extends Object
-
-
Constructor Summary
Constructors Constructor Description NotifierService(QueryService queryService, MaintainService maintainService, BroadcastService broadcastService, com.almis.awe.model.service.DataListService dataListService)Autowired constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.almis.awe.model.dto.ServiceDatagetNotifications()Get notifications and update notification bell unitcom.almis.awe.model.dto.ServiceDatagoToNotificationScreen(Integer notificationId)Go to notification screenvoidnotify(NotificationDto notification)Send a notificationcom.almis.awe.model.dto.ServiceDatatoggleEmailSubscription(String user, Integer subscription)Toggle email subscriptioncom.almis.awe.model.dto.ServiceDatatoggleWebSubscription(String user, Integer subscription)Toggle web subscription
-
-
-
Constructor Detail
-
NotifierService
public NotifierService(QueryService queryService, MaintainService maintainService, BroadcastService broadcastService, com.almis.awe.model.service.DataListService dataListService)
Autowired constructor- Parameters:
queryService- Query servicemaintainService- Maintain servicebroadcastService- Broadcast servicedataListService- DataList service
-
-
Method Detail
-
getNotifications
public com.almis.awe.model.dto.ServiceData getNotifications() throws com.almis.awe.exception.AWExceptionGet notifications and update notification bell unit- Returns:
- Notifications
- Throws:
com.almis.awe.exception.AWException
-
toggleWebSubscription
public com.almis.awe.model.dto.ServiceData toggleWebSubscription(String user, Integer subscription) throws com.almis.awe.exception.AWException
Toggle web subscription- Parameters:
user- User namesubscription- Subscription- Returns:
- Service data
- Throws:
com.almis.awe.exception.AWException
-
toggleEmailSubscription
public com.almis.awe.model.dto.ServiceData toggleEmailSubscription(String user, Integer subscription) throws com.almis.awe.exception.AWException
Toggle email subscription- Parameters:
user- User namesubscription- Subscription- Returns:
- Service data
- Throws:
com.almis.awe.exception.AWException
-
goToNotificationScreen
public com.almis.awe.model.dto.ServiceData goToNotificationScreen(Integer notificationId) throws com.almis.awe.exception.AWException
Go to notification screen- Parameters:
notificationId- Notification id- Returns:
- Service data
- Throws:
com.almis.awe.exception.AWException
-
notify
public void notify(NotificationDto notification) throws com.almis.awe.exception.AWException
Send a notification- Parameters:
notification- Notification to send- Throws:
com.almis.awe.exception.AWException
-
-