com.atlassian.confluence.content.render.xhtml.migration
Class XhtmlMigrationLinkResolver

java.lang.Object
  extended by 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 a PlainTextLinkBody.


Constructor Summary
XhtmlMigrationLinkResolver(ContentDao contentDao, SettingsManager settingsManager)
           
 
Method Summary
 Link resolve(String linkText, PageContext pageContext)
          Resolves an xhtml link from the specified link text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XhtmlMigrationLinkResolver

public XhtmlMigrationLinkResolver(ContentDao contentDao,
                                  SettingsManager settingsManager)
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 interface LinkResolver
Parameters:
linkText - link text
pageContext - page context
Returns:
the corresponding link, or null if link text should be ignored or cannot be resolved


Copyright © 2003-2012 Atlassian. All Rights Reserved.