Class XhtmlMigrationLinkResolver
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.XhtmlMigrationLinkResolver
- All Implemented Interfaces:
LinkResolver
Converts wiki link text to xhtml link objects for migration.
You should note that the Link instances created all have PlainTextLinkBody
bodies at this stage.
It is the function of the XhtmlLinkRenderer to decide what the final type of the link body should be. At this
stage the raw wiki content of the link body is stored within a PlainTextLinkBody
.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXhtmlMigrationLinkResolver
(ContentEntityObjectDao contentDao, GlobalSettingsManager settingsManager, ConfluenceUserResolver confluenceUserResolver, PermissionManager permissionManager) -
Method Summary
Modifier and TypeMethodDescriptionresolve
(String linkText, PageContext pageContext) Resolves an xhtml link from the specified link text.
-
Field Details
-
DO_LINK_PERMISSION_CHECK
- See Also:
-
-
Constructor Details
-
XhtmlMigrationLinkResolver
public XhtmlMigrationLinkResolver(ContentEntityObjectDao contentDao, GlobalSettingsManager settingsManager, ConfluenceUserResolver confluenceUserResolver, PermissionManager permissionManager) - Since:
- 7.16
-
-
Method Details
-
resolve
Resolves an xhtml link from the specified link text. The body of the link will always be a PlainTextLinkBody.- Specified by:
resolve
in interfaceLinkResolver
- Parameters:
linkText
- link textpageContext
- page context- Returns:
- the corresponding link, or null if link text should be ignored or cannot be resolved
-