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,
com.atlassian.cache.CacheFactory cacheFactory) |
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, findSiteBlogNotifications
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntity
public CachingNotificationDao(NotificationDaoInternal delegate, com.atlassian.cache.CacheFactory cacheFactory)
public boolean isWatchingContent(@NonNull ConfluenceUser user, @NonNull ContentEntityObject content)
NotificationDao
isWatchingContent
in interface NotificationDao
isWatchingContent
in class DelegatingNotificationDaoInternal
user
- user to checkcontent
- content to check@Deprecated public void remove(com.atlassian.core.bean.EntityObject object)
removeEntity(Notification)
instead.ObjectDaoInternal
remove
in interface ObjectDao
remove
in interface ObjectDaoInternal<Notification>
remove
in class DelegatingObjectDaoInternal<Notification>
public void removeEntity(Notification objectToRemove)
ObjectDaoInternal
removeEntity
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 ObjectDao
save
in interface ObjectDaoInternal<Notification>
save
in class DelegatingObjectDaoInternal<Notification>
public void saveEntity(Notification objectToSave)
ObjectDaoInternal
saveEntity
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.ObjectDaoInternal
If 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 ObjectDao
saveRaw
in interface ObjectDaoInternal<Notification>
saveRaw
in class DelegatingObjectDaoInternal<Notification>
objectToSave
- the object to save.public void saveRawEntity(Notification objectToSave)
ObjectDaoInternal
If 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–2023 Atlassian. All rights reserved.