@ParametersAreNonnullByDefault public interface PageManagerInternal extends PageManager
PageManager
interface; see the package-info.java for rationale.ITERATE_ALL
Modifier and Type | Method and Description |
---|---|
AbstractPage |
createDraft(String contentType,
String spaceKey)
This method creates a draft
|
AbstractPage |
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 checking
|
PageResponse<AbstractPage> |
getAbstractPages(org.joda.time.DateTime date,
List<ContentStatus> statuses,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super AbstractPage>... filter)
Returns pages and blog posts created on the specified date, that are in any of the given statuses, and also match the given predicate, limited to the page request.
|
PageResponse<AbstractPage> |
getAbstractPages(List<ContentType> contentTypes,
List<ContentStatus> statuses,
LimitedRequest pageRequest,
com.google.common.base.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.
|
PageResponse<AbstractPage> |
getAbstractPages(Space space,
List<ContentType> contentTypes,
List<ContentStatus> statuses,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super AbstractPage>... filter)
Returns all content in the space within any of the specified statuses and content types, limited to the pagination request.
|
PageResponse<AbstractPage> |
getAbstractPages(Space space,
String title,
List<ContentStatus> statuses,
LimitedRequest pageRequest,
com.google.common.base.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.
|
PageResponse<AbstractPage> |
getAbstractPages(String title,
List<ContentStatus> statuses,
LimitedRequest pageRequest,
com.google.common.base.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.
|
PageResponse<AbstractPage> |
getAbstractPagesByCreationDate(org.joda.time.DateTime date,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super AbstractPage>... filter)
Returns the pages and blog posts created on the given date, that also match the given predicate, limited to the page request.
|
PageResponse<AbstractPage> |
getAbstractPagesByTitle(String title,
LimitedRequest pageRequest,
com.google.common.base.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.
|
PageResponse<BlogPost> |
getBlogPosts(Space space,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super BlogPost>... filter)
Returns all the current blog posts in the space, limited to the pagination request.
|
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.
|
PageResponse<Page> |
getPages(LimitedRequest pageRequest,
com.google.common.base.Predicate<? super Page>... filter)
Returns all the current pages in this instance of confluence, limited to the pagination request.
|
PageResponse<Page> |
getPages(Space space,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super Page>... filter)
Returns all the current pages in the space, limited to the pagination request.
|
PageResponse<Page> |
getTopLevelPages(Space space,
LimitedRequest pageRequest)
Returns the current top-level pages in a space, limited to the pagination requested.
|
countBlogsWithUnpublishedChanges, countCurrentBlogs, countCurrentPages, countDraftBlogs, countDraftPages, countPagesInSubtree, countPagesWithUnpublishedChanges, deepCopyPage, deepDeletePage, findNextBlogPost, findNextBlogPost, findPreviousBlogPost, findPreviousBlogPost, getAbstractPage, getAbstractPages, getAttachmentManager, getAuthoredPagesCountByUser, getBlogPost, getBlogPost, getBlogPost, getBlogPostCount, getBlogPosts, getBlogPosts, getBlogPosts, getBlogPostsInTrash, getCommentCountOnPage, getCountOfLatestXhtmlContent, getDescendantIds, getDescendants, getDescendantTitles, getDescendentIds, getDescendents, getDraftChildren, getHighestCeoId, getMonthsWithBlogPosts, getNewestBlogPost, getNotificationManager, getOrderedXhtmlContentFromContentId, getOrphanedPages, getPage, getPage, getPage, getPageByVersion, getPageCount, getPageIds, getPageInTrash, getPages, getPages, getPagesCreatedOrUpdatedSinceDate, getPagesStartingWith, getPagesWithPermissions, getPageWithComments, getPermissionPages, getPossibleBlogRedirectsInSpace, getPossibleBlogRedirectsNotInSpace, getPossibleRedirects, getPossibleRedirectsForSpace, getPossibleRedirectsInSpace, getPossibleRedirectsNotInSpace, getPreviousVersionsOfPageWithTaskId, getRecentlyAddedBlogPosts, getRecentlyAddedBlogPosts, getRecentlyAddedPages, getRecentlyUpdatedPages, getTopLevelPages, getTopLevelPagesBuilder, getUndefinedLinks, getUndefinedPages, getYearsWithBlogPosts, isPageRecentlyUpdatedForUser, moveBlogPostToTopLevel, moveChildrenToNewParent, movePageAfter, movePageAsChild, movePageBefore, movePageToTopLevel, refreshPage, removeAllBlogPosts, removeAllPages, removeAllPages, removePageFromAncestorCollections, removeStaleSharedDrafts, renamePage, renamePageWithoutNotifications, restorePage, revertChildPageOrder, setAttachmentManager, setChildPageOrder, setNotificationManager, spaceHasBlogPosts, trashPage, trashPage, updatePageInAncestorCollections
getById, getContributionStatusByUser, getNextVersion, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo
AbstractPage createDraft(String contentType, String spaceKey)
contentType
- - content type of the draft to create: page or blogpostspaceKey
- - space key of the space to create the draft intoContentEntityObject.DRAFT
AbstractPage createDraft(String contentType, String spaceKey, long parentPageId)
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 draftAbstractPage createOrFindDraftFor(AbstractPage abstractPage)
abstractPage
- the AbstractPage to retrieve the draft forContentEntityObject.DRAFT
@Nonnull PageResponse<Page> getTopLevelPages(Space space, LimitedRequest pageRequest)
space
- the space to locate pages inpageRequest
- the pagination requested@Nonnull PageResponse<Page> getPages(Space space, LimitedRequest pageRequest, com.google.common.base.Predicate<? super Page>... filter)
space
- the space to locate pages inpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning@Nonnull PageResponse<Page> getPages(LimitedRequest pageRequest, com.google.common.base.Predicate<? super Page>... filter)
pageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning@Nonnull PageResponse<BlogPost> getBlogPosts(Space space, LimitedRequest pageRequest, com.google.common.base.Predicate<? super BlogPost>... filter)
space
- the space to locate blog posts inpageRequest
- the pagination requested@Nonnull PageResponse<Page> getChildren(Page page, LimitedRequest pageRequest, Depth depth)
page
- the page to find children forpageRequest
- the pagination requesteddepth
- the depth to return children to@Nonnull PageResponse<AbstractPage> getAbstractPagesByTitle(String title, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
title
- the title of the page or blog post to matchpageRequest
- the pagination requestedfilter
- a predicate to apply to the results before returning@Nonnull PageResponse<AbstractPage> getAbstractPagesByCreationDate(org.joda.time.DateTime date, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
date
- the creation date of the page or blog postpageRequest
- the pagination requestfilter
- a predicate to apply to the results before returning@Nonnull PageResponse<AbstractPage> getAbstractPages(List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
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@Nonnull PageResponse<AbstractPage> getAbstractPages(Space space, List<ContentType> contentTypes, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
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@Nonnull PageResponse<AbstractPage> getAbstractPages(org.joda.time.DateTime date, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
date
- the creation date to matchstatuses
- list of statuses the content can be inpageRequest
- the pagination requestfilter
- a predicate to apply to the results before returning@Nonnull PageResponse<AbstractPage> getAbstractPages(Space space, String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
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@Nonnull PageResponse<AbstractPage> getAbstractPages(String title, List<ContentStatus> statuses, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage>... filter)
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 returningList<ContentPermissionSummary> findContentPermissionSummaryByIds(Collection<Long> ids)
ids
- of ContentCopyright © 2003–2017 Atlassian. All rights reserved.