Class XhtmlWikiMarkupMacroMigrator
- java.lang.Object
 - 
- com.atlassian.confluence.content.render.xhtml.migration.AbstractExceptionTolerantMigrator
 - 
- com.atlassian.confluence.macro.xhtml.XhtmlWikiMarkupMacroMigrator
 
 
 
- 
- All Implemented Interfaces:
 ExceptionTolerantMigrator
public class XhtmlWikiMarkupMacroMigrator extends AbstractExceptionTolerantMigrator
A Migrator that accepts storage format XHTML and will attempt to convert any instances of unmigrated-wiki-markup macros found to be direct storage XHTML format and therefore replacing the unmigrated-wiki-markup block.
There is no guarantee that any or all instances of the unmigrated-wiki-markup will be replaced. In some cases instances it will not be possible to migrate individual unmigrated-wiki-markup blocks. However, what can be guaranteed is that the returned String will still be suitable storage XHTML formatted data.
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.atlassian.confluence.content.render.xhtml.migration.ExceptionTolerantMigrator
ExceptionTolerantMigrator.MigrationResult 
 - 
 
- 
Constructor Summary
Constructors Constructor Description XhtmlWikiMarkupMacroMigrator(XhtmlContent xhtmlContent, ExceptionTolerantMigrator delegateMigrator) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionTolerantMigrator.MigrationResultmigrate(String inputXhtml, ConversionContext conversionContext)Attempt to migrate any instances of unmigrated-wiki-markup found in the supplied storage XHTML formatted content to storage XHTML.- 
Methods inherited from class com.atlassian.confluence.content.render.xhtml.migration.AbstractExceptionTolerantMigrator
migrate 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
XhtmlWikiMarkupMacroMigrator
public XhtmlWikiMarkupMacroMigrator(XhtmlContent xhtmlContent, ExceptionTolerantMigrator delegateMigrator)
 
 - 
 
- 
Method Detail
- 
migrate
public ExceptionTolerantMigrator.MigrationResult migrate(String inputXhtml, ConversionContext conversionContext)
Attempt to migrate any instances of unmigrated-wiki-markup found in the supplied storage XHTML formatted content to storage XHTML.
- Parameters:
 inputXhtml- storage XHTML formatted String which may contain unmigrated-wiki-markupconversionContext- the context to be applied for this migration- Returns:
 - a storage XHTML formatted String which may or may not still contain unmigrated-wiki-markup blocks.
 
 
 - 
 
 -