Interface PageManagerInternal
-
- All Superinterfaces:
ContentEntityManager
,PageManager
- All Known Implementing Classes:
DefaultPageManager
@ParametersAreNonnullByDefault public interface PageManagerInternal extends PageManager
Internal version of thePageManager
interface; see the package-info.java for rationale.
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager
ITERATE_ALL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description AbstractPage
createDraft(String contentType, String spaceKey)
This method creates a draftAbstractPage
createDraft(String contentType, String spaceKey, long parentPageId)
This method creates a draft.AbstractPage
createOrFindDraftFor(AbstractPage abstractPage)
Retrieves the draft for the given AbstractPage if exists.List<ContentPermissionSummary>
findContentPermissionSummaryByIds(Collection<Long> ids)
Get ContentPermissionSummary for bulk permission checkingdefault @NonNull 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.default @NonNull PageResponse<AbstractPage>
getAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.since 7.0.1.default @NonNull PageResponse<AbstractPage>
getAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.since 7.0.1.PageResponse<AbstractPage>
getAbstractPages(LocalDate creationDay, ZoneId zone, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
default @NonNull PageResponse<AbstractPage>
getAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.since 7.0.1.default @NonNull PageResponse<AbstractPage>
getAbstractPagesByTitle(String title, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.since 7.0.1.PageResponse<Page>
getAllChildren(Page page, LimitedRequest pageRequest, Depth depth)
Returns all the children of a page (including drafts), limited to the pagination requesteddefault @NonNull PageResponse<BlogPost>
getBlogPosts(Space space, LimitedRequest pageRequest, com.google.common.base.Predicate<? super BlogPost>... filter)
Deprecated.since 7.0.1.@NonNull PageResponse<Page>
getChildren(Page page, LimitedRequest pageRequest, Depth depth)
Returns the children of a page which have a status of CURRENT, limited to the pagination requested.@NonNull PageResponse<AbstractPage>
getFilteredAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns pages and blog posts that belong to the space, exactly match the given title, are in any of the specified statuses, and match the given predicate, limited to the pagination request.@NonNull PageResponse<AbstractPage>
getFilteredAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns all content in the space within any of the specified statuses and content types, limited to the pagination request.@NonNull PageResponse<AbstractPage>
getFilteredAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns pages and blog posts that exactly match the given title, are in any of the specified statuses, and match the given predicate, limited to the pagination request.@NonNull PageResponse<AbstractPage>
getFilteredAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns all content in the instance within any of the specified statuses, limited to the specified content types and the pagination request.@NonNull PageResponse<AbstractPage>
getFilteredAbstractPagesByTitle(String title, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns all current pages and blog posts that exactly match the given title, that also match the given predicate, limited to the pagination request.@NonNull PageResponse<BlogPost>
getFilteredBlogPosts(Space space, LimitedRequest pageRequest, Predicate<? super BlogPost>... filter)
Returns all the current blog posts in the space, limited to the pagination request.@NonNull PageResponse<Page>
getFilteredPages(LimitedRequest pageRequest, Predicate<? super Page>... filter)
Returns all the current pages in this instance of confluence, limited to the pagination request.@NonNull PageResponse<Page>
getFilteredPages(Space space, LimitedRequest pageRequest, Predicate<? super Page>... filter)
Returns all the current pages in the space, limited to the pagination request.default @NonNull PageResponse<Page>
getPages(LimitedRequest pageRequest, com.google.common.base.Predicate<? super Page>... filter)
Deprecated.since 7.0.1.default @NonNull PageResponse<Page>
getPages(Space space, LimitedRequest pageRequest, 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 Space@NonNull PageResponse<Page>
getTopLevelPages(Space space, LimitedRequest pageRequest)
Returns the current top-level pages in a space, limited to the pagination requested.void
reconcileIfNeeded(AbstractPage content, @Nullable SaveContext saveContext)
Deprecated.since 7.14.0 UseContentReconciliationManager.reconcileIfNeeded(ContentEntityObject, SaveContext)
instead.default @NonNull PageResponse<Page>
scanFilteredPages(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super Page>... filter)
Returns all pages in the space which has specified content statuses, limited to the pagination request.default @NonNull PageResponse<Page>
scanFilteredPages(List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super Page>... filter)
Returns all pages with specified content statuses, limited to the pagination request.-
Methods inherited from interface com.atlassian.confluence.core.ContentEntityManager
getById, getContributionStatusByUser, getNextVersion, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion
-
Methods inherited from interface com.atlassian.confluence.pages.PageManager
countBlogsWithUnpublishedChanges, countCurrentBlogs, countCurrentPages, countDraftBlogs, countDraftPages, countPagesInSubtree, countPagesWithUnpublishedChanges, deepCopyPage, deepDeletePage, findNextBlogPost, findNextBlogPost, findPreviousBlogPost, findPreviousBlogPost, getAbstractPage, getAbstractPages, getAuthoredPagesCountByUser, getBlogPost, getBlogPost, getBlogPost, getBlogPostCount, getBlogPostDates, getBlogPostDates, getBlogPosts, getBlogPosts, getBlogPosts, getBlogPostsInTrash, getBlogStatistics, getCommentCountOnBlog, getCommentCountOnPage, getCountOfLatestXhtmlContent, getDescendantIds, getDescendants, getDescendantTitles, getDescendents, getDraftChildren, getHighestCeoId, getMonthsWithBlogPosts, getNewestBlogPost, getNotificationManager, getOrderedXhtmlContentFromContentId, getOrphanedPages, getPage, getPage, getPageByVersion, getPageCount, getPageIds, getPageInTrash, getPages, getPages, getPagesCreatedOrUpdatedSinceDate, getPagesStartingWith, getPageStatistics, getPagesWithPermissions, getPageWithComments, getPermissionPages, getPossibleBlogRedirectsInSpace, getPossibleBlogRedirectsNotInSpace, getPossibleRedirectsInSpace, getPossibleRedirectsNotInSpace, getPreviousVersionsOfPageWithTaskId, getRecentlyAddedBlogPosts, getRecentlyAddedBlogPosts, getRecentlyAddedPages, getRecentlyUpdatedPages, getTopLevelPages, getTopLevelPagesBuilder, getUndefinedLinks, getUndefinedPages, getYearsWithBlogPosts, isPageRecentlyUpdatedForUser, moveBlogPostToTopLevel, moveChildrenToNewParent, movePageAfter, movePageAsChild, movePageBefore, movePageToTopLevel, refreshPage, removeAllBlogPosts, removeAllBlogPosts, removeAllPages, removeAllPages, removePageFromAncestorCollections, removeStaleSharedDrafts, renamePage, renamePageWithoutNotifications, restorePage, revertChildPageOrder, setChildPageOrder, setNotificationManager, spaceHasBlogPosts, trashPage, trashPage, updatePageInAncestorCollections
-
-
-
-
Method Detail
-
createDraft
AbstractPage createDraft(String contentType, String spaceKey)
This method creates a draft- Parameters:
contentType
- - content type of the draft to create: page or blogpostspaceKey
- - space key of the space to create the draft into- Returns:
- the obj created as draft
- See Also:
ContentEntityObject.DRAFT
-
createDraft
AbstractPage createDraft(String contentType, String spaceKey, long parentPageId)
This method creates a draft. The draft is created as a child of the parentPage- Parameters:
contentType
- - content type of the draft to create: page or blogpostspaceKey
- - space key of the space to create the draft intoparentPageId
- - parent page ID of the newly created draft- Returns:
- the obj created as draft
-
createOrFindDraftFor
AbstractPage createOrFindDraftFor(AbstractPage abstractPage)
Retrieves the draft for the given AbstractPage if exists.- Parameters:
abstractPage
- the AbstractPage to retrieve the draft for- Returns:
- the draft for the given AbstractPage if exists, null otherwise
- See Also:
ContentEntityObject.DRAFT
-
getTopLevelPages
@NonNull PageResponse<Page> getTopLevelPages(Space space, LimitedRequest pageRequest)
Returns the current top-level pages in a space, limited to the pagination requested.- Parameters:
space
- the space to locate pages inpageRequest
- the pagination requested- Returns:
- the paginated response of Page entities
-
getPages
@Deprecated default @NonNull PageResponse<Page> getPages(Space space, LimitedRequest pageRequest, com.google.common.base.Predicate<? super Page>... filter)
Deprecated.since 7.0.1. UsegetFilteredPages(Space, LimitedRequest, Predicate[])
Returns all the current pages in the space, limited to the pagination request.- Parameters:
space
- the space to locate pages inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities in the given space
-
reconcileIfNeeded
@Deprecated void reconcileIfNeeded(AbstractPage content, @Nullable SaveContext saveContext)
Deprecated.since 7.14.0 UseContentReconciliationManager.reconcileIfNeeded(ContentEntityObject, SaveContext)
instead.This method triggersSynchronyRecoveryEvent
if collab editing is turned on and data recovery is needed. Recovery is needed when:content
is the latest version of the page or blog post AND- content is not reconciled (
'sync-rev-source'
content property is not empty and not equals to neither'synchrony'
or'synchrony-ack'
) AND - update trigger of
saveContext
is not equal toPageUpdateTrigger.LINK_REFACTORING
- Parameters:
content
- content to be recoveredsaveContext
- context of operation
-
getFilteredPages
@NonNull PageResponse<Page> getFilteredPages(Space space, LimitedRequest pageRequest, Predicate<? super Page>... filter)
Returns all the current pages in the space, limited to the pagination request.- Parameters:
space
- the space to locate pages inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities in the given space
- Since:
- 7.0.1
-
scanFilteredPages
default @NonNull PageResponse<Page> scanFilteredPages(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super Page>... filter)
Returns all pages in the space which has specified content statuses, limited to the pagination request.- Parameters:
space
- the space to locate pages instatuses
- list of content status which we are interested to fetchpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities in the given space
- Since:
- 7.18.0
-
getPages
@Deprecated default @NonNull PageResponse<Page> getPages(LimitedRequest pageRequest, com.google.common.base.Predicate<? super Page>... filter)
Deprecated.since 7.0.1. UsegetFilteredPages(LimitedRequest, Predicate[])
Returns all the current pages in this instance of confluence, limited to the pagination request.- Parameters:
pageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities
-
getFilteredPages
@NonNull PageResponse<Page> getFilteredPages(LimitedRequest pageRequest, Predicate<? super Page>... filter)
Returns all the current pages in this instance of confluence, limited to the pagination request.- Parameters:
pageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities
- Since:
- 7.0.1
-
scanFilteredPages
default @NonNull PageResponse<Page> scanFilteredPages(List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super Page>... filter)
Returns all pages with specified content statuses, limited to the pagination request.- Parameters:
statuses
- list of content status which we are interested to fetchpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities
- Since:
- 7.18.0
-
getBlogPosts
@Deprecated default @NonNull PageResponse<BlogPost> getBlogPosts(Space space, LimitedRequest pageRequest, com.google.common.base.Predicate<? super BlogPost>... filter)
Deprecated.since 7.0.1. UsegetFilteredBlogPosts(Space, LimitedRequest, Predicate[])
Returns all the current blog posts in the space, limited to the pagination request.- Parameters:
space
- the space to locate blog posts inpageRequest
- the pagination requested- Returns:
- the paginated response of BlogPost entities
-
getFilteredBlogPosts
@NonNull PageResponse<BlogPost> getFilteredBlogPosts(Space space, LimitedRequest pageRequest, Predicate<? super BlogPost>... filter)
Returns all the current blog posts in the space, limited to the pagination request.- Parameters:
space
- the space to locate blog posts inpageRequest
- the pagination requested- Returns:
- the paginated response of BlogPost entities
- Since:
- 7.0.1
-
getChildren
@NonNull PageResponse<Page> getChildren(Page page, LimitedRequest pageRequest, 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 requesteddepth
- the depth to return children to- Returns:
- the paginated response of Page entities
-
getAllChildren
PageResponse<Page> getAllChildren(Page page, LimitedRequest pageRequest, Depth depth)
Returns all the children of a page (including drafts), limited to the pagination requested- Parameters:
page
- the page to find children forpageRequest
- the pagination requesteddepth
- the depth to return children to- Returns:
- the paginated response of Page entities
- Since:
- 6.7.1
-
getAbstractPagesByTitle
@Deprecated default @NonNull PageResponse<AbstractPage> getAbstractPagesByTitle(String title, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.since 7.0.1. UsegetFilteredAbstractPagesByTitle(String, LimitedRequest, Predicate[])
Returns all current pages and blog posts that exactly match the given title, that also match the given predicate, limited to the pagination request.- Parameters:
title
- the title of the page or blog post to matchpageRequest
- the pagination requestedfilter
- a predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages by title
-
getFilteredAbstractPagesByTitle
@NonNull PageResponse<AbstractPage> getFilteredAbstractPagesByTitle(String title, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns all current pages and blog posts that exactly match the given title, that also match the given predicate, limited to the pagination request.- Parameters:
title
- the title of the page or blog post to matchpageRequest
- the pagination requestedfilter
- a predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages by title
- Since:
- 7.0.1
-
getAbstractPages
@Deprecated default @NonNull PageResponse<AbstractPage> getAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.since 7.0.1. UsegetFilteredAbstractPages(List, List, LimitedRequest, Predicate[])
Returns all content in the instance within any of the specified statuses, limited to the specified content types and the pagination request.- Parameters:
contentTypes
- types of the content to fetch, pages and or blog postsstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities in the given space
-
getFilteredAbstractPages
@NonNull PageResponse<AbstractPage> getFilteredAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns all content in the instance within any of the specified statuses, limited to the specified content types and the pagination request.- Parameters:
contentTypes
- types of the content to fetch, pages and or blog postsstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities in the given space
- Since:
- 7.0.1
-
getAbstractPages
@Deprecated default @NonNull PageResponse<AbstractPage> getAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.Returns all content in the space within any of the specified statuses and content types, limited to the pagination request.- Parameters:
space
- the space to locate pages incontentTypes
- types of the content to fetch, pages and or blog postsstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities in the given space
-
getFilteredAbstractPages
@NonNull PageResponse<AbstractPage> getFilteredAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns all content in the space within any of the specified statuses and content types, limited to the pagination request.- Parameters:
space
- the space to locate pages incontentTypes
- types of the content to fetch, pages and or blog postsstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated response of Page entities in the given space
- Since:
- 7.0.1
-
getAbstractPages
PageResponse<AbstractPage> getAbstractPages(LocalDate creationDay, ZoneId zone, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
- Since:
- 8.7
-
getAbstractPages
@Deprecated default @NonNull PageResponse<AbstractPage> getAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.Returns pages and blog posts that belong to the space, exactly match the given title, are in any of the specified statuses, and match the given predicate, limited to the pagination request.- Parameters:
space
- space the content belongs totitle
- the title of the page to matchstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages that have a title, are in the specified statuses, and belong to the given space
-
getFilteredAbstractPages
@NonNull PageResponse<AbstractPage> getFilteredAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns pages and blog posts that belong to the space, exactly match the given title, are in any of the specified statuses, and match the given predicate, limited to the pagination request.- Parameters:
space
- space the content belongs totitle
- the title of the page to matchstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages that have a title, are in the specified statuses, and belong to the given space
- Since:
- 7.0.1
-
getAbstractPages
@Deprecated default @NonNull PageResponse<AbstractPage> getAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
Deprecated.since 7.0.1. UsegetFilteredAbstractPages(String, List, LimitedRequest, Predicate[])
Returns pages and blog posts that exactly match the given title, are in any of the specified statuses, and match the given predicate, limited to the pagination request.- Parameters:
title
- the title of the page to matchstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- a predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages by title
-
getFilteredAbstractPages
@NonNull PageResponse<AbstractPage> getFilteredAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super AbstractPage>... filter)
Returns pages and blog posts that exactly match the given title, are in any of the specified statuses, and match the given predicate, limited to the pagination request.- Parameters:
title
- the title of the page to matchstatuses
- list of statuses the content can be inpageRequest
- the pagination requestedfilter
- a predicate to apply to the results before returning- Returns:
- the paginated list of AbstractPages by title
- Since:
- 7.0.1
-
findContentPermissionSummaryByIds
List<ContentPermissionSummary> findContentPermissionSummaryByIds(Collection<Long> ids)
Get ContentPermissionSummary for bulk permission checking- Parameters:
ids
- of Content- Returns:
- List of ContentPermissionSummary
- Since:
- 6.0
-
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
-
-