public class HibernateLinkDao extends ConfluenceHibernateObjectDao<OutgoingLink> implements LinkDaoInternal
HibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
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<OutgoingLink> |
getLinksTo(ContentEntityObject theContent) |
Class<OutgoingLink> |
getPersistentClass()
Gets the type of
EntityObject this Dao works with. |
List<ContentEntityObject> |
getReferringContent(ContentEntityObject content) |
List<ContentEntityObject> |
getReferringContent(String spaceKey,
List<ContentEntityObject> contents) |
void |
removeCorruptOutgoingLinks() |
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationData
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public Class<OutgoingLink> getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal<OutgoingLink>
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<OutgoingLink> getLinksTo(ContentEntityObject theContent)
getLinksTo
in interface LinkDao
public List<ContentEntityObject> getReferringContent(ContentEntityObject content)
getReferringContent
in interface LinkDao
public List<ContentEntityObject> getReferringContent(String spaceKey, List<ContentEntityObject> contents)
getReferringContent
in interface LinkDao
public void removeCorruptOutgoingLinks()
removeCorruptOutgoingLinks
in interface LinkDao
Copyright © 2003–2019 Atlassian. All rights reserved.