public class CachedWebNotificationStorage extends Object implements org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage
| Constructor and Description |
|---|
CachedWebNotificationStorage(JPAWebNotificationStorage storage,
org.exoplatform.services.cache.CacheService cacheService) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearWebNotificationCache(String notificationId)
Clear the notification from the cache.
|
org.exoplatform.commons.api.notification.model.NotificationInfo |
get(String notificationId) |
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 |
setStorage(org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage storage) |
void |
update(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
boolean moveTop) |
void |
updateAllRead(String userId) |
public CachedWebNotificationStorage(JPAWebNotificationStorage storage, org.exoplatform.services.cache.CacheService cacheService)
public void save(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
save 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 void markRead(String notificationId)
markRead 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 void hidePopover(String notificationId)
hidePopover 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 boolean remove(String notificationId)
remove in interface org.exoplatform.commons.api.notification.service.storage.WebNotificationStoragepublic org.exoplatform.commons.api.notification.model.NotificationInfo get(String notificationId)
get 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 boolean remove(String userId, long seconds)
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 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.WebNotificationStoragepublic void setStorage(org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage storage)
public void clearWebNotificationCache(String notificationId)
notificationId - Copyright © 2003–2021 eXo Platform SAS. All rights reserved.