Class TransformNonUserMacroCondition
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.storage.macro.TransformNonUserMacroCondition
-
- All Implemented Interfaces:
MacroBodyTransformationCondition
public class TransformNonUserMacroCondition extends Object implements MacroBodyTransformationCondition
Returns true if the specified macro is not a user macro.This condition has been introduced for the sake of content that was migrated while it was on confxhtml (i.e. the CONFDEV, QA and tech writing spaces). That is, this class is not relevant for customer data.
Specifically, there were user macros in these spaces that:
- produced INLINE output
- had rich text bodies that contain nested or block markup
Until we find a way to represent INLINE macros with nested macros and block markup, we should keep this condition around.
-
-
Constructor Summary
Constructors Constructor Description TransformNonUserMacroCondition(MacroManager xhtmlMacroManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldTransform(String macroName)
Returns true if the macro body should be transformed, false otherwise.
-
-
-
Constructor Detail
-
TransformNonUserMacroCondition
public TransformNonUserMacroCondition(MacroManager xhtmlMacroManager)
-
-
Method Detail
-
shouldTransform
public boolean shouldTransform(String macroName)
Description copied from interface:MacroBodyTransformationCondition
Returns true if the macro body should be transformed, false otherwise.- Specified by:
shouldTransform
in interfaceMacroBodyTransformationCondition
- Parameters:
macroName
- macro name
-
-