Module Lunchify

Class DeletedNotificationRepository

java.lang.Object
jku.se.repository.DeletedNotificationRepository

public class DeletedNotificationRepository extends Object
Repository for managing deleted notifications in the database. Provides methods to store and retrieve deleted notification messages.
  • Constructor Details

    • DeletedNotificationRepository

      public DeletedNotificationRepository()
  • Method Details

    • addDeletedNotification

      public static void addDeletedNotification(String message, String userEmail)
      Adds a deleted notification message to the database.
      Parameters:
      message - The notification message that was deleted.
      userEmail - The email of the user who deleted the notification.
    • getDeletedNotifications

      public static Set<String> getDeletedNotifications(String userEmail)
      Retrieves all deleted notification messages for a specific user.
      Parameters:
      userEmail - The email of the user.
      Returns:
      Set of deleted notification messages.
    • clearDeletedNotificationsForUser

      public static void clearDeletedNotificationsForUser(String userEmail)
      Clears all deleted notifications for a specific user.
      Parameters:
      userEmail - The email of the user.
    • clearAllDeletedNotifications

      public static void clearAllDeletedNotifications()
      Clears all deleted notifications for all users.