com.atlassian.confluence.macro.xhtml
Class RichTextMacroMigration

java.lang.Object
  extended by com.atlassian.confluence.macro.xhtml.RichTextMacroMigration
All Implemented Interfaces:
MacroMigration

public class RichTextMacroMigration
extends java.lang.Object
implements MacroMigration

Takes a macro with wiki-markup in its body and converts it to XHTML storage format. All wiki markup in the body of the macro is rendered with RenderMode.ALL. If you need to migrate the body of your macro with a different render mode flag, please write and specify your own macro migration task.

Since:
4.0

Constructor Summary
RichTextMacroMigration(MacroManager xhtmlMacroManager)
           
 
Method Summary
 MacroDefinition migrate(MacroDefinition macroDefinition, ConversionContext conversionContext)
          Migrates a wiki-markup representation of a macro to XHTML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RichTextMacroMigration

public RichTextMacroMigration(MacroManager xhtmlMacroManager)
Method Detail

migrate

public MacroDefinition migrate(MacroDefinition macroDefinition,
                               ConversionContext conversionContext)
Description copied from interface: MacroMigration
Migrates a wiki-markup representation of a macro to XHTML

Specified by:
migrate in interface MacroMigration
Parameters:
macroDefinition - The MacroDefinition in wiki-markup form.
conversionContext - The ConversionContext to perform the migration under.
Returns:
An XHTML representation of the macro.


Copyright © 2003-2013 Atlassian. All Rights Reserved.