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 Deprecated Methods Modifier and Type Method Description List<AbstractPage>
getAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest)
default PageResponse<AbstractPage>
getAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.since 7.0.1.List<AbstractPage>
getAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest)
default PageResponse<AbstractPage>
getAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.since 7.0.1.List<AbstractPage>
getAbstractPages(com.atlassian.core.util.DateUtils.DateRange creationDate, List<ContentStatus> statuses, LimitedRequest pageRequest)
List<AbstractPage>
getAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest)
default PageResponse<AbstractPage>
getAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.since 7.0.1.List<AbstractPage>
getAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest)
default PageResponse<AbstractPage>
getAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.since 7.0.1.default PageResponse<AbstractPage>
getAbstractPages(org.joda.time.DateTime date, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.since 7.0.1.List<AbstractPage>
getAbstractPagesByCreationDate(com.atlassian.core.util.DateUtils.DateRange creationDate, LimitedRequest pageRequest)
default PageResponse<AbstractPage>
getAbstractPagesByCreationDate(org.joda.time.DateTime date, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.since 7.0.1.List<AbstractPage>
getAbstractPagesByTitle(String title, LimitedRequest pageRequest)
default PageResponse<AbstractPage>
getAbstractPagesByTitle(String title, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.since 7.0.1.List<BlogPost>
getBlogPosts(Space space, LimitedRequest pageRequest)
default PageResponse<BlogPost>
getBlogPosts(Space space, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super BlogPost> filter)
Deprecated.since 7.0.1.List<Page>
getChildren(Page page, LimitedRequest pageRequest, Depth depth)
default PageResponse<Page>
getChildren(Page page, LimitedRequest pageRequest, com.google.common.base.Predicate<? super Page> predicate, Depth depth)
Deprecated.since 7.0.1.List<Page>
getPages(LimitedRequest pageRequest)
default PageResponse<Page>
getPages(LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super Page> filter)
Deprecated.since 7.0.1.List<Page>
getPages(Space space, LimitedRequest pageRequest)
default PageResponse<Page>
getPages(Space space, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super Page> filter)
Deprecated.since 7.0.1.Collection<Page>
getPermissionPages(Space space, LimitedRequest limitedRequest)
Pagination permission pages for particular Spacelong
getPermissionPagesCount(Space space)
Get total number of permission pages for particular SpaceList<Page>
getTopLevelPages(Space space, LimitedRequest limitedRequest)
default PageResponse<Page>
getTopLevelPages(Space space, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super Page> predicate)
Deprecated.since 7.0.1.List<Page>
scanFilteredPages(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest)
Retrieves a page response of all pages in space with specified content statuses.List<Page>
scanFilteredPages(List<ContentStatus> statuses, LimitedRequest pageRequest)
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, getAllChildren, getAncestorsFor, getAuthoredPagesCountByUser, getCommentCountOnPage, getDescendantIds, getDescendantIds, getDescendants, getDescendantTitles, getDraftChildren, getMaxSiblingPosition, getOrphanedPages, getPage, getPageById, getPageByIdWithComments, getPageCount, getPageCount, getPageIds, getPageInTrash, getPages, getPagesByIds, getPagesCreatedOrUpdatedSinceDate, getPagesStartingWith, getPageStatistics, getPagesWithPermissions, getPageWithComments, getPermissionPages, getRecentlyAddedPages, getRecentlyAuthoredPagesByUser, getRecentlyUpdatedPages, 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
-
getPages
@Deprecated default PageResponse<Page> getPages(Space space, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super Page> filter)
Deprecated.Retrieves a page response of the current content in the given space.
-
getPages
@Deprecated default PageResponse<Page> getPages(LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super Page> filter)
Deprecated.Retrieves a page response of all the current pages of the Confluence instance.
-
getPages
List<Page> getPages(LimitedRequest pageRequest)
- Since:
- 8.7
-
getPages
List<Page> getPages(Space space, LimitedRequest pageRequest)
- Since:
- 8.7
-
scanFilteredPages
List<Page> scanFilteredPages(List<ContentStatus> statuses, LimitedRequest pageRequest)
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.- Returns:
- the paginated list of pages
- Since:
- 8.7
-
scanFilteredPages
List<Page> scanFilteredPages(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest)
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.- Returns:
- the paginated list of pages
- Since:
- 8.7
-
getBlogPosts
@Deprecated default PageResponse<BlogPost> getBlogPosts(Space space, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super BlogPost> filter)
Deprecated.Retrieves a page response of all the current blog posts in the give space.- Specified by:
getBlogPosts
in interfacePageDao
- 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
-
getBlogPosts
List<BlogPost> getBlogPosts(Space space, LimitedRequest pageRequest)
- Since:
- 8.7
-
getTopLevelPages
@Deprecated default PageResponse<Page> getTopLevelPages(Space space, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super Page> predicate)
Deprecated.- Specified by:
getTopLevelPages
in interfacePageDao
-
getTopLevelPages
List<Page> getTopLevelPages(Space space, LimitedRequest limitedRequest)
- Since:
- 8.7
-
getChildren
@Deprecated default PageResponse<Page> getChildren(Page page, LimitedRequest pageRequest, com.google.common.base.Predicate<? super Page> predicate, Depth depth)
Deprecated.Returns the children of a page which have a status of CURRENT, limited to the pagination requested.- Specified by:
getChildren
in interfacePageDao
- 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
-
getChildren
List<Page> getChildren(Page page, LimitedRequest pageRequest, Depth depth)
-
getAbstractPagesByTitle
@Deprecated default PageResponse<AbstractPage> getAbstractPagesByTitle(String title, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.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.- Specified by:
getAbstractPagesByTitle
in interfacePageDao
- 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
-
getAbstractPagesByTitle
List<AbstractPage> getAbstractPagesByTitle(String title, LimitedRequest pageRequest)
- Since:
- 8.7
-
getAbstractPagesByCreationDate
@Deprecated default PageResponse<AbstractPage> getAbstractPagesByCreationDate(org.joda.time.DateTime date, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.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.- Specified by:
getAbstractPagesByCreationDate
in interfacePageDao
- 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
-
getAbstractPages
@Deprecated default PageResponse<AbstractPage> getAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.Retrieves a page response of all pages found in this instance of Confluence, within any of the given statuses.- Specified by:
getAbstractPages
in interfacePageDao
- 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
-
getAbstractPages
List<AbstractPage> getAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest)
- Since:
- 8.7
-
getAbstractPages
@Deprecated default PageResponse<AbstractPage> getAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.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.- Specified by:
getAbstractPages
in interfacePageDao
- 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
-
getAbstractPages
List<AbstractPage> getAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest)
- Since:
- 8.7
-
getAbstractPages
@Deprecated default PageResponse<AbstractPage> getAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.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.- Specified by:
getAbstractPages
in interfacePageDao
- 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
-
getAbstractPagesByCreationDate
List<AbstractPage> getAbstractPagesByCreationDate(com.atlassian.core.util.DateUtils.DateRange creationDate, LimitedRequest pageRequest)
-
getAbstractPages
List<AbstractPage> getAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest)
- Since:
- 8.7
-
getAbstractPages
@Deprecated default PageResponse<AbstractPage> getAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.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.- Specified by:
getAbstractPages
in interfacePageDao
- 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
-
getAbstractPages
List<AbstractPage> getAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest)
- Since:
- 8.7
-
getAbstractPages
@Deprecated default PageResponse<AbstractPage> getAbstractPages(org.joda.time.DateTime date, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
Deprecated.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.- Specified by:
getAbstractPages
in interfacePageDao
- 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
-
getAbstractPages
List<AbstractPage> getAbstractPages(com.atlassian.core.util.DateUtils.DateRange creationDate, List<ContentStatus> statuses, LimitedRequest pageRequest)
- Since:
- 8.7
-
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
-
-