DelegatingNotificationDaoInternal
instead.@Deprecated public class DelegatingNotificationDao extends Object implements NotificationDao
Modifier and Type | Field and Description |
---|---|
protected NotificationDao |
delegate
Deprecated.
|
Constructor and Description |
---|
DelegatingNotificationDao(NotificationDao delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
@NonNull List<Notification> |
findAll()
Deprecated.
Find all objects currently persisted of a particular type.
|
List<Notification> |
findAllDailyReportNotifications()
Deprecated.
Find all daily report notifications.
|
List<Notification> |
findAllNotificationsBySpace(Space space)
Deprecated.
Find all notifications linked to the specified space regardless of type specified.
|
List<Notification> |
findAllNotificationsByUser(com.atlassian.user.User user)
Deprecated.
Find all notifications owned by the specified user, including digest
etc.
|
@NonNull List<Notification> |
findAllSorted(String sortField)
Deprecated.
Find all objects currently persisted of a particular type and sort results by named property.
|
@NonNull List<Notification> |
findAllSorted(String sortField,
boolean cacheable,
int offset,
int maxResultCount)
Deprecated.
Find all objects currently persisted of a particular type and sort results by named property.
|
<T> @NonNull PageResponse<T> |
findByClassIds(Iterable<Long> ids,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<? super T> filter)
Deprecated.
Find a list of objects from the same persistent class.
|
Notification |
findDailyReportNotification(String username)
Deprecated.
Find the specified user's daily report notification.
|
Notification |
findGlobalBlogWatchForUser(com.atlassian.user.User user)
Deprecated.
Find the global blog notification for this user if they have one.
|
Notification |
findNetworkNotificationByUser(com.atlassian.user.User user)
Deprecated.
Find the Network notification for this user if they have one.
|
Notification |
findNotificationByUserAndContent(com.atlassian.user.User user,
ContentEntityObject content)
Deprecated.
Find any user notification linked to the specified content.
|
Notification |
findNotificationByUserAndLabel(com.atlassian.user.User user,
Label label)
Deprecated.
Find any user notification linked to the specified label.
|
Notification |
findNotificationByUserAndSpace(com.atlassian.user.User user,
Space space)
Deprecated.
Find any user notification linked to the specified space regardless of type.
|
Notification |
findNotificationByUserAndSpace(com.atlassian.user.User user,
String spaceKey)
Deprecated.
Find any user notification linked to the specified space regardless of type.
|
Notification |
findNotificationByUserAndSpaceAndType(com.atlassian.user.User user,
Space space,
ContentTypeEnum type)
Deprecated.
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)
Deprecated.
|
List<Notification> |
findNotificationsByFollowing(com.atlassian.user.User user)
Deprecated.
|
List<Notification> |
findNotificationsByLabel(Label label)
Deprecated.
|
List<Notification> |
findNotificationsBySpaceAndType(Space space,
ContentTypeEnum type)
Deprecated.
Find all notifications linked to the specified space for a certain type.
|
List<Notification> |
findNotificationsByUser(com.atlassian.user.User user)
Deprecated.
Find the space and page notifications owned by the specified user.
|
Iterable<Long> |
findPageAndSpaceNotificationIdsFromSpace(Space space)
Deprecated.
Retrieves ids for all notifications in a space.
|
List<Notification> |
findSiteBlogNotifications()
Deprecated.
Find the global blog notification for all users.
|
Class<Notification> |
getPersistentClass()
Deprecated.
|
boolean |
isWatchingContent(@NonNull ConfluenceUser user,
@NonNull ContentEntityObject content)
Deprecated.
Returns true if the given user is directly watching the given content.
|
void |
refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
Deprecated.
Refreshes the object again with the fresh data from db.
|
void |
remove(com.atlassian.core.bean.EntityObject object)
Deprecated.
Remove object from persistence.
|
void |
replicate(Object objectToReplicate)
Deprecated.
Replicate the object.
|
void |
save(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.
|
void |
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.
saves the object.
|
protected final NotificationDao delegate
public DelegatingNotificationDao(NotificationDao delegate)
public List<Notification> findNotificationsByUser(com.atlassian.user.User user)
NotificationDao
findNotificationsByUser
in interface NotificationDao
public List<Notification> findAllNotificationsByUser(com.atlassian.user.User user)
NotificationDao
findAllNotificationsByUser
in interface NotificationDao
public List<Notification> findAllNotificationsBySpace(Space space)
NotificationDao
findAllNotificationsBySpace
in interface NotificationDao
public Iterable<Long> findPageAndSpaceNotificationIdsFromSpace(Space space)
NotificationDao
findPageAndSpaceNotificationIdsFromSpace
in interface NotificationDao
space
- a space to find the notifications forpublic List<Notification> findNotificationsBySpaceAndType(Space space, ContentTypeEnum type)
NotificationDao
findNotificationsBySpaceAndType
in interface NotificationDao
public Notification findNotificationByUserAndSpace(com.atlassian.user.User user, String spaceKey)
NotificationDao
findNotificationByUserAndSpace
in interface NotificationDao
public Notification findNotificationByUserAndSpace(com.atlassian.user.User user, Space space)
NotificationDao
findNotificationByUserAndSpace
in interface NotificationDao
public Notification findNotificationByUserAndContent(com.atlassian.user.User user, ContentEntityObject content)
NotificationDao
findNotificationByUserAndContent
in interface NotificationDao
public List<Notification> findNotificationsByContent(ContentEntityObject content)
findNotificationsByContent
in interface NotificationDao
public Notification findNotificationByUserAndLabel(com.atlassian.user.User user, Label label)
NotificationDao
findNotificationByUserAndLabel
in interface NotificationDao
public List<Notification> findNotificationsByLabel(Label label)
findNotificationsByLabel
in interface NotificationDao
public Notification findNotificationByUserAndSpaceAndType(com.atlassian.user.User user, Space space, ContentTypeEnum type)
NotificationDao
findNotificationByUserAndSpaceAndType
in interface NotificationDao
public Notification findDailyReportNotification(String username)
NotificationDao
findDailyReportNotification
in interface NotificationDao
public List<Notification> findAllDailyReportNotifications()
NotificationDao
findAllDailyReportNotifications
in interface NotificationDao
public Notification findGlobalBlogWatchForUser(com.atlassian.user.User user)
NotificationDao
findGlobalBlogWatchForUser
in interface NotificationDao
public Notification findNetworkNotificationByUser(com.atlassian.user.User user)
NotificationDao
findNetworkNotificationByUser
in interface NotificationDao
public List<Notification> findSiteBlogNotifications()
NotificationDao
findSiteBlogNotifications
in interface NotificationDao
public List<Notification> findNotificationsByFollowing(com.atlassian.user.User user)
findNotificationsByFollowing
in interface NotificationDao
public boolean isWatchingContent(@NonNull ConfluenceUser user, @NonNull ContentEntityObject content)
NotificationDao
isWatchingContent
in interface NotificationDao
user
- user to checkcontent
- content to checkpublic void remove(com.atlassian.core.bean.EntityObject object)
ObjectDao
public void refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
ObjectDao
public void replicate(Object objectToReplicate)
ObjectDao
public @NonNull List<Notification> findAll()
ObjectDao
public @NonNull List<Notification> findAllSorted(String sortField)
ObjectDao
findAllSorted
in interface ObjectDao
sortField
- the name of the property to be sorted on. This should be null if no sorting is required.public @NonNull List<Notification> findAllSorted(String sortField, boolean cacheable, int offset, int maxResultCount)
ObjectDao
findAllSorted
in interface ObjectDao
sortField
- the name of the property to be sorted on. This should be null if no sorting is required.cacheable
- control whether the results should be cachedoffset
- the index of the first result to be returnedmaxResultCount
- the maximum number of results required. Use -1 to specify no limit.public <T> @NonNull PageResponse<T> findByClassIds(Iterable<Long> ids, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super T> filter)
ObjectDao
findByClassIds
in interface ObjectDao
T
- the type of entity to returnids
- - the ids of the entities to findlimitedRequest
- the pagination request defining the page size to fetchfilter
- a predicate to do in memory filtering of the result set before returningpublic void save(com.atlassian.core.bean.EntityObject objectToSave)
public Class<Notification> getPersistentClass()
getPersistentClass
in interface ObjectDao
public void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
ObjectDao
Copyright © 2003–2021 Atlassian. All rights reserved.