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
FieldsFields 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) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(org.exoplatform.social.notification.plugin.SpaceWebNotificationPlugin spaceWebNotification) countUnreadItemsByApplication(long userIdentityId, long spaceId) voiddispatch(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String username) 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:
-
-
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:
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
-
countUnreadItemsByApplication
- Specified by:
countUnreadItemsByApplicationin interfaceorg.exoplatform.social.notification.service.SpaceWebNotificationService
-