public class WebNotificationStorageImpl extends AbstractService implements org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage
ASCENDING, DATE_NODE_PATTERN, DAY, DEFAULT_WORKSPACE_NAME, DESCENDING, EXO_DAILY, EXO_DATE_CREATED, EXO_INSTANTLY, EXO_IS_ACTIVE, EXO_IS_ENABLED, EXO_LAST_MODIFIED_DATE, EXO_LAST_READ_DATE, EXO_WEEKLY, JCR_ROOT, MESSAGE_HOME_NODE, MESSAGE_INFO_HOME_NODE, MIX_DEFAULT_SETTING, MIX_NEW_NODE, MIX_SUB_MESSAGE_HOME, NOTIFICATION_HOME_NODE, NOTIFICATION_PARENT_PATH, NTF_CHANNEL, NTF_FROM, NTF_LAST_MODIFIED_DATE, NTF_MESSAGE, NTF_MESSAGE_HOME, NTF_MESSAGE_INFO, NTF_MESSAGE_INFO_HOME, NTF_NAME_SPACE, NTF_NOTIF_DATE, NTF_NOTIF_INFO, NTF_NOTIF_USER, NTF_NOTIFICATION, NTF_ORDER, NTF_OWNER, NTF_OWNER_PARAMETER, NTF_PARENT_ID, NTF_PLUGIN_ID, NTF_PROVIDER_TYPE, NTF_READ, NTF_SEND_TO_DAILY, NTF_SEND_TO_MONTHLY, NTF_SEND_TO_WEEKLY, NTF_SENDER, NTF_SHOW_POPOVER, NTF_TEXT, NTF_TO, SETTING_NODE, SETTING_USER_NODE, SETTING_USER_PATH, STG_CONTEXT, STG_SCOPE, STG_SIMPLE_CONTEXT, STG_SUBCONTEXT, VALUE_PATTERN, WEB_CHANNEL, WORKSPACE_PARAM| Constructor and Description |
|---|
WebNotificationStorageImpl(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.ext.distribution.DataDistributionManager distributionManager,
org.exoplatform.commons.api.notification.service.setting.UserSettingService userSettingService) |
| Modifier and Type | Method and Description |
|---|---|
org.exoplatform.commons.api.notification.model.NotificationInfo |
get(String id) |
List<org.exoplatform.commons.api.notification.model.NotificationInfo> |
get(org.exoplatform.commons.api.notification.model.WebNotificationFilter filter,
int offset,
int limit) |
int |
getNumberOnBadge(String userId) |
org.exoplatform.commons.api.notification.model.NotificationInfo |
getUnreadNotification(String pluginId,
String activityId,
String owner) |
void |
hidePopover(String notificationId) |
void |
markAllRead(String userId) |
void |
markRead(String notificationId) |
boolean |
remove(long seconds) |
boolean |
remove(String notificationId) |
boolean |
remove(String userId,
long seconds) |
void |
resetNumberOnBadge(String userId) |
void |
save(org.exoplatform.commons.api.notification.model.NotificationInfo notification) |
void |
update(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
boolean moveTop) |
getCurrentTenantName, getMessageInfoHomeNode, getMessageNodeByPluginId, getNodeIteratorOrderDESC, getNotificationHomeNode, getOrCreateMessageNode, getOrCreateMessageParent, getSession, getValue, getValues, sessionSavepublic WebNotificationStorageImpl(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.ext.distribution.DataDistributionManager distributionManager,
org.exoplatform.commons.api.notification.service.setting.UserSettingService userSettingService)
public void save(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
save in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic List<org.exoplatform.commons.api.notification.model.NotificationInfo> get(org.exoplatform.commons.api.notification.model.WebNotificationFilter filter, int offset, int limit)
get in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic org.exoplatform.commons.api.notification.model.NotificationInfo get(String id)
get in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic boolean remove(String notificationId)
remove in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic boolean remove(long seconds)
remove in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic boolean remove(String userId, long seconds)
remove in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic void markRead(String notificationId)
markRead in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic void hidePopover(String notificationId)
hidePopover in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic void markAllRead(String userId)
markAllRead in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic org.exoplatform.commons.api.notification.model.NotificationInfo getUnreadNotification(String pluginId, String activityId, String owner)
getUnreadNotification in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic void update(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
boolean moveTop)
update in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic int getNumberOnBadge(String userId)
getNumberOnBadge in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic void resetNumberOnBadge(String userId)
resetNumberOnBadge in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStorageCopyright © 2003–2016 eXo Platform SAS. All rights reserved.