Interface PageDaoInternal
-
- All Superinterfaces:
ContentEntityObjectDao<Page>
,ContentEntityObjectDaoInternal<Page>
,ObjectDao
,ObjectDaoInternal<Page>
,PageDao
,VersionedObjectDao<Page>
,VersionedObjectDaoInternal<Page>
- All Known Implementing Classes:
DelegatingPageDao
,HibernatePageDao
,ReadThroughCachingPageDao
public interface PageDaoInternal extends PageDao, ContentEntityObjectDaoInternal<Page>
Dao for Pages.- Since:
- 6.10.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PageResponse<Page>
findCurrentPages(LimitedRequest request)
Find all current pages.default PageResponse<AbstractPage>
getFilteredAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages from a space that exactly match the given title and are in any of the specified statuses, and match the given filter, limited to the pagination request.default PageResponse<AbstractPage>
getFilteredAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable Predicate<? super AbstractPage> filter)
Retrieves a page response for all content (pages and/or blog posts) in the given space, within any of the specified statuses and content types.default PageResponse<AbstractPage>
getFilteredAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages that exactly match the given title, are in any of the specified statuses, and match the given filter, limited to the pagination request.default PageResponse<AbstractPage>
getFilteredAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable Predicate<? super AbstractPage> filter)
Retrieves a page response of all pages found in this instance of Confluence, within any of the given statuses.default PageResponse<AbstractPage>
getFilteredAbstractPages(org.joda.time.DateTime date, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages created on the given date and are in the , that also match the given filter, limited to the page request.default PageResponse<AbstractPage>
getFilteredAbstractPagesByCreationDate(org.joda.time.DateTime date, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages created on the given date, that also match the given filter, limited to the page request.default PageResponse<AbstractPage>
getFilteredAbstractPagesByTitle(String title, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages that exactly match the given title, limited to the pagination request.default PageResponse<BlogPost>
getFilteredBlogPosts(Space space, LimitedRequest pageRequest, @Nullable Predicate<? super BlogPost> filter)
Retrieves a page response of all the current blog posts in the give space.default PageResponse<Page>
getFilteredChildren(Page page, LimitedRequest pageRequest, Predicate<? super Page> predicate, Depth depth)
Returns the children of a page which have a status of CURRENT, limited to the pagination requested.default PageResponse<Page>
getFilteredPages(LimitedRequest pageRequest, @Nullable Predicate<? super Page> filter)
Retrieves a page response of all the current pages of the Confluence instance.default PageResponse<Page>
getFilteredPages(Space space, LimitedRequest pageRequest, @Nullable Predicate<? super Page> filter)
Retrieves a page response of the current content in the given space.default PageResponse<Page>
getFilteredTopLevelPages(Space space, LimitedRequest limitedRequest, Predicate<? super Page> predicate)
Collection<Page>
getPermissionPages(Space space, LimitedRequest limitedRequest)
Pagination permission pages for particular Spacelong
getPermissionPagesCount(Space space)
Get total number of permission pages for particular SpacePageResponse<Page>
scanFilteredPages(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable Predicate<? super Page> filter)
Retrieves a page response of all pages in space with specified content statuses.PageResponse<Page>
scanFilteredPages(List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable Predicate<? super Page> filter)
Retrieves a page response of all the pages with specified content statuses.-
Methods inherited from interface com.atlassian.confluence.core.persistence.ContentEntityObjectDao
countContentBySpaceIdAndStatus, findAllDraftsFor, findAllLegacyDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findDraftsWithUnpublishedChangesForUser, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getAllModifiers, getAllModifiers, getById, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getTrashedContents, getTrashedContents, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew
-
Methods inherited from interface com.atlassian.confluence.internal.persistence.ContentEntityObjectDaoInternal
findContentBySpaceIdAndStatusAndFilter, getTrashedEntities, saveRawWithoutReindex
-
Methods inherited from interface com.atlassian.confluence.internal.persistence.ObjectDaoInternal
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
-
Methods inherited from interface com.atlassian.confluence.pages.persistence.dao.PageDao
countAllPages, countCurrentPages, countDraftPages, countPagesInSubtree, countPagesWithUnpublishedChanges, findBlogsWithCurrentOrHistoricalTitleInAllPermittedSpacesExcept, findBlogsWithCurrentOrHistoricalTitleInPermittedSpace, findContentPermissionSummaryByIds, findPagesWithCurrentOrHistoricalTitleInAllPermittedSpacesExcept, findPagesWithCurrentOrHistoricalTitleInPermittedSpace, getAbstractPages, getAbstractPages, getAbstractPages, getAbstractPages, getAbstractPages, getAbstractPagesByCreationDate, getAbstractPagesByTitle, getAllChildren, getAncestorsFor, getAuthoredPagesCountByUser, getBlogPosts, getChildren, getCommentCountOnPage, getDescendantIds, getDescendantIds, getDescendants, getDescendantTitles, getDraftChildren, getMaxSiblingPosition, getOrphanedPages, getPage, getPageById, getPageByIdWithComments, getPageCount, getPageCount, getPageIds, getPageInTrash, getPages, getPages, getPages, getPagesByIds, getPagesCreatedOrUpdatedSinceDate, getPagesStartingWith, getPageStatistics, getPagesWithPermissions, getPageWithComments, getPermissionPages, getRecentlyAddedPages, getRecentlyAuthoredPagesByUser, getRecentlyUpdatedPages, getTopLevelPages, getTopLevelPages, getUndefinedLinks, getUndefinedPages
-
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
-
Methods inherited from interface com.atlassian.confluence.internal.persistence.VersionedObjectDaoInternal
saveEntity
-
-
-
-
Method Detail
-
findCurrentPages
PageResponse<Page> findCurrentPages(LimitedRequest request)
Find all current pages.- Parameters:
request
- the limited pagination request.- Returns:
- a pagination response of the current pages.
-
getFilteredPages
default PageResponse<Page> getFilteredPages(Space space, LimitedRequest pageRequest, @Nullable Predicate<? super Page> filter)
Retrieves a page response of the current content in the given space.- Parameters:
space
- the space to locate the page inpageRequest
- the start and offset of the pages to retrievefilter
- the predicate to pages the returned results by, may be null- Since:
- 7.0.1
-
getFilteredPages
default PageResponse<Page> getFilteredPages(LimitedRequest pageRequest, @Nullable Predicate<? super Page> filter)
Retrieves a page response of all the current pages of the Confluence instance.- Parameters:
pageRequest
- the start and offset of the pages to retrievefilter
- the predicate to filter the returned results by, may be null- Returns:
- the paginated list of pages
- Since:
- 7.0.1
-
scanFilteredPages
PageResponse<Page> scanFilteredPages(List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable Predicate<? super Page> filter)
Retrieves a page response of all the pages with specified content statuses.- Parameters:
statuses
- list of content status which we are interested to fetchpageRequest
- limit and cursor of the pages to retrieve. Cursor in pageRequest can't be null.filter
- the predicate to filter the returned results by, may be null- Returns:
- the paginated list of pages
- Since:
- 7.18.0
-
scanFilteredPages
PageResponse<Page> scanFilteredPages(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable Predicate<? super Page> filter)
Retrieves a page response of all pages in space with specified content statuses.- Parameters:
space
- the space to locate the page instatuses
- content status to matchpageRequest
- limit and cursor of the pages to retrieve. Cursor in pageRequest can't be null.filter
- the predicate to filter the returned results by, may be null- Returns:
- the paginated list of pages
- Since:
- 7.18.0
-
getFilteredBlogPosts
default PageResponse<BlogPost> getFilteredBlogPosts(Space space, LimitedRequest pageRequest, @Nullable Predicate<? super BlogPost> filter)
Retrieves a page response of all the current blog posts in the give space.- Parameters:
space
- the space to locate the blog posts inpageRequest
- the start and offset of the pages to retrievefilter
- the predicate to filter the returned results by, may be null- Returns:
- the paginated list of all the current blog posts by space
- Since:
- 7.0.1
-
getFilteredTopLevelPages
default PageResponse<Page> getFilteredTopLevelPages(Space space, LimitedRequest limitedRequest, Predicate<? super Page> predicate)
- Since:
- 7.0.1
-
getFilteredChildren
default PageResponse<Page> getFilteredChildren(Page page, LimitedRequest pageRequest, Predicate<? super Page> predicate, Depth depth)
Returns the children of a page which have a status of CURRENT, limited to the pagination requested.- Parameters:
page
- the page to find children forpageRequest
- the pagination requestedpredicate
- predicate used to entitiesdepth
- the depth to return children to- Returns:
- the paginated response of Page entities
- Since:
- 7.0.1
-
getFilteredAbstractPagesByTitle
default PageResponse<AbstractPage> getFilteredAbstractPagesByTitle(String title, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages that exactly match the given title, limited to the pagination request. To get just pages or blog posts can be requested just specifying a content type based filter.- Parameters:
title
- the title of the page to matchpageRequest
- the pagination requestedfilter
- the predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages by title
- Since:
- 7.0.1
-
getFilteredAbstractPagesByCreationDate
default PageResponse<AbstractPage> getFilteredAbstractPagesByCreationDate(org.joda.time.DateTime date, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages created on the given date, that also match the given filter, limited to the page request. To get just pages or blog posts can be requested just specifying a content type based filter.- Parameters:
date
- - the creation date to matchpageRequest
- the pagination requestfilter
- the predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages created on the given date
- Since:
- 7.0.1
-
getFilteredAbstractPages
default PageResponse<AbstractPage> getFilteredAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable Predicate<? super AbstractPage> filter)
Retrieves a page response of all pages found in this instance of Confluence, within any of the given statuses.- Parameters:
contentTypes
- list of content types to findstatuses
- list of statuses the pages can be inpageRequest
- the start and offset of the pages to retrievefilter
- the predicate to filter the returned results by, may be null- Returns:
- the paginated list of pages
- Since:
- 7.0.1
-
getFilteredAbstractPages
default PageResponse<AbstractPage> getFilteredAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable Predicate<? super AbstractPage> filter)
Retrieves a page response for all content (pages and/or blog posts) in the given space, within any of the specified statuses and content types.- Parameters:
space
- the space to locate the page incontentTypes
- list of content types to findstatuses
- list of statuses the pages can be inpageRequest
- the pagination requestfilter
- the predicate to pages the returned results by, may be null- Returns:
- the paginated list of pages by space, with the given statuses
- Since:
- 7.0.1
-
getFilteredAbstractPages
default PageResponse<AbstractPage> getFilteredAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages from a space that exactly match the given title and are in any of the specified statuses, and match the given filter, limited to the pagination request. To get just pages or blog posts can be requested just specifying a content type based filter.- Parameters:
space
- space the page belongs totitle
- the title of the page to matchstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- the predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages by space and title, with the given statuses
- Since:
- 7.0.1
-
getFilteredAbstractPages
default PageResponse<AbstractPage> getFilteredAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages that exactly match the given title, are in any of the specified statuses, and match the given filter, limited to the pagination request. To get just pages or blog posts can be requested just specifying a content type based filter.- Parameters:
title
- the title of the page to matchstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- the predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages by title
- Since:
- 7.0.1
-
getFilteredAbstractPages
default PageResponse<AbstractPage> getFilteredAbstractPages(org.joda.time.DateTime date, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage> filter)
Returns the abstract pages created on the given date and are in the , that also match the given filter, limited to the page request. To get just pages or blog posts can be requested just specifying a content type based filter.- Parameters:
date
- the creation date to matchstatuses
- list of statuses the content can be inpageRequest
- the pagination requestfilter
- the predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages created on the given date
- Since:
- 7.0.1
-
getPermissionPages
Collection<Page> getPermissionPages(Space space, LimitedRequest limitedRequest)
Pagination permission pages for particular Space- Parameters:
space
-limitedRequest
-- Returns:
- Collection of permission pages within the request range
- Since:
- 7.5.0
-
getPermissionPagesCount
long getPermissionPagesCount(Space space)
Get total number of permission pages for particular Space- Parameters:
space
-- Returns:
- the count
- Since:
- 7.5.0
-
-