|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationDao
Data Access Object interface for dealing with notifications.
Method Summary | |
---|---|
List<Notification> |
findAllDailyReportNotifications()
Find all daily report notifications. |
List<Notification> |
findAllNotificationsBySpace(Space space)
Find all notifications linked to the specified space regardless of type specified. |
List<Notification> |
findAllNotificationsByUser(com.atlassian.user.User user)
Find all notifications owned by the specified user, including digest etc. |
Notification |
findDailyReportNotification(String username)
Find the specified user's daily report notification. |
Notification |
findGlobalBlogWatchForUser(com.atlassian.user.User user)
Find the global blog notification for this user if they have one. |
Notification |
findNetworkNotificationByUser(com.atlassian.user.User user)
Find the Network notification for this user if they have one. |
Notification |
findNotificationByUserAndPage(com.atlassian.user.User user,
AbstractPage page)
|
Notification |
findNotificationByUserAndSpace(com.atlassian.user.User user,
Space space)
Find any user notification linked to the specified space regardless of type. |
Notification |
findNotificationByUserAndSpace(com.atlassian.user.User user,
String spaceKey)
Find any user notification linked to the specified space regardless of type. |
Notification |
findNotificationByUserAndSpaceAndType(com.atlassian.user.User user,
Space space,
ContentTypeEnum type)
Find the user notification linked to the specified space with a type specified - may be null if watching the whole space. |
List<Notification> |
findNotificationsByFollowing(com.atlassian.user.User user)
|
List<Notification> |
findNotificationsByPage(AbstractPage Page)
Find the notifications linked to the specified content. |
List<Notification> |
findNotificationsBySpace(Space space)
Deprecated. Since 3.5 - This method name is ambiguous. Use findNotificationsBySpaceAndType(Space, ContentTypeEnum) or
findAllNotificationsBySpace(Space) . |
List<Notification> |
findNotificationsBySpaceAndType(Space space,
ContentTypeEnum type)
Find all notifications linked to the specified space for a certain type. |
List<Notification> |
findNotificationsByUser(com.atlassian.user.User user)
Find the space and page notifications owned by the specified user. |
List<Notification> |
findSiteBlogNotifications()
Find the global blog notification for all users. |
void |
removeAllNotificationsForUser(com.atlassian.user.User user)
Deprecated. since 2.10 - Use findNotificationsByUser(User) and
ObjectDao.remove(com.atlassian.core.bean.EntityObject) instead. |
void |
removeDailyReportNotificationForUser(String username)
Deprecated. since 2.10 - Use findDailyReportNotification(String) and
ObjectDao.remove(com.atlassian.core.bean.EntityObject) instead |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
List<Notification> findNotificationsByUser(com.atlassian.user.User user)
List<Notification> findAllNotificationsByUser(com.atlassian.user.User user)
List<Notification> findNotificationsByPage(AbstractPage Page)
List<Notification> findNotificationsBySpace(Space space)
findNotificationsBySpaceAndType(Space, ContentTypeEnum)
or
findAllNotificationsBySpace(Space)
.
List<Notification> findAllNotificationsBySpace(Space space)
List<Notification> findNotificationsBySpaceAndType(Space space, ContentTypeEnum type)
Notification findNotificationByUserAndPage(com.atlassian.user.User user, AbstractPage page)
Notification findNotificationByUserAndSpace(com.atlassian.user.User user, String spaceKey)
Notification findNotificationByUserAndSpace(com.atlassian.user.User user, Space space)
Notification findNotificationByUserAndSpaceAndType(com.atlassian.user.User user, Space space, ContentTypeEnum type)
void removeAllNotificationsForUser(com.atlassian.user.User user)
findNotificationsByUser(User)
and
ObjectDao.remove(com.atlassian.core.bean.EntityObject)
instead.
user
- the user to remove all notifications forvoid removeDailyReportNotificationForUser(String username)
findDailyReportNotification(String)
and
ObjectDao.remove(com.atlassian.core.bean.EntityObject)
instead
Notification findDailyReportNotification(String username)
username
-
List<Notification> findAllDailyReportNotifications()
Notification findGlobalBlogWatchForUser(com.atlassian.user.User user)
Notification findNetworkNotificationByUser(com.atlassian.user.User user)
List<Notification> findSiteBlogNotifications()
List<Notification> findNotificationsByFollowing(com.atlassian.user.User user)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |