Class XhtmlMigrationLinkResolver
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.migration.XhtmlMigrationLinkResolver
-
- All Implemented Interfaces:
LinkResolver
public class XhtmlMigrationLinkResolver extends Object implements 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 aPlainTextLinkBody
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DO_LINK_PERMISSION_CHECK
-
Constructor Summary
Constructors Constructor Description XhtmlMigrationLinkResolver(ContentDao contentDao, GlobalSettingsManager settingsManager, ConfluenceUserResolver confluenceUserResolver, PermissionManager permissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Link
resolve(String linkText, PageContext pageContext)
Resolves an xhtml link from the specified link text.
-
-
-
Field Detail
-
DO_LINK_PERMISSION_CHECK
public static final String DO_LINK_PERMISSION_CHECK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XhtmlMigrationLinkResolver
public XhtmlMigrationLinkResolver(ContentDao contentDao, GlobalSettingsManager settingsManager, ConfluenceUserResolver confluenceUserResolver, PermissionManager permissionManager)
- Since:
- 7.16
-
-
Method Detail
-
resolve
public Link resolve(String linkText, PageContext pageContext)
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
-
-