|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LocalNotificationService
Provides services related to notifications
| Method Summary | |
|---|---|
int |
count(java.lang.String username,
java.lang.String globalId)
Retrieves a number of notifications with the given global id and user. |
void |
delete(java.lang.String username,
long notificationId)
Deletes a notification with the given id. |
void |
deleteByGlobalId(java.lang.String globalId)
Deletes notifications with the given global id |
void |
deleteByGlobalId(java.lang.String username,
java.lang.String globalId)
Deletes notifications with the given global id and user |
Notification |
find(java.lang.String username,
long notificationId)
Retrieves a notification with the given id and user. |
java.lang.Iterable<Notification> |
find(java.lang.String username,
java.lang.String globalId)
Retrieves notifications with the given user and global id. |
java.lang.Iterable<Notification> |
findAll(java.lang.String username)
Returns all notifications for the given user. |
java.lang.Iterable<Notification> |
findAllAfter(java.lang.String username,
long after,
long before,
int limit)
Returns all notifications for the given user after a given notification. |
java.lang.Iterable<Notification> |
findAllUnread(java.lang.String username)
Returns all unread notifications for the given user. |
void |
invalidateCachedCounts()
|
void |
setLastRead(java.lang.String username,
java.lang.Long notificationId)
Sets the latest notification that the user has seen. |
void |
setRead(java.lang.String username,
java.util.List<java.lang.Long> notificationIds)
Marks notifications read. |
Task |
setStatus(java.lang.String username,
long notificationId,
Status status)
Sets the status of the notification and creates/updates associated work item. |
| Methods inherited from interface com.atlassian.mywork.service.NotificationService |
|---|
createOrUpdate, getCount, updateMetadata |
| Method Detail |
|---|
java.lang.Iterable<Notification> findAll(java.lang.String username)
username - username of the user to retrieve notifications for
java.lang.Iterable<Notification> findAllAfter(java.lang.String username,
long after,
long before,
int limit)
username - username of the user to retrieve notifications forafter - to start searching frombefore - to start searching tolimit - maximum number of results to return
java.lang.Iterable<Notification> findAllUnread(java.lang.String username)
username - username of the user to retrieve notifications for
Notification find(java.lang.String username,
long notificationId)
null if the notification was not found.
username - owner of the notificationnotificationId - id of the notification
null if
not found
PermissionException - if the user does not own the notification
java.lang.Iterable<Notification> find(java.lang.String username,
java.lang.String globalId)
username - owner of the notificationssglobalId - global id of the notifications
int count(java.lang.String username,
java.lang.String globalId)
username - owner of the notificationsglobalId - global id of the notifications
void invalidateCachedCounts()
void delete(java.lang.String username,
long notificationId)
username - username of the user performing this actionnotificationId - id of the notification to delete
PermissionException - if the user does not own the notification
void deleteByGlobalId(java.lang.String username,
java.lang.String globalId)
username - username of the owner of the notifications to deleteglobalId - global id of the notifications to deletevoid deleteByGlobalId(java.lang.String globalId)
globalId - global id of the notifications to delete
Task setStatus(java.lang.String username,
long notificationId,
Status status)
username - owner of the notificationnotificationId - if of the notificationstatus - new status
PermissionException - if the user does not own the notification
void setLastRead(java.lang.String username,
java.lang.Long notificationId)
username - owner of the notificationnotificationId - if of the notification
void setRead(java.lang.String username,
java.util.List<java.lang.Long> notificationIds)
username - username of the current usernotificationIds - ids of the notifications to mark read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||