public interface NotificationDao extends ObjectDao
NON_CACHEABLE
Modifier and Type | Method and Description |
---|---|
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 |
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,
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> |
findNotificationsByContent(ContentEntityObject content) |
List<Notification> |
findNotificationsByFollowing(com.atlassian.user.User user) |
List<Notification> |
findNotificationsByLabel(Label label) |
List<Notification> |
findNotificationsByPage(AbstractPage Page)
Deprecated.
since 5.3. Use
findNotificationsByContent(com.atlassian.confluence.core.ContentEntityObject) instead. |
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.
|
Iterable<Long> |
findPageAndSpaceNotificationIdsFromSpace(Space space)
Retrieves ids for all notifications in a space.
|
List<Notification> |
findSiteBlogNotifications()
Find the global blog notification for all users.
|
boolean |
isWatchingContent(ConfluenceUser user,
ContentEntityObject content)
Returns true if the given user is directly watching the given content.
|
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
List<Notification> findNotificationsByUser(com.atlassian.user.User user)
List<Notification> findAllNotificationsByUser(com.atlassian.user.User user)
List<Notification> findNotificationsByPage(AbstractPage Page)
findNotificationsByContent(com.atlassian.confluence.core.ContentEntityObject)
instead.@Deprecated List<Notification> findNotificationsBySpace(Space space)
findNotificationsBySpaceAndType(Space, ContentTypeEnum)
or
findAllNotificationsBySpace(Space)
.List<Notification> findAllNotificationsBySpace(Space space)
Iterable<Long> findPageAndSpaceNotificationIdsFromSpace(Space space)
space
- a space to find the notifications forList<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, String spaceKey)
Notification findNotificationByUserAndSpace(com.atlassian.user.User user, Space space)
Notification findNotificationByUserAndContent(com.atlassian.user.User user, ContentEntityObject content)
List<Notification> findNotificationsByContent(ContentEntityObject content)
Notification findNotificationByUserAndLabel(com.atlassian.user.User user, Label label)
List<Notification> findNotificationsByLabel(Label label)
Notification findNotificationByUserAndSpaceAndType(com.atlassian.user.User user, Space space, ContentTypeEnum type)
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)
boolean isWatchingContent(@Nonnull ConfluenceUser user, @Nonnull ContentEntityObject content)
user
- user to checkcontent
- content to checkCopyright © 2003–2017 Atlassian. All rights reserved.