|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageDao
Method Summary | |
---|---|
List<AbstractPage> |
findBlogsWithHistoricalTitleInPermittedSpace(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. |
List<Page> |
findPagesWithHistoricalTitle(String pageTitle)
Deprecated. since 3.1. Use #findPagesWithHistoricalTitleInPermittedSpace or #findPagesWithHistoricalTitleInAllPermittedSpacesExcept . |
List<AbstractPage> |
findPagesWithHistoricalTitleInAllPermittedSpacesExcept(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. |
List<AbstractPage> |
findPagesWithHistoricalTitleInPermittedSpace(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. |
int |
getAuthoredPagesCountByUser(String username)
|
int |
getCommentCountOnPage(long id)
Count the number of comments on the passed in page. |
List<Long> |
getDescendentIds(Page page)
|
List<Page> |
getDescendents(Page page)
|
Integer |
getMaxSiblingPosition(Page page)
Gets the highest position value of all the page's siblings. |
List<Page> |
getOrphanedPages(String spaceKey)
|
Page |
getPage(Space space,
String pageTitle)
Get the page by space and title. |
Page |
getPage(String spaceKey,
String pageTitle)
Deprecated. since 3.0, use getPage(Space, String) |
Page |
getPage(String spaceKey,
String pageTitle,
boolean eagerLoadComments)
Deprecated. since 3.0, use getPageWithComments(Space, String) |
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. |
Collection<Long> |
getPageIds(Space space)
Get the ids of all pages (current and historical) in the given space. |
List<Page> |
getPageInTrash(String spaceKey,
String title)
|
List<Page> |
getPages(Space space,
boolean currentOnly)
|
Collection<Page> |
getPagesByIds(Collection<Long> ids)
Get the pages with the given ids. |
List<Page> |
getPagesCreatedOrUpdatedSinceDate(Date previousLoginDate)
|
List<Page> |
getPagesStartingWith(Space space,
String s)
|
Page |
getPageWithComments(Space space,
String pageTitle)
Get the page by space and title, and perform an eager load of the comments and their children. |
List<Page> |
getPermissionPages(Space space)
|
List<Page> |
getRecentlyAddedPages(int maxCount,
String spaceKey)
|
List<Page> |
getRecentlyAuthoredPagesByUser(String username,
int maxCount)
|
List<Page> |
getRecentlyUpdatedPages(int maxCount,
String spaceKey)
|
List<Page> |
getTopLevelPages(Space space)
|
List<Page> |
getUndefinedPages(String spaceKey)
|
void |
removeFromPageKeyCache(String spaceKey,
String pageTitle)
Deprecated. since 3.0 |
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
Collection<Page> getPagesByIds(Collection<Long> ids)
Page getPageByIdWithComments(long id)
id
- of the page to load
int getCommentCountOnPage(long id)
@Deprecated Page getPage(String spaceKey, String pageTitle)
getPage(Space, String)
@Deprecated Page getPage(String spaceKey, String pageTitle, boolean eagerLoadComments)
getPageWithComments(Space, String)
spaceKey
- to match withpageTitle
- to match witheagerLoadComments
- true if comments should be loaded eagerly
Page getPage(Space space, String pageTitle)
space
- The space the page belongs topageTitle
- The title of the page
Page getPageWithComments(Space space, String pageTitle)
space
- The space the page belongs topageTitle
- The title of the page
List<Page> getPages(Space space, boolean currentOnly)
List<Page> getPagesStartingWith(Space space, String s)
List<Page> getRecentlyAddedPages(int maxCount, String spaceKey)
List<Page> getRecentlyUpdatedPages(int maxCount, String spaceKey)
List<Page> getOrphanedPages(String spaceKey)
List<Page> getUndefinedPages(String spaceKey)
List<Page> getPermissionPages(Space space)
int getAuthoredPagesCountByUser(String username)
List<Page> getRecentlyAuthoredPagesByUser(String username, int maxCount)
List<Page> getPagesCreatedOrUpdatedSinceDate(Date previousLoginDate)
@Deprecated void removeFromPageKeyCache(String spaceKey, String pageTitle)
@Deprecated List<Page> findPagesWithHistoricalTitle(String pageTitle)
List<AbstractPage> findPagesWithHistoricalTitleInPermittedSpace(String pageTitle, Space space, int maxResultCount)
Only pages in spaces the remote user is able to view will be returned.
pageTitle
- title of a page in a previous version.space
- Space to search. Must not be null.maxResultCount
- maximum pages to returnList<AbstractPage> findBlogsWithHistoricalTitleInPermittedSpace(String blogTitle, Space space, int maxResultCount)
Only blogs in spaces the remote user is able to view will be returned.
blogTitle
- title of a page in a previous version.space
- Space to search. Must not be null.maxResultCount
- maximum pages to return
List<AbstractPage> findPagesWithHistoricalTitleInAllPermittedSpacesExcept(String pageTitle, Space space, int maxResultCount)
Only pages in spaces the remote user is able to view will be returned.
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 returnList<Page> getPageInTrash(String spaceKey, String title)
List<Page> getDescendents(Page page)
List<Long> getDescendentIds(Page page)
List<Page> getTopLevelPages(Space space)
Integer getMaxSiblingPosition(Page page)
page
- The page whose siblings from which to get the max position
Collection<Long> getPageIds(Space space)
space
- space to retrieve page ids from, can not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |