Class ServiceNotification
java.lang.Object
com.serinity.forumcontrol.service.ServiceNotification
Service for managing notifications
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateNotification(Long threadId, String type, String actorUserId) voiddeleteAllForUser(String userId) Delete all notifications for a uservoiddeleteNotification(Long notificationId) Delete a notificationintgetUnseenCount(String userId) Count unseen notifications for a usergetUnseenNotifications(String userId) Get unseen notifications for a usergetUserNotifications(String userId) Get all notifications for a user (newest first)voidmarkAllAsSeen(String userId) Mark all notifications as seen for a uservoidmarkAsSeen(Long notificationId) Mark a specific notification as seen
-
Constructor Details
-
ServiceNotification
public ServiceNotification()
-
-
Method Details
-
createNotification
-
getUserNotifications
Get all notifications for a user (newest first) -
getUnseenNotifications
Get unseen notifications for a user -
getUnseenCount
Count unseen notifications for a user -
markAllAsSeen
Mark all notifications as seen for a user -
markAsSeen
Mark a specific notification as seen -
deleteNotification
Delete a notification -
deleteAllForUser
Delete all notifications for a user
-