Class CachingNotificationDao
java.lang.Object
com.atlassian.confluence.internal.notification.persistence.DelegatingNotificationDaoInternal
com.atlassian.confluence.impl.mail.notification.persistence.CachingNotificationDao
- All Implemented Interfaces:
NotificationDaoInternal
,NotificationDao
Caching for NotificationDao.
Only isWatchingContent(ConfluenceUser, ContentEntityObject)
method is
currently cached in a thread local cache.
- Since:
- 5.9
-
Field Summary
Fields inherited from class com.atlassian.confluence.internal.notification.persistence.DelegatingNotificationDaoInternal
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionCachingNotificationDao
(NotificationDaoInternal delegate, com.atlassian.cache.CacheFactory cacheFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isWatchingContent
(@NonNull ConfluenceUser user, @NonNull ContentEntityObject content) Returns true if the given user is directly watching the given content.void
remove
(Notification object) void
save
(Notification objectToSave) Methods inherited from class com.atlassian.confluence.internal.notification.persistence.DelegatingNotificationDaoInternal
findAll, findAllDailyReportNotifications, findAllNotificationsBySpace, findAllNotificationsByUser, findDailyReportNotification, findGlobalBlogWatchForUser, findNetworkNotificationByUser, findNotificationById, findNotificationByUserAndContent, findNotificationByUserAndLabel, findNotificationByUserAndSpace, findNotificationByUserAndSpace, findNotificationByUserAndSpaceAndType, findNotificationsByContent, findNotificationsByContentId, findNotificationsByContents, findNotificationsByFollowing, findNotificationsByLabel, findNotificationsBySpaceAndType, findNotificationsBySpacesAndType, findNotificationsByUser, findPageAndSpaceNotificationIdsFromSpace, findSiteBlogNotifications
-
Constructor Details
-
CachingNotificationDao
public CachingNotificationDao(NotificationDaoInternal delegate, com.atlassian.cache.CacheFactory cacheFactory) - Since:
- 7.6
-
-
Method Details
-
isWatchingContent
public boolean isWatchingContent(@NonNull ConfluenceUser user, @NonNull ContentEntityObject content) Description copied from interface:NotificationDao
Returns true if the given user is directly watching the given content.- Specified by:
isWatchingContent
in interfaceNotificationDao
- Overrides:
isWatchingContent
in classDelegatingNotificationDaoInternal
- Parameters:
user
- user to checkcontent
- content to check- Returns:
- true if the given user is directly watching the given content
-
remove
- Specified by:
remove
in interfaceNotificationDaoInternal
- Overrides:
remove
in classDelegatingNotificationDaoInternal
-
save
- Specified by:
save
in interfaceNotificationDaoInternal
- Overrides:
save
in classDelegatingNotificationDaoInternal
-