ReadThroughCachingPageDao
@Deprecated public class CachingPageDao extends DelegatingPageDao
Constructor and Description |
---|
CachingPageDao(PageDaoInternal delegateDao,
PageIdCache pageIdCache)
Deprecated.
since 5.10 Use
CachingPageDao(PageDaoInternal, VCacheFactory) |
CachingPageDao(PageDaoInternal delegateDao,
com.atlassian.vcache.VCacheFactory cacheFactory)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Page |
getPage(Space space,
String pageTitle)
Deprecated.
Get the page by space and title.
|
Page |
getPageWithComments(Space space,
String pageTitle)
Deprecated.
Get the page by space and title, and perform an eager load of the comments and their children.
|
void |
remove(com.atlassian.core.bean.EntityObject object)
Deprecated.
since 6.10.0. Use
removeEntity(Page) instead. |
void |
removeEntity(Page objectToRemove)
Deprecated.
Remove object from persistence.
|
void |
save(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.
since 6.10.0. Use
saveEntity(Page) instead. |
void |
save(com.atlassian.core.bean.EntityObject objectToSave,
com.atlassian.core.bean.EntityObject originalObject)
Deprecated.
since 6.10.0. Use
saveEntity(Page, Page) instead. |
void |
saveEntity(Page objectToSave)
Deprecated.
Saves the given object to the database.
|
void |
saveEntity(Page currentObject,
@Nullable Page originalObject)
Deprecated.
Saves the given current object and historical object.
|
void |
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.
since 6.10.0. Use
saveRawEntity(Page) instead. |
void |
saveRawEntity(Page objectToSave)
Deprecated.
Saves the object without updating modification daa.
|
countAllPages, countContentBySpaceIdAndStatus, countCurrentPages, countDraftPages, countPagesInSubtree, countPagesWithUnpublishedChanges, findAll, findAllDraftsFor, findAllLegacyDraftsFor, findAllSorted, findAllSorted, findBlogsWithCurrentOrHistoricalTitleInAllPermittedSpacesExcept, findBlogsWithCurrentOrHistoricalTitleInPermittedSpace, findByClassIds, findByClassIdsFiltered, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findContentPermissionSummaryByIds, findCurrentPages, findDraftFor, findDraftsWithUnpublishedChangesForUser, findHistoricalVersionsAfterVersion, findLatestVersionsCount, findLatestVersionsIterator, findPagesWithCurrentOrHistoricalTitleInAllPermittedSpacesExcept, findPagesWithCurrentOrHistoricalTitleInPermittedSpace, findPreviousVersions, findUnpublishedContentWithUserContributions, getAbstractPages, getAbstractPages, getAbstractPages, getAbstractPages, getAbstractPages, getAbstractPagesByCreationDate, getAbstractPagesByTitle, getAllChildren, getAllCurrentEntities, getAncestorsFor, getAuthoredPagesCountByUser, getBlogPosts, getById, getChildren, getCommentCountOnPage, getContentAuthoredByUser, getContributionStatusByUser, getDelegateDao, getDescendantIds, getDescendantIds, getDescendants, getDescendantTitles, getDraftChildren, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getMaxSiblingPosition, getObjectType, getOldestPageCreationDate, getOrphanedPages, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getPageById, getPageByIdWithComments, getPageCount, getPageIds, getPageInTrash, getPages, getPages, getPages, getPagesByIds, getPagesCreatedOrUpdatedSinceDate, getPagesStartingWith, getPageStatistics, getPagesWithPermissions, getPermissionPages, getPermissionPages, getPermissionPagesCount, getPersistentClass, getRecentlyAddedEntities, getRecentlyAddedPages, getRecentlyAuthoredPagesByUser, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getRecentlyUpdatedPages, getTopLevelPages, getTopLevelPages, getTrashedContent, getTrashedContents, getUndefinedLinks, getUndefinedPages, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew, refresh, refreshEntity, replicate, replicateEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFilteredAbstractPages, getFilteredAbstractPages, getFilteredAbstractPages, getFilteredAbstractPages, getFilteredAbstractPages, getFilteredAbstractPagesByCreationDate, getFilteredAbstractPagesByTitle, getFilteredBlogPosts, getFilteredChildren, getFilteredPages, getFilteredPages, getFilteredTopLevelPages
findContentBySpaceIdAndStatusAndFilter
@Deprecated public CachingPageDao(PageDaoInternal delegateDao, PageIdCache pageIdCache)
CachingPageDao(PageDaoInternal, VCacheFactory)
public CachingPageDao(PageDaoInternal delegateDao, com.atlassian.vcache.VCacheFactory cacheFactory)
public Page getPage(Space space, String pageTitle)
PageDao
getPage
in interface PageDao
getPage
in class DelegatingPageDao
space
- The space the page belongs topageTitle
- The title of the pagepublic Page getPageWithComments(Space space, String pageTitle)
PageDao
getPageWithComments
in interface PageDao
getPageWithComments
in class DelegatingPageDao
space
- The space the page belongs topageTitle
- The title of the page@Deprecated public void remove(com.atlassian.core.bean.EntityObject object)
removeEntity(Page)
instead.ObjectDao
remove
in interface ObjectDao
remove
in interface ObjectDaoInternal<Page>
remove
in class DelegatingPageDao
public void removeEntity(Page objectToRemove)
ObjectDaoInternal
removeEntity
in interface ObjectDaoInternal<Page>
removeEntity
in class DelegatingPageDao
@Deprecated public void save(com.atlassian.core.bean.EntityObject objectToSave, com.atlassian.core.bean.EntityObject originalObject)
saveEntity(Page, Page)
instead.VersionedObjectDao
save
in interface VersionedObjectDao<Page>
save
in class DelegatingPageDao
objectToSave
- the current object.originalObject
- the original object. This will be mutated to become a historical version as part of this save.public void saveEntity(Page currentObject, @Nullable Page originalObject)
VersionedObjectDaoInternal
saveEntity
in interface VersionedObjectDaoInternal<Page>
saveEntity
in class DelegatingPageDao
currentObject
- the current object.originalObject
- the original object. This will be mutated to become a historical version as part of this save.@Deprecated public void save(com.atlassian.core.bean.EntityObject objectToSave)
saveEntity(Page)
instead.save
in interface ObjectDao
save
in interface ObjectDaoInternal<Page>
save
in class DelegatingPageDao
public void saveEntity(Page objectToSave)
ObjectDaoInternal
saveEntity
in interface ObjectDaoInternal<Page>
saveEntity
in class DelegatingPageDao
objectToSave
- the object to save.@Deprecated public void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
saveRawEntity(Page)
instead.ObjectDao
saveRaw
in interface ObjectDao
saveRaw
in interface ObjectDaoInternal<Page>
saveRaw
in class DelegatingPageDao
objectToSave
- the object to save.public void saveRawEntity(Page 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<Page>
saveRawEntity
in class DelegatingPageDao
objectToSave
- the object to save.Copyright © 2003–2020 Atlassian. All rights reserved.