Interface SpaceWebNotificationService
public interface SpaceWebNotificationService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(SpaceWebNotificationPlugin spaceWebNotification) Register the space web notification plugincountUnreadItemsByApplication(long creatorId, long spaceId) Get a list of unread items per application to a givenMetadataItemcreatorId by a givenSpaceidentifiervoiddispatch(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String username) Dispatch notification infovoidmarkAllAsRead(long userIdentityId, long spaceId) Mark a list of unread items per application as read to a givenMetadataItemcreatorId by a givenSpaceidentifiervoidmarkAsRead(SpaceWebNotificationItem notificationItem) Mark a space notification item as readvoidmarkAsUnread(SpaceWebNotificationItem notificationItem) Mark a space notification item as unread
-
Field Details
-
NOTIFICATION_UNREAD_EVENT_NAME
- See Also:
-
NOTIFICATION_READ_EVENT_NAME
- See Also:
-
NOTIFICATION_ALL_READ_EVENT_NAME
- See Also:
-
-
Method Details
-
addPlugin
Register the space web notification plugin- Parameters:
spaceWebNotification-
-
dispatch
void dispatch(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String username) throws Exception Dispatch notification info- Parameters:
notification-username-- Throws:
Exception
-
markAsUnread
Mark a space notification item as unread- Parameters:
notificationItem-- Throws:
Exception
-
markAsRead
Mark a space notification item as read- Parameters:
notificationItem-- Throws:
Exception
-
markAllAsRead
Mark a list of unread items per application as read to a givenMetadataItemcreatorId by a givenSpaceidentifier- Parameters:
userIdentityId-MetadataItemcreatorIdspaceId-SpacespaceId- Throws:
Exception
-
countUnreadItemsByApplication
Get a list of unread items per application to a givenMetadataItemcreatorId by a givenSpaceidentifier- Parameters:
creatorId-MetadataItemcreatorIdspaceId-SpacespaceId- Returns:
- Map of application and unread items
-