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 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, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService)
  • 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) throws Exception
      Specified by:
      markAllAsRead 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
    • getUnreadActivityIds

      public List<Long> getUnreadActivityIds(String username, long offset, long limit)
      Specified by:
      getUnreadActivityIds in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
    • getUnreadActivityIdsBySpace

      public List<Long> getUnreadActivityIdsBySpace(String username, long spaceId, long offset, long limit) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getUnreadActivityIdsBySpace in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • countUnreadItemsBySpace

      public Map<Long,Long> countUnreadItemsBySpace(String username)
      Specified by:
      countUnreadItemsBySpace in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
    • countUnreadActivities

      public long countUnreadActivities(String username)
      Specified by:
      countUnreadActivities in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
    • countUnreadActivitiesBySpace

      public long countUnreadActivitiesBySpace(String username, long spaceId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      countUnreadActivitiesBySpace in interface org.exoplatform.social.notification.service.SpaceWebNotificationService
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException