Interface MailNotificationStorage
public interface MailNotificationStorage
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidRemoves all digest messages.getByUser(NotificationContext context, UserSetting userSetting) Gets information of all notifications of a user.voidRemoves all messages after they have been sent.voidsave(NotificationInfo notification) Saves information of a notification.
-
Method Details
-
save
Saves information of a notification.- Parameters:
notification- The notification to be saved.- Throws:
Exception
-
getByUser
Map<PluginKey,List<NotificationInfo>> getByUser(NotificationContext context, UserSetting userSetting) Gets information of all notifications of a user.- Parameters:
userSetting- The notification settings of the user.- Returns:
- Information of notifications.
-
removeMessageAfterSent
Removes all messages after they have been sent.- Parameters:
context- The notification context to determine the type of digest.- Throws:
Exception
-
deleteAllDigests
Removes all digest messages. This is used for migration purpose- Throws:
Exception
-