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, 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
public static ReadThroughCachingPageDao create(PageDaoInternal delegateDao, com.atlassian.cache.CacheFactory 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 pagepublic void remove(com.atlassian.core.bean.EntityObject object)
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
public void save(com.atlassian.core.bean.EntityObject objectToSave, com.atlassian.core.bean.EntityObject originalObject)
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.public void save(com.atlassian.core.bean.EntityObject objectToSave)
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.public void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
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–2021 Atlassian. All rights reserved.