Class WebNotificationsOfUserSelector

java.lang.Object
org.exoplatform.services.cache.ClusterCachedObjectSelector<WebNotifInfoCacheKey,org.exoplatform.commons.api.notification.model.NotificationInfo>
org.exoplatform.commons.notification.impl.service.storage.cache.WebNotificationsOfUserSelector
All Implemented Interfaces:
Serializable, org.exoplatform.services.cache.CachedObjectSelector<WebNotifInfoCacheKey,org.exoplatform.commons.api.notification.model.NotificationInfo>

public class WebNotificationsOfUserSelector extends org.exoplatform.services.cache.ClusterCachedObjectSelector<WebNotifInfoCacheKey,org.exoplatform.commons.api.notification.model.NotificationInfo>
Selects the web notifications sent to a user, which are removed from every node of a cluster.
See Also:
  • Constructor Details

    • WebNotificationsOfUserSelector

      public WebNotificationsOfUserSelector(String userId)
  • Method Details

    • select

      public boolean select(WebNotifInfoCacheKey key, org.exoplatform.services.cache.ObjectCacheInfo<? extends org.exoplatform.commons.api.notification.model.NotificationInfo> ocinfo)
    • criteria

      protected Object[] criteria()
      Specified by:
      criteria in class org.exoplatform.services.cache.ClusterCachedObjectSelector<WebNotifInfoCacheKey,org.exoplatform.commons.api.notification.model.NotificationInfo>