public class HibernateLinkDao extends ConfluenceHibernateObjectDao implements LinkDao
HibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
NON_CACHEABLE
Constructor and Description |
---|
HibernateLinkDao() |
Modifier and Type | Method and Description |
---|---|
<T> Stream<T> |
countIncomingLinksForContents(SpaceContentEntityObject rootPage,
SpaceContentEntityObject parentPage,
Function<Object,T> mapper)
Helping method to get all incoming links of multiple contents at once.
|
int |
countPagesWithIncomingLinks(SpaceContentEntityObject rootPage)
Get the number of pages in a page hierarchy that have incoming links.
|
List |
findByDestinationSpaceKey(String spaceKey) |
List |
getLinksTo(ContentEntityObject theContent) |
Class |
getPersistentClass() |
List |
getReferringContent(ContentEntityObject content) |
List |
getReferringContent(String spaceKey,
List<ContentEntityObject> contents) |
void |
removeCorruptOutgoingLinks() |
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationData
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, refresh, reIndex, remove, replicate, save, saveRaw, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
public Class getPersistentClass()
getPersistentClass
in interface ObjectDao
public <T> Stream<T> countIncomingLinksForContents(SpaceContentEntityObject rootPage, SpaceContentEntityObject parentPage, Function<Object,T> mapper)
LinkDao
countIncomingLinksForContents
in interface LinkDao
rootPage
- The root of page hierarchyparentPage
- The direct parent pagemapper
- used to transform raw object into some DTO object at manager levelpublic int countPagesWithIncomingLinks(SpaceContentEntityObject rootPage)
LinkDao
countPagesWithIncomingLinks
in interface LinkDao
public List getLinksTo(ContentEntityObject theContent)
getLinksTo
in interface LinkDao
public List getReferringContent(ContentEntityObject content)
getReferringContent
in interface LinkDao
public List getReferringContent(String spaceKey, List<ContentEntityObject> contents)
getReferringContent
in interface LinkDao
public List findByDestinationSpaceKey(String spaceKey)
findByDestinationSpaceKey
in interface LinkDao
public void removeCorruptOutgoingLinks()
removeCorruptOutgoingLinks
in interface LinkDao
Copyright © 2003–2017 Atlassian. All rights reserved.