|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubscriptionService
Method Summary | |
---|---|
void |
createNotifications(String title,
String message,
long actionAccountId,
DeepaMehtaObject item)
Creates new notifications for all users with a direct or indirect (tags) subscription to the given item. |
ResultList<RelatedTopic> |
getAllNotifications()
Gets all notifications for the logged-in user. |
ArrayList<RelatedTopic> |
getAllUnseenNotifications()
Gets all unread notifications for the logged-in user. |
ResultList<RelatedTopic> |
getSubscriptions()
Gets all subscribed topics for the logged-in user. |
void |
subscribe(long accountId,
long itemId)
Create a subscription edge for useraccount to item. |
void |
unsubscribe(long accountId,
long itemId)
Remove subscription (edge) for given user account and item. |
Method Detail |
---|
void subscribe(long accountId, long itemId)
accountId
- topic-id of user accountitemId
- topic-id of user accountvoid unsubscribe(long accountId, long itemId)
accountId
- topic-id of user accountitemId
- topic-id of subscribed itemvoid createNotifications(String title, String message, long actionAccountId, DeepaMehtaObject item)
title
- title of the notificationmessage
- text part of the notificationactionAccountId
- topic-id of user account performing the action which leads to the notification of all othersitem
- item users can have subscribed (either "User Account" or any TopicType with "Tags" as child)ResultList<RelatedTopic> getSubscriptions()
ResultList<RelatedTopic> getAllNotifications()
ArrayList<RelatedTopic> getAllUnseenNotifications()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |