public class ReadThroughCachingPageDao extends DelegatingPageDao
| Modifier and Type | Method and Description |
|---|---|
static ReadThroughCachingPageDao |
create(PageDaoInternal delegateDao,
com.atlassian.cache.CacheFactory cacheFactory) |
Page |
getPage(Space space,
String pageTitle)
Get the page by space and title.
|
Page |
getPageWithComments(Space space,
String pageTitle)
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)
Remove object from persistence.
|
void |
removeEntity(Page objectToRemove)
Remove object from persistence.
|
void |
save(com.atlassian.core.bean.EntityObject objectToSave) |
void |
save(com.atlassian.core.bean.EntityObject objectToSave,
com.atlassian.core.bean.EntityObject originalObject)
Saves the given current object and historical object
|
void |
saveEntity(Page objectToSave)
Saves the given object to the database.
|
void |
saveEntity(Page currentObject,
@Nullable Page originalObject)
Saves the given current object and historical object.
|
void |
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
saves the object.
|
void |
saveRawEntity(Page objectToSave)
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, getAllModifiers, getAllModifiers, 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, 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, getTrashedEntities, getUndefinedLinks, getUndefinedPages, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew, refresh, refreshEntity, replicate, replicateEntity, saveRawWithoutReindexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilteredAbstractPages, getFilteredAbstractPages, getFilteredAbstractPages, getFilteredAbstractPages, getFilteredAbstractPages, getFilteredAbstractPagesByCreationDate, getFilteredAbstractPagesByTitle, getFilteredBlogPosts, getFilteredChildren, getFilteredPages, getFilteredPages, getFilteredTopLevelPagesfindContentBySpaceIdAndStatusAndFilterpublic static ReadThroughCachingPageDao create(PageDaoInternal delegateDao, com.atlassian.cache.CacheFactory cacheFactory)
public Page getPage(Space space, String pageTitle)
PageDaogetPage in interface PageDaogetPage in class DelegatingPageDaospace - The space the page belongs topageTitle - The title of the pagepublic Page getPageWithComments(Space space, String pageTitle)
PageDaogetPageWithComments in interface PageDaogetPageWithComments in class DelegatingPageDaospace - The space the page belongs topageTitle - The title of the pagepublic void remove(com.atlassian.core.bean.EntityObject object)
ObjectDaoremove in interface ObjectDaoremove in interface ObjectDaoInternal<Page>remove in class DelegatingPageDaopublic void removeEntity(Page objectToRemove)
ObjectDaoInternalremoveEntity in interface ObjectDaoInternal<Page>removeEntity in class DelegatingPageDaopublic void save(com.atlassian.core.bean.EntityObject objectToSave,
com.atlassian.core.bean.EntityObject originalObject)
VersionedObjectDaosave in interface VersionedObjectDao<Page>save in class DelegatingPageDaoobjectToSave - 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)
VersionedObjectDaoInternalsaveEntity in interface VersionedObjectDaoInternal<Page>saveEntity in class DelegatingPageDaocurrentObject - the current object.originalObject - the original object. This will be mutated to become a historical version as part of this save.public void save(com.atlassian.core.bean.EntityObject objectToSave)
save in interface ObjectDaosave in interface ObjectDaoInternal<Page>save in class DelegatingPageDaopublic void saveEntity(Page objectToSave)
ObjectDaoInternalsaveEntity in interface ObjectDaoInternal<Page>saveEntity in class DelegatingPageDaoobjectToSave - the object to save.public void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
ObjectDaosaveRaw in interface ObjectDaosaveRaw in interface ObjectDaoInternal<Page>saveRaw in class DelegatingPageDaoobjectToSave - the object to save.public void saveRawEntity(Page 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<Page>saveRawEntity in class DelegatingPageDaoobjectToSave - the object to save.Copyright © 2003–2022 Atlassian. All rights reserved.