public class CachingNotificationDao extends DelegatingNotificationDao
Only isWatchingContent(ConfluenceUser, ContentEntityObject)
method is
currently cached in a thread local cache.
delegate
NON_CACHEABLE
Constructor and Description |
---|
CachingNotificationDao(NotificationDao delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
isWatchingContent(ConfluenceUser user,
ContentEntityObject content)
Returns true if the given user is directly watching the given content.
|
void |
remove(com.atlassian.core.bean.EntityObject object)
Remove object from persistence.
|
void |
save(com.atlassian.core.bean.EntityObject objectToSave) |
void |
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
saves the object.
|
findAll, findAllDailyReportNotifications, findAllNotificationsBySpace, findAllNotificationsByUser, findAllSorted, findAllSorted, findByClassIds, findDailyReportNotification, findGlobalBlogWatchForUser, findNetworkNotificationByUser, findNotificationByUserAndContent, findNotificationByUserAndLabel, findNotificationByUserAndPage, findNotificationByUserAndSpace, findNotificationByUserAndSpace, findNotificationByUserAndSpaceAndType, findNotificationsByContent, findNotificationsByFollowing, findNotificationsByLabel, findNotificationsByPage, findNotificationsBySpace, findNotificationsBySpaceAndType, findNotificationsByUser, findPageAndSpaceNotificationIdsFromSpace, findSiteBlogNotifications, getPersistentClass, refresh, replicate
public CachingNotificationDao(NotificationDao delegate)
public boolean isWatchingContent(@Nonnull ConfluenceUser user, @Nonnull ContentEntityObject content)
NotificationDao
isWatchingContent
in interface NotificationDao
isWatchingContent
in class DelegatingNotificationDao
user
- user to checkcontent
- content to checkpublic void remove(com.atlassian.core.bean.EntityObject object)
ObjectDao
remove
in interface ObjectDao
remove
in class DelegatingNotificationDao
public void save(com.atlassian.core.bean.EntityObject objectToSave)
save
in interface ObjectDao
save
in class DelegatingNotificationDao
public void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
ObjectDao
saveRaw
in interface ObjectDao
saveRaw
in class DelegatingNotificationDao
Copyright © 2003–2017 Atlassian. All rights reserved.