public class CachingNotificationDao extends DelegatingNotificationDao
Only isWatchingContent(ConfluenceUser, ContentEntityObject) method is
currently cached in a thread local cache.
delegateNON_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, replicatepublic CachingNotificationDao(NotificationDao delegate)
public boolean isWatchingContent(@Nonnull ConfluenceUser user, @Nonnull ContentEntityObject content)
NotificationDaoisWatchingContent in interface NotificationDaoisWatchingContent in class DelegatingNotificationDaouser - user to checkcontent - content to checkpublic void remove(com.atlassian.core.bean.EntityObject object)
ObjectDaoremove in interface ObjectDaoremove in class DelegatingNotificationDaopublic void save(com.atlassian.core.bean.EntityObject objectToSave)
save in interface ObjectDaosave in class DelegatingNotificationDaopublic void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
ObjectDaosaveRaw in interface ObjectDaosaveRaw in class DelegatingNotificationDaoCopyright © 2003–2017 Atlassian. All rights reserved.