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 TypeMethodDescriptionbooleanisWatchingContent(@NonNull ConfluenceUser user, @NonNull ContentEntityObject content) Returns true if the given user is directly watching the given content.voidremove(Notification object) voidsave(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:NotificationDaoReturns true if the given user is directly watching the given content.- Specified by:
isWatchingContentin interfaceNotificationDao- Overrides:
isWatchingContentin classDelegatingNotificationDaoInternal- Parameters:
user- user to checkcontent- content to check- Returns:
- true if the given user is directly watching the given content
-
remove
- Specified by:
removein interfaceNotificationDaoInternal- Overrides:
removein classDelegatingNotificationDaoInternal
-
save
- Specified by:
savein interfaceNotificationDaoInternal- Overrides:
savein classDelegatingNotificationDaoInternal
-