public class JPAMailNotificationStorage extends Object implements org.exoplatform.commons.api.notification.service.storage.MailNotificationStorage
| Modifier and Type | Field and Description |
|---|---|
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<Map> |
DAILY_NOTIFS |
static String |
DIGEST_DAILY |
static String |
DIGEST_WEEKLY |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<Map> |
WEEKLY_NOTIFS |
| Constructor and Description |
|---|
JPAMailNotificationStorage(MailNotifDAO mailNotifDAO,
MailDigestDAO mailDigestDAO,
MailParamDAO mailParamDAO,
org.exoplatform.commons.api.persistence.DataInitializer dataInitializer) |
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
removeMessageAfterSent(org.exoplatform.commons.api.notification.NotificationContext context) |
void |
save(org.exoplatform.commons.api.notification.model.NotificationInfo message) |
public static final String DIGEST_DAILY
public static final String DIGEST_WEEKLY
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Map> WEEKLY_NOTIFS
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Map> DAILY_NOTIFS
public JPAMailNotificationStorage(MailNotifDAO mailNotifDAO, MailDigestDAO mailDigestDAO, MailParamDAO mailParamDAO, org.exoplatform.commons.api.persistence.DataInitializer dataInitializer)
public void save(org.exoplatform.commons.api.notification.model.NotificationInfo message)
throws Exception
save in interface org.exoplatform.commons.api.notification.service.storage.MailNotificationStorageExceptionpublic 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)
getByUser in interface org.exoplatform.commons.api.notification.service.storage.MailNotificationStorageCopyright © 2003–2019 eXo Platform SAS. All rights reserved.