public class CachingNotificationDao extends DelegatingNotificationDaoInternal
Only isWatchingContent(ConfluenceUser, ContentEntityObject) method is
currently cached in a thread local cache.
delegate| Constructor and Description |
|---|
CachingNotificationDao(NotificationDaoInternal delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWatchingContent(@NonNull ConfluenceUser user,
@NonNull ContentEntityObject content)
Returns true if the given user is directly watching the given content.
|
void |
remove(com.atlassian.core.bean.EntityObject object)
Deprecated.
since 6.10.0. Use
removeEntity(Notification) instead. |
void |
removeEntity(Notification objectToRemove)
Remove object from persistence.
|
void |
save(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.
since 6.10.0. Use
saveEntity(Notification) instead. |
void |
saveEntity(Notification objectToSave)
Saves the given object to the database.
|
void |
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.
since 6.10.0. Use
saveRawEntity(Notification) instead. |
void |
saveRawEntity(Notification objectToSave)
Saves the object without updating modification daa.
|
findAllDailyReportNotifications, findAllNotificationsBySpace, findAllNotificationsByUser, findDailyReportNotification, findGlobalBlogWatchForUser, findNetworkNotificationByUser, findNotificationByUserAndContent, findNotificationByUserAndLabel, findNotificationByUserAndSpace, findNotificationByUserAndSpace, findNotificationByUserAndSpaceAndType, findNotificationsByContent, findNotificationsByFollowing, findNotificationsByLabel, findNotificationsBySpaceAndType, findNotificationsByUser, findPageAndSpaceNotificationIdsFromSpace, findSiteBlogNotificationsfindAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntitypublic CachingNotificationDao(NotificationDaoInternal delegate)
public boolean isWatchingContent(@NonNull ConfluenceUser user, @NonNull ContentEntityObject content)
NotificationDaoisWatchingContent in interface NotificationDaoisWatchingContent in class DelegatingNotificationDaoInternaluser - user to checkcontent - content to check@Deprecated public void remove(com.atlassian.core.bean.EntityObject object)
removeEntity(Notification) instead.ObjectDaoInternalremove in interface ObjectDaoremove in interface ObjectDaoInternal<Notification>remove in class DelegatingObjectDaoInternal<Notification>public void removeEntity(Notification objectToRemove)
ObjectDaoInternalremoveEntity in interface ObjectDaoInternal<Notification>removeEntity in class DelegatingObjectDaoInternal<Notification>@Deprecated public void save(com.atlassian.core.bean.EntityObject objectToSave)
saveEntity(Notification) instead.save in interface ObjectDaosave in interface ObjectDaoInternal<Notification>save in class DelegatingObjectDaoInternal<Notification>public void saveEntity(Notification objectToSave)
ObjectDaoInternalsaveEntity in interface ObjectDaoInternal<Notification>saveEntity in class DelegatingObjectDaoInternal<Notification>objectToSave - the object to save.@Deprecated public void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
saveRawEntity(Notification) instead.ObjectDaoInternalIf the object is new, this won't set the creation date on the object. If it already exists, then it won't set the date that it was updated.
saveRaw in interface ObjectDaosaveRaw in interface ObjectDaoInternal<Notification>saveRaw in class DelegatingObjectDaoInternal<Notification>objectToSave - the object to save.public void saveRawEntity(Notification objectToSave)
ObjectDaoInternalIf the object is new, this won't set the creation date on the object. If it already exists, then it won't set the date that it was updated.
saveRawEntity in interface ObjectDaoInternal<Notification>saveRawEntity in class DelegatingObjectDaoInternal<Notification>objectToSave - the object to save.Copyright © 2003–2020 Atlassian. All rights reserved.