Interface MailNotificationStorage
-
public interface MailNotificationStorage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddeleteAllDigests()Removes all digest messages.Map<PluginKey,List<NotificationInfo>>getByUser(NotificationContext context, UserSetting userSetting)Gets information of all notifications of a user.voidremoveMessageAfterSent(NotificationContext context)Removes all messages after they have been sent.voidsave(NotificationInfo notification)Saves information of a notification.
-
-
-
Method Detail
-
save
void save(NotificationInfo notification) throws Exception
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
void removeMessageAfterSent(NotificationContext context) throws Exception
Removes all messages after they have been sent.- Parameters:
context- The notification context to determine the type of digest.- Throws:
Exception
-
-