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 Summary
Fields Modifier and Type Field Description static org.exoplatform.commons.api.notification.model.ArgumentLiteral<Map>DAILY_NOTIFSstatic StringDIGEST_DAILYstatic StringDIGEST_WEEKLYstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<Map>WEEKLY_NOTIFS
-
Constructor Summary
Constructors Constructor Description JPAMailNotificationStorage(MailNotifDAO mailNotifDAO, MailDigestDAO mailDigestDAO, MailParamDAO mailParamDAO, org.exoplatform.commons.api.persistence.DataInitializer dataInitializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAllDigests()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)voidremoveMessageAfterSent(org.exoplatform.commons.api.notification.NotificationContext context)voidsave(org.exoplatform.commons.api.notification.model.NotificationInfo message)
-
-
-
Field Detail
-
DIGEST_DAILY
public static final String DIGEST_DAILY
- See Also:
- Constant Field Values
-
DIGEST_WEEKLY
public static final String DIGEST_WEEKLY
- See Also:
- Constant Field Values
-
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:
savein interfaceorg.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:
getByUserin interfaceorg.exoplatform.commons.api.notification.service.storage.MailNotificationStorage
-
removeMessageAfterSent
public void removeMessageAfterSent(org.exoplatform.commons.api.notification.NotificationContext context) throws Exception- Specified by:
removeMessageAfterSentin interfaceorg.exoplatform.commons.api.notification.service.storage.MailNotificationStorage- Throws:
Exception
-
-