Class SpaceWebNotificationServiceImpl

java.lang.Object
org.exoplatform.social.notification.impl.SpaceWebNotificationServiceImpl
All Implemented Interfaces:
org.exoplatform.social.notification.service.SpaceWebNotificationService, org.picocontainer.Startable

public class SpaceWebNotificationServiceImpl extends Object implements org.exoplatform.social.notification.service.SpaceWebNotificationService, org.picocontainer.Startable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from interface org.exoplatform.social.notification.service.SpaceWebNotificationService

    NOTIFICATION_ALL_READ_EVENT_NAME, NOTIFICATION_READ_EVENT_NAME, NOTIFICATION_UNREAD_EVENT_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpaceWebNotificationServiceImpl(org.exoplatform.container.PortalContainer container, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.commons.api.notification.service.setting.PluginSettingService pluginSettingService, org.exoplatform.services.listener.ListenerService listenerService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPlugin(org.exoplatform.social.notification.plugin.SpaceWebNotificationPlugin spaceWebNotification)
     
    countUnreadItemsByApplication(long userIdentityId, long spaceId)
     
    void
    dispatch(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String username)
     
    void
    markAllAsRead(long userIdentityId, long spaceId)
     
    void
    markAsRead(org.exoplatform.social.notification.model.SpaceWebNotificationItem notificationItem)
     
    void
    markAsUnread(org.exoplatform.social.notification.model.SpaceWebNotificationItem notificationItem)
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SpaceWebNotificationServiceImpl

      public SpaceWebNotificationServiceImpl(org.exoplatform.container.PortalContainer container, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.commons.api.notification.service.setting.PluginSettingService pluginSettingService, org.exoplatform.services.listener.ListenerService listenerService)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable
    • addPlugin

      public void addPlugin(org.exoplatform.social.notification.plugin.SpaceWebNotificationPlugin spaceWebNotification)
      Specified by:
      addPlugin in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
    • dispatch

      public void dispatch(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String username) throws Exception
      Specified by:
      dispatch in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
      Throws:
      Exception
    • markAsUnread

      public void markAsUnread(org.exoplatform.social.notification.model.SpaceWebNotificationItem notificationItem) throws Exception
      Specified by:
      markAsUnread in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
      Throws:
      Exception
    • markAsRead

      public void markAsRead(org.exoplatform.social.notification.model.SpaceWebNotificationItem notificationItem) throws Exception
      Specified by:
      markAsRead in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
      Throws:
      Exception
    • markAllAsRead

      public void markAllAsRead(long userIdentityId, long spaceId) throws Exception
      Specified by:
      markAllAsRead in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
      Throws:
      Exception
    • countUnreadItemsByApplication

      public Map<String,Long> countUnreadItemsByApplication(long userIdentityId, long spaceId)
      Specified by:
      countUnreadItemsByApplication in interface org.exoplatform.social.notification.service.SpaceWebNotificationService