java.lang.Object
jku.se.repository.DeletedNotificationRepository
Repository for managing deleted notifications in the database.
Provides methods to store and retrieve deleted notification messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDeletedNotification
(String message, String userEmail) Adds a deleted notification message to the database.static void
Clears all deleted notifications for all users.static void
clearDeletedNotificationsForUser
(String userEmail) Clears all deleted notifications for a specific user.getDeletedNotifications
(String userEmail) Retrieves all deleted notification messages for a specific user.
-
Constructor Details
-
DeletedNotificationRepository
public DeletedNotificationRepository()
-
-
Method Details
-
addDeletedNotification
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
Retrieves all deleted notification messages for a specific user.- Parameters:
userEmail
- The email of the user.- Returns:
- Set of deleted notification messages.
-
clearDeletedNotificationsForUser
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.
-