Class JPAMailNotificationStorage

  • All Implemented Interfaces:
    org.exoplatform.commons.api.notification.service.storage.MailNotificationStorage

    public class JPAMailNotificationStorage
    extends Object
    implements org.exoplatform.commons.api.notification.service.storage.MailNotificationStorage
    • Field Detail

      • WEEKLY_NOTIFS

        public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Map> WEEKLY_NOTIFS
      • DAILY_NOTIFS

        public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Map> DAILY_NOTIFS
    • Constructor Detail

      • JPAMailNotificationStorage

        public JPAMailNotificationStorage​(MailNotifDAO mailNotifDAO,
                                          MailDigestDAO mailDigestDAO,
                                          MailParamDAO mailParamDAO,
                                          org.exoplatform.commons.api.persistence.DataInitializer dataInitializer)
    • Method Detail

      • save

        public void save​(org.exoplatform.commons.api.notification.model.NotificationInfo message)
                  throws Exception
        Specified by:
        save in interface org.exoplatform.commons.api.notification.service.storage.MailNotificationStorage
        Throws:
        Exception
      • getByUser

        public Map<org.exoplatform.commons.api.notification.model.PluginKey,​List<org.exoplatform.commons.api.notification.model.NotificationInfo>> getByUser​(org.exoplatform.commons.api.notification.NotificationContext context,
                                                                                                                                                                   org.exoplatform.commons.api.notification.model.UserSetting setting)
        Specified by:
        getByUser in interface org.exoplatform.commons.api.notification.service.storage.MailNotificationStorage
      • removeMessageAfterSent

        public void removeMessageAfterSent​(org.exoplatform.commons.api.notification.NotificationContext context)
                                    throws Exception
        Specified by:
        removeMessageAfterSent in interface org.exoplatform.commons.api.notification.service.storage.MailNotificationStorage
        Throws:
        Exception
      • deleteAllDigests

        public void deleteAllDigests()
                              throws Exception
        Specified by:
        deleteAllDigests in interface org.exoplatform.commons.api.notification.service.storage.MailNotificationStorage
        Throws:
        Exception