public interface NotificationDao extends ObjectDao
NON_CACHEABLE
Modifier and Type | Method and Description |
---|---|
java.util.List<Notification> |
findAllDailyReportNotifications()
Find all daily report notifications.
|
java.util.List<Notification> |
findAllNotificationsBySpace(Space space)
Find all notifications linked to the specified space regardless of type specified.
|
java.util.List<Notification> |
findAllNotificationsByUser(com.atlassian.user.User user)
Find all notifications owned by the specified user, including digest
etc.
|
Notification |
findDailyReportNotification(java.lang.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 |
findNotificationByUserAndContent(com.atlassian.user.User user,
ContentEntityObject content)
Find any user notification linked to the specified content.
|
Notification |
findNotificationByUserAndLabel(com.atlassian.user.User user,
Label label)
Find any user notification linked to the specified label.
|
Notification |
findNotificationByUserAndPage(com.atlassian.user.User user,
AbstractPage page)
Deprecated.
|
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,
java.lang.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.
|
java.util.List<Notification> |
findNotificationsByContent(ContentEntityObject content) |
java.util.List<Notification> |
findNotificationsByFollowing(com.atlassian.user.User user) |
java.util.List<Notification> |
findNotificationsByLabel(Label label) |
java.util.List<Notification> |
findNotificationsByPage(AbstractPage Page)
Deprecated.
since 5.3. Use
findNotificationsByContent(com.atlassian.confluence.core.ContentEntityObject) instead. |
java.util.List<Notification> |
findNotificationsBySpace(Space space)
Deprecated.
Since 3.5 - This method name is ambiguous. Use
findNotificationsBySpaceAndType(Space, ContentTypeEnum) or
findAllNotificationsBySpace(Space) . |
java.util.List<Notification> |
findNotificationsBySpaceAndType(Space space,
ContentTypeEnum type)
Find all notifications linked to the specified space for a certain type.
|
java.util.List<Notification> |
findNotificationsByUser(com.atlassian.user.User user)
Find the space and page notifications owned by the specified user.
|
java.lang.Iterable<java.lang.Long> |
findPageAndSpaceNotificationIdsFromSpace(Space space)
Retrieves ids for all notifications in a space.
|
java.util.List<Notification> |
findSiteBlogNotifications()
Find the global blog notification for all users.
|
findAll, findAllSorted, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
java.util.List<Notification> findNotificationsByUser(com.atlassian.user.User user)
java.util.List<Notification> findAllNotificationsByUser(com.atlassian.user.User user)
java.util.List<Notification> findNotificationsByPage(AbstractPage Page)
findNotificationsByContent(com.atlassian.confluence.core.ContentEntityObject)
instead.@Deprecated java.util.List<Notification> findNotificationsBySpace(Space space)
findNotificationsBySpaceAndType(Space, ContentTypeEnum)
or
findAllNotificationsBySpace(Space)
.java.util.List<Notification> findAllNotificationsBySpace(Space space)
java.lang.Iterable<java.lang.Long> findPageAndSpaceNotificationIdsFromSpace(Space space)
space
- a space to find the notifications forjava.util.List<Notification> findNotificationsBySpaceAndType(Space space, ContentTypeEnum type)
Notification findNotificationByUserAndPage(com.atlassian.user.User user, AbstractPage page)
findNotificationByUserAndContent(com.atlassian.user.User, com.atlassian.confluence.core.ContentEntityObject)
instead.Notification findNotificationByUserAndSpace(com.atlassian.user.User user, java.lang.String spaceKey)
Notification findNotificationByUserAndSpace(com.atlassian.user.User user, Space space)
Notification findNotificationByUserAndContent(com.atlassian.user.User user, ContentEntityObject content)
java.util.List<Notification> findNotificationsByContent(ContentEntityObject content)
Notification findNotificationByUserAndLabel(com.atlassian.user.User user, Label label)
java.util.List<Notification> findNotificationsByLabel(Label label)
Notification findNotificationByUserAndSpaceAndType(com.atlassian.user.User user, Space space, ContentTypeEnum type)
Notification findDailyReportNotification(java.lang.String username)
username
- java.util.List<Notification> findAllDailyReportNotifications()
Notification findGlobalBlogWatchForUser(com.atlassian.user.User user)
Notification findNetworkNotificationByUser(com.atlassian.user.User user)
java.util.List<Notification> findSiteBlogNotifications()
java.util.List<Notification> findNotificationsByFollowing(com.atlassian.user.User user)
Copyright © 2003-2014 Atlassian. All Rights Reserved.