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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.exoplatform.social.notification.service.SpaceWebNotificationService
NOTIFICATION_ALL_READ_EVENT_NAME, NOTIFICATION_READ_EVENT_NAME, NOTIFICATION_UNREAD_EVENT_NAME -
Constructor Summary
ConstructorsConstructorDescriptionSpaceWebNotificationServiceImpl(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 Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(org.exoplatform.social.notification.plugin.SpaceWebNotificationPlugin spaceWebNotification) longcountUnreadActivities(String username) longcountUnreadActivitiesBySpace(String username, long spaceId) countUnreadItemsByApplication(long userIdentityId, long spaceId) countUnreadItemsBySpace(String username) voiddispatch(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String username) getUnreadActivityIds(String username, long offset, long limit) getUnreadActivityIdsBySpace(String username, long spaceId, long offset, long limit) voidmarkAllAsRead(long userIdentityId) voidmarkAllAsRead(long userIdentityId, long spaceId) voidmarkAsRead(org.exoplatform.social.notification.model.SpaceWebNotificationItem notificationItem) voidmarkAsUnread(org.exoplatform.social.notification.model.SpaceWebNotificationItem notificationItem) voidstart()voidstop()
-
Field Details
-
APPLICATION_SUB_ITEM_IDS
- See Also:
-
METADATA_TYPE_NAME
- See Also:
-
METADATA_ACTIVITY_ID_PROPERTY
- See Also:
-
METADATA_ACTIVITY_ACTION_TYPE_PROPERTY
- See Also:
-
-
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:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
addPlugin
public void addPlugin(org.exoplatform.social.notification.plugin.SpaceWebNotificationPlugin spaceWebNotification) - Specified by:
addPluginin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService
-
dispatch
public void dispatch(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String username) throws Exception - Specified by:
dispatchin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService- Throws:
Exception
-
markAsUnread
public void markAsUnread(org.exoplatform.social.notification.model.SpaceWebNotificationItem notificationItem) throws Exception - Specified by:
markAsUnreadin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService- Throws:
Exception
-
markAsRead
public void markAsRead(org.exoplatform.social.notification.model.SpaceWebNotificationItem notificationItem) throws Exception - Specified by:
markAsReadin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService- Throws:
Exception
-
markAllAsRead
- Specified by:
markAllAsReadin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService- Throws:
Exception
-
markAllAsRead
- Specified by:
markAllAsReadin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService- Throws:
Exception
-
countUnreadItemsByApplication
- Specified by:
countUnreadItemsByApplicationin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService
-
getUnreadActivityIds
- Specified by:
getUnreadActivityIdsin interfaceorg.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:
getUnreadActivityIdsBySpacein interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
countUnreadItemsBySpace
- Specified by:
countUnreadItemsBySpacein interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService
-
countUnreadActivities
- Specified by:
countUnreadActivitiesin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService
-
countUnreadActivitiesBySpace
public long countUnreadActivitiesBySpace(String username, long spaceId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
countUnreadActivitiesBySpacein interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-