|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao
com.atlassian.confluence.pages.persistence.dao.hibernate.HibernatePageDao
public class HibernatePageDao
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao |
|---|
ONE_DAY |
| Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
cacheFactory |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernatePageDao()
|
|
| 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 |
findPagesWithHistoricalTitle(String pageTitle)
|
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(Space space,
String pageTitle,
boolean eagerLoadComments)
|
Page |
getPage(String spaceKey,
String pageTitle)
Deprecated. |
Page |
getPage(String spaceKey,
String pageTitle,
boolean eagerLoadComments)
Deprecated. |
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)
|
Class |
getPersistentClass()
|
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. |
void |
setGroupManager(com.atlassian.user.GroupManager groupManager)
|
void |
setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
|
void |
setLinkDao(LinkDao linkDao)
|
| Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao |
|---|
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findPreviousVersions, getAllCurrentEntities, getById, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary |
| Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, setCacheFactory, updateModificationData |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao |
|---|
findLatestVersionsCount, findLatestVersionsIterator, save |
| Methods inherited from interface bucket.core.persistence.ObjectDao |
|---|
findAll, findAllSorted, findAllSorted, refresh, remove, replicate, save, saveRaw |
| Constructor Detail |
|---|
public HibernatePageDao()
| Method Detail |
|---|
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
public void setLinkDao(LinkDao linkDao)
public Page getPageById(long id)
PageDao
getPageById in interface PageDaoid - of the page to load
public Collection<Page> getPagesByIds(Collection<Long> ids)
PageDao
getPagesByIds in interface PageDaopublic int getCommentCountOnPage(long id)
PageDao
getCommentCountOnPage in interface PageDaopublic Page getPageByIdWithComments(long id)
PageDao
getPageByIdWithComments in interface PageDaoid - of the page to load
public Page getPage(Space space,
String pageTitle,
boolean eagerLoadComments)
public Page getPageWithComments(Space space,
String pageTitle)
PageDao
getPageWithComments in interface PageDaospace - The space the page belongs topageTitle - The title of the page
public Page getPage(Space space,
String pageTitle)
PageDao
getPage in interface PageDaospace - The space the page belongs topageTitle - The title of the page
@Deprecated
public Page getPage(String spaceKey,
String pageTitle)
getPage in interface PageDao
@Deprecated
public Page getPage(String spaceKey,
String pageTitle,
boolean eagerLoadComments)
PageDao
getPage in interface PageDaospaceKey - to match withpageTitle - to match witheagerLoadComments - true if comments should be loaded eagerly
@Deprecated
public void removeFromPageKeyCache(String spaceKey,
String pageTitle)
removeFromPageKeyCache in interface PageDao
public List<Page> getPages(Space space,
boolean currentOnly)
getPages in interface PageDaopublic Collection<Long> getPageIds(Space space)
PageDao
getPageIds in interface PageDaospace - space to retrieve page ids from, can not be null.
public List<Page> getPagesStartingWith(Space space,
String s)
getPagesStartingWith in interface PageDao
public List<Page> getRecentlyAddedPages(int maxCount,
String spaceKey)
getRecentlyAddedPages in interface PageDao
public List<Page> getRecentlyUpdatedPages(int maxCount,
String spaceKey)
getRecentlyUpdatedPages in interface PageDaopublic List<Page> getOrphanedPages(String spaceKey)
getOrphanedPages in interface PageDaopublic List<Page> getUndefinedPages(String spaceKey)
getUndefinedPages in interface PageDaopublic List<Page> getPermissionPages(Space space)
getPermissionPages in interface PageDaopublic int getAuthoredPagesCountByUser(String username)
getAuthoredPagesCountByUser in interface PageDao
public List<Page> getRecentlyAuthoredPagesByUser(String username,
int maxCount)
getRecentlyAuthoredPagesByUser in interface PageDaopublic List<Page> getPagesCreatedOrUpdatedSinceDate(Date previousLoginDate)
getPagesCreatedOrUpdatedSinceDate in interface PageDaopublic Class getPersistentClass()
getPersistentClass in interface ObjectDaogetPersistentClass in class ContentEntityObjectHibernateDaopublic List findPagesWithHistoricalTitle(String pageTitle)
findPagesWithHistoricalTitle in interface PageDao
public List<AbstractPage> findPagesWithHistoricalTitleInPermittedSpace(String pageTitle,
Space space,
int maxResultCount)
PageDao
findPagesWithHistoricalTitleInPermittedSpace in interface PageDaopageTitle - title of a page in a previous version.space - Space to search. Must not be null.maxResultCount - maximum pages to return
public List<AbstractPage> findBlogsWithHistoricalTitleInPermittedSpace(String blogTitle,
Space space,
int maxResultCount)
PageDao
findBlogsWithHistoricalTitleInPermittedSpace in interface PageDaoblogTitle - title of a page in a previous version.space - Space to search. Must not be null.maxResultCount - maximum pages to return
public List<AbstractPage> findPagesWithHistoricalTitleInAllPermittedSpacesExcept(String pageTitle,
Space space,
int maxResultCount)
PageDao
findPagesWithHistoricalTitleInAllPermittedSpacesExcept in interface PageDaopageTitle - title of a page in a previous version.space - Space to exclude from search. If null, all spaces are searched.maxResultCount - maximum pages to return
public List<Page> getPageInTrash(String spaceKey,
String title)
getPageInTrash in interface PageDaopublic List<Page> getDescendents(Page page)
getDescendents in interface PageDaopublic List<Long> getDescendentIds(Page page)
getDescendentIds in interface PageDaopublic List<Page> getTopLevelPages(Space space)
getTopLevelPages in interface PageDaopublic Integer getMaxSiblingPosition(Page page)
PageDao
getMaxSiblingPosition in interface PageDaopage - The page whose siblings from which to get the max position
public void setGroupManager(com.atlassian.user.GroupManager groupManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||