Interface MailNotificationStorage


public interface MailNotificationStorage
  • Method Details

    • 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
    • deleteAllDigests

      default void deleteAllDigests() throws Exception
      Removes all digest messages. This is used for migration purpose
      Throws:
      Exception