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 -
Constructor Summary
ConstructorsConstructorDescriptionJPAMailNotificationStorage(MailNotifDAO mailNotifDAO, MailDigestDAO mailDigestDAO, MailParamDAO mailParamDAO, org.exoplatform.commons.api.persistence.DataInitializer dataInitializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidMap<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 Details
-
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:
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
-
deleteAllDigests
- Specified by:
deleteAllDigestsin interfaceorg.exoplatform.commons.api.notification.service.storage.MailNotificationStorage- Throws:
Exception
-