Package com.atlassian.confluence.links
Interface LinkManager
- All Known Implementing Classes:
- DefaultLinkManager
@Transactional
public interface LinkManager
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptioncountIncomingLinksForContents(SpaceContentEntityObject rootPage, SpaceContentEntityObject parentPage) Helping method to get all incoming links of multiple contents at once.intGet the number of pages in a page hierarchy that have incoming links.getReferringContent(ContentEntityObject content) getReferringContent(String spaceKey, List<ContentEntityObject> collection) Gets collection of referring content with given set of pages within single spacevoidvoidremoveLink(OutgoingLink link) Remove an internal linkvoidsaveLink(OutgoingLink link) Save an internal linkvoidupdateOutgoingLinks(ContentEntityObject content) 
- 
Field Details- 
CAMELCASE_LINK_PATTERN- See Also:
 
- 
NORMAL_LINK_PATTERN- See Also:
 
 
- 
- 
Method Details- 
saveLinkSave an internal link
- 
removeLinkRemove an internal link
- 
getIncomingLinksToContent
- 
countIncomingLinksForContents@Transactional(readOnly=true) Stream<OutgoingLinkMeta> countIncomingLinksForContents(SpaceContentEntityObject rootPage, SpaceContentEntityObject parentPage) Helping method to get all incoming links of multiple contents at once.- Parameters:
- rootPage-
- parentPage-
- Returns:
- Stream of OutgoingLinkMeta
- Since:
- 6.0
 
- 
countPagesWithIncomingLinksGet the number of pages in a page hierarchy that have incoming links. Note that this excludes links within the hierarchy.- Parameters:
- rootPage- the root page of the hierarchy. Links to this page are also counted.
- Returns:
- The number of pages in the hierarchy that have incoming links, excluding links within the hierarchy.
- Since:
- 6.0
 
- 
updateOutgoingLinks
- 
getReferringContent@Transactional(readOnly=true) Collection<ContentEntityObject> getReferringContent(ContentEntityObject content) 
- 
getReferringContent@Transactional(readOnly=true) Collection<ContentEntityObject> getReferringContent(String spaceKey, List<ContentEntityObject> collection) Gets collection of referring content with given set of pages within single space- Since:
- 5.8.15
 
- 
removeCorruptOutgoingLinksvoid removeCorruptOutgoingLinks()
 
-