Package com.atlassian.confluence.links
Class DefaultLinkManager
java.lang.Object
com.atlassian.confluence.links.DefaultLinkManager
- All Implemented Interfaces:
- LinkManager
- 
Field SummaryFields inherited from interface com.atlassian.confluence.links.LinkManagerCAMELCASE_LINK_PATTERN, NORMAL_LINK_PATTERN
- 
Constructor SummaryConstructors
- 
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 linkvoidsetAttachmentLinksUpdater(AttachmentLinksUpdater attachmentLinksUpdater) Deprecated.since 7.7 unusedvoidsetLinkDao(LinkDao linkDao) voidsetLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver) Deprecated.since 7.7 unusedvoidsetLinksUpdater(LinksUpdater linksUpdater) Deprecated.since 7.7 unusedvoidsetMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager) Deprecated.since 7.7 unusedvoidsetOutgoingLinksExtractor(OutgoingLinksExtractor outgoingLinksExtractor) voidsetSettingsManager(SettingsManager settingsManager) Deprecated.since 7.7 unusedvoidupdateOutgoingLinks(ContentEntityObject content) 
- 
Constructor Details- 
DefaultLinkManagerpublic DefaultLinkManager()
 
- 
- 
Method Details- 
setLinkDao
- 
setLinkResolverDeprecated.since 7.7 unused
- 
removeLinkDescription copied from interface:LinkManagerRemove an internal link- Specified by:
- removeLinkin interface- LinkManager
 
- 
saveLinkDescription copied from interface:LinkManagerSave an internal link- Specified by:
- saveLinkin interface- LinkManager
 
- 
getIncomingLinksToContent- Specified by:
- getIncomingLinksToContentin interface- LinkManager
- Parameters:
- content-
- Returns:
- a sorted list of link objects to the content object passed in. does _not_ sort out duplicate links
 
- 
countIncomingLinksForContentspublic Stream<OutgoingLinkMeta> countIncomingLinksForContents(SpaceContentEntityObject rootPage, SpaceContentEntityObject parentPage) Description copied from interface:LinkManagerHelping method to get all incoming links of multiple contents at once.- Specified by:
- countIncomingLinksForContentsin interface- LinkManager
- Parameters:
- rootPage-
- parentPage-
- Returns:
- Stream of OutgoingLinkMeta
 
- 
countPagesWithIncomingLinksDescription copied from interface:LinkManagerGet the number of pages in a page hierarchy that have incoming links. Note that this excludes links within the hierarchy.- Specified by:
- countPagesWithIncomingLinksin interface- LinkManager
- 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.
 
- 
updateOutgoingLinks- Specified by:
- updateOutgoingLinksin interface- LinkManager
 
- 
getReferringContent- Specified by:
- getReferringContentin interface- LinkManager
- Parameters:
- content-
- Returns:
- a collection of content that currently links to the content object passed in here
 
- 
getReferringContentpublic Collection<ContentEntityObject> getReferringContent(String spaceKey, List<ContentEntityObject> collection) Description copied from interface:LinkManagerGets collection of referring content with given set of pages within single space- Specified by:
- getReferringContentin interface- LinkManager
 
- 
removeCorruptOutgoingLinkspublic void removeCorruptOutgoingLinks()- Specified by:
- removeCorruptOutgoingLinksin interface- LinkManager
 
- 
setSettingsManagerDeprecated.since 7.7 unused
- 
setMacroManagerDeprecated.since 7.7 unused
- 
setOutgoingLinksExtractor
- 
setLinksUpdaterDeprecated.since 7.7 unused
- 
setAttachmentLinksUpdaterDeprecated.since 7.7 unused
 
-