|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NotificationService
Provides services related to notifications.
| Method Summary | |
|---|---|
java.util.concurrent.Future<Notification> |
createOrUpdate(java.lang.String username,
Notification notification)
Create a new notification for the given user |
int |
getCount(java.lang.String username)
Returns the number of unseen notifications for the given user. |
void |
updateMetadata(java.lang.String username,
java.lang.String globalId,
org.codehaus.jackson.node.ObjectNode condition,
org.codehaus.jackson.node.ObjectNode metadata)
Updates a set of notifications with some new metadata. |
| Method Detail |
|---|
java.util.concurrent.Future<Notification> createOrUpdate(java.lang.String username,
Notification notification)
username - username of the user to create the notification fornotification - notification to create
int getCount(java.lang.String username)
username - username of the user
void updateMetadata(java.lang.String username,
java.lang.String globalId,
org.codehaus.jackson.node.ObjectNode condition,
org.codehaus.jackson.node.ObjectNode metadata)
username - of the userglobalId - of the notifications to updatecondition - to compare againstmetadata - to append
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||