|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageDao
Method Summary | |
---|---|
java.util.List<AbstractPage> |
findBlogsWithHistoricalTitleInPermittedSpace(java.lang.String blogTitle,
Space space,
int maxResultCount)
Searches for blogs in the space specified, looking for those that have the given title in a previous version, and returns the first maxResultCount results. |
java.util.List<Page> |
findPagesWithHistoricalTitle(java.lang.String pageTitle)
Deprecated. since 3.1. Use #findPagesWithHistoricalTitleInPermittedSpace or #findPagesWithHistoricalTitleInAllPermittedSpacesExcept . |
java.util.List<AbstractPage> |
findPagesWithHistoricalTitleInAllPermittedSpacesExcept(java.lang.String pageTitle,
Space space,
int maxResultCount)
Searches for pages in all spaces except the one specified, looking for those that have the given title in a previous version, and returns the first maxResultCount results. |
java.util.List<AbstractPage> |
findPagesWithHistoricalTitleInPermittedSpace(java.lang.String pageTitle,
Space space,
int maxResultCount)
Searches for pages in the space specified, looking for those that have the given title in a previous version, and returns the first maxResultCount results. |
PageResponse<AbstractPage> |
getAbstractPagesByCreationDate(org.joda.time.DateTime date,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super AbstractPage> filter)
Returns the pages and blogposts created on the given date, that also match the given predicate, limited to the page request |
PageResponse<AbstractPage> |
getAbstractPagesByTitle(java.lang.String title,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super AbstractPage> filter)
Returns the pages and blogposts that exactly match the given title, limited to the pagination request |
int |
getAuthoredPagesCountByUser(java.lang.String username)
|
PageResponse<BlogPost> |
getBlogPosts(Space space,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super BlogPost> predicate)
Retrieve a page of the current blog posts in this space |
PageResponse<Page> |
getChildren(Page page,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<? super Page> predicate,
Depth depth)
|
int |
getCommentCountOnPage(long id)
Count the number of comments on the passed in page. |
java.util.List<java.lang.Long> |
getDescendentIds(Page page)
|
java.util.List<Page> |
getDescendents(Page page)
|
java.lang.Integer |
getMaxSiblingPosition(Page page)
Gets the highest position value of all the page's siblings. |
java.util.List<Page> |
getOrphanedPages(java.lang.String spaceKey)
|
Page |
getPage(Space space,
java.lang.String pageTitle)
Get the page by space and title. |
Page |
getPageById(long id)
Get the page with the given id. |
Page |
getPageByIdWithComments(long id)
Get the page with the given id, and perform an eager load of the comments and their children. |
java.util.Collection<java.lang.Long> |
getPageIds(Space space)
Get the ids of all pages (current and historical) in the given space. |
java.util.List<Page> |
getPageInTrash(java.lang.String spaceKey,
java.lang.String title)
|
PageResponse<Page> |
getPages(LimitedRequest limitedRequest,
com.google.common.base.Predicate<? super Page> predicate)
Retrieve a page of all the current content |
java.util.List<Page> |
getPages(Space space,
boolean currentOnly)
|
PageResponse<Page> |
getPages(Space space,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<? super Page> predicate)
Retrieve a page of the current content in this space |
java.util.List<Page> |
getPagesByIds(java.lang.Iterable<java.lang.Long> ids)
Get the pages with the given ids. |
java.util.List<Page> |
getPagesCreatedOrUpdatedSinceDate(java.util.Date previousLoginDate)
|
java.util.List<Page> |
getPagesStartingWith(Space space,
java.lang.String s)
|
Page |
getPageWithComments(Space space,
java.lang.String pageTitle)
Get the page by space and title, and perform an eager load of the comments and their children. |
java.util.List<Page> |
getPermissionPages(Space space)
|
java.util.List<Page> |
getRecentlyAddedPages(int maxCount,
java.lang.String spaceKey)
|
java.util.List<Page> |
getRecentlyAuthoredPagesByUser(java.lang.String username,
int maxCount)
|
java.util.List<Page> |
getRecentlyUpdatedPages(int maxCount,
java.lang.String spaceKey)
|
java.util.List<Page> |
getTopLevelPages(Space space)
|
PageResponse<Page> |
getTopLevelPages(Space space,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<? super Page> predicate)
|
java.util.List<Page> |
getUndefinedPages(java.lang.String spaceKey)
|
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao |
---|
findLatestVersionsCount, findLatestVersionsIterator, save |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
Page getPageById(long id)
id
- of the page to load
java.util.List<Page> getPagesByIds(java.lang.Iterable<java.lang.Long> ids)
Page getPageByIdWithComments(long id)
id
- of the page to load
int getCommentCountOnPage(long id)
Page getPage(Space space, java.lang.String pageTitle)
space
- The space the page belongs topageTitle
- The title of the page
Page getPageWithComments(Space space, java.lang.String pageTitle)
space
- The space the page belongs topageTitle
- The title of the page
java.util.List<Page> getPages(Space space, boolean currentOnly)
PageResponse<Page> getPages(Space space, LimitedRequest limitedRequest, @Nullable com.google.common.base.Predicate<? super Page> predicate)
space
- - the space to retreive the content forlimitedRequest
- - the start and offset of the pages to retrievepredicate
- - the predicate to apply
PageResponse<Page> getPages(LimitedRequest limitedRequest, @Nullable com.google.common.base.Predicate<? super Page> predicate)
limitedRequest
- - the start and offset of the pages to retrievepredicate
- - the predicate to apply
PageResponse<BlogPost> getBlogPosts(Space space, LimitedRequest pageRequest, @Nullable com.google.common.base.Predicate<? super BlogPost> predicate)
space
- pageRequest
- predicate
- - the predicate to filter the returned results by, may be null.
java.util.List<Page> getPagesStartingWith(Space space, java.lang.String s)
java.util.List<Page> getRecentlyAddedPages(int maxCount, java.lang.String spaceKey)
java.util.List<Page> getRecentlyUpdatedPages(int maxCount, java.lang.String spaceKey)
java.util.List<Page> getOrphanedPages(java.lang.String spaceKey)
java.util.List<Page> getUndefinedPages(java.lang.String spaceKey)
java.util.List<Page> getPermissionPages(Space space)
int getAuthoredPagesCountByUser(java.lang.String username)
java.util.List<Page> getRecentlyAuthoredPagesByUser(java.lang.String username, int maxCount)
java.util.List<Page> getPagesCreatedOrUpdatedSinceDate(java.util.Date previousLoginDate)
@Deprecated java.util.List<Page> findPagesWithHistoricalTitle(java.lang.String pageTitle)
java.util.List<AbstractPage> findPagesWithHistoricalTitleInPermittedSpace(java.lang.String pageTitle, Space space, int maxResultCount)
pageTitle
- title of a page in a previous version.space
- Space to search. Must not be null.maxResultCount
- maximum pages to returnjava.util.List<AbstractPage> findBlogsWithHistoricalTitleInPermittedSpace(java.lang.String blogTitle, Space space, int maxResultCount)
blogTitle
- title of a page in a previous version.space
- Space to search. Must not be null.maxResultCount
- maximum pages to return
java.util.List<AbstractPage> findPagesWithHistoricalTitleInAllPermittedSpacesExcept(java.lang.String pageTitle, Space space, int maxResultCount)
pageTitle
- title of a page in a previous version.space
- Space to exclude from search. If null, all spaces are searched.maxResultCount
- maximum pages to returnjava.util.List<Page> getPageInTrash(java.lang.String spaceKey, java.lang.String title)
java.util.List<Page> getDescendents(Page page)
java.util.List<java.lang.Long> getDescendentIds(Page page)
java.util.List<Page> getTopLevelPages(Space space)
PageResponse<Page> getTopLevelPages(Space space, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super Page> predicate)
PageResponse<Page> getChildren(Page page, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super Page> predicate, Depth depth)
java.lang.Integer getMaxSiblingPosition(Page page)
page
- The page whose siblings from which to get the max position
java.util.Collection<java.lang.Long> getPageIds(Space space)
space
- space to retrieve page ids from, can not be null.
PageResponse<AbstractPage> getAbstractPagesByTitle(java.lang.String title, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
title
- the title of the page to matchpageRequest
- the pagination requestedfilter
- a Predicate to apply to the results before returning
PageResponse<AbstractPage> getAbstractPagesByCreationDate(org.joda.time.DateTime date, LimitedRequest pageRequest, com.google.common.base.Predicate<? super AbstractPage> filter)
date
- - the creation date to matchpageRequest
- the pagination requestfilter
- a Predicate to apply to the results before returning
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |