Class JPAMailNotificationStorage

java.lang.Object
org.exoplatform.commons.notification.impl.jpa.email.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 Details

    • DIGEST_DAILY

      public static final String DIGEST_DAILY
      See Also:
    • DIGEST_WEEKLY

      public static final String DIGEST_WEEKLY
      See Also:
    • 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 Details

    • JPAMailNotificationStorage

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

    • 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