Class ServiceNotification

java.lang.Object
com.serinity.forumcontrol.service.ServiceNotification

public class ServiceNotification extends Object
Service for managing notifications
  • Constructor Details

    • ServiceNotification

      public ServiceNotification()
  • Method Details

    • createNotification

      public void createNotification(Long threadId, String type, String actorUserId)
    • getUserNotifications

      public List<Notification> getUserNotifications(String userId)
      Get all notifications for a user (newest first)
    • getUnseenNotifications

      public List<Notification> getUnseenNotifications(String userId)
      Get unseen notifications for a user
    • getUnseenCount

      public int getUnseenCount(String userId)
      Count unseen notifications for a user
    • markAllAsSeen

      public void markAllAsSeen(String userId)
      Mark all notifications as seen for a user
    • markAsSeen

      public void markAsSeen(Long notificationId)
      Mark a specific notification as seen
    • deleteNotification

      public void deleteNotification(Long notificationId)
      Delete a notification
    • deleteAllForUser

      public void deleteAllForUser(String userId)
      Delete all notifications for a user