public class RadeoxCompatibilityMacro
extends com.atlassian.renderer.macro.RadeoxCompatibilityMacro
Constructor and Description |
---|
RadeoxCompatibilityMacro(com.atlassian.renderer.macro.Macro macro) |
Modifier and Type | Method and Description |
---|---|
static String |
constructRadeoxRawParams(Map parameters)
Constructs a 'raw' parameter' string from the supplied confluence
parameters for use by old style Radeox macros. |
String |
execute(Map parameters,
String content,
com.atlassian.renderer.RenderContext context)
Overrides super method to:
Set the
attachmentsPath if null in the context to the remote path before calling
the super method. |
getBodyRenderMode, getRadeoxMacro, hasBody, isInline
public RadeoxCompatibilityMacro(com.atlassian.renderer.macro.Macro macro)
public String execute(Map parameters, String content, com.atlassian.renderer.RenderContext context) throws com.atlassian.renderer.v2.macro.MacroException
attachmentsPath
if null
in the context
to the remote path before calling
the super method. On return it resets the attachment path in the context.Macro.RAW_PARAMS_KEY
entry (if it does not exist) to the supplied
parameters
so the parameters can be accessed by the old Radeox style macros. This is removed after the call.execute
in interface com.atlassian.renderer.v2.macro.Macro
execute
in class com.atlassian.renderer.macro.RadeoxCompatibilityMacro
parameters
- @inheritcontent
- @inheritcontext
- @inheritcom.atlassian.renderer.v2.macro.MacroException
- @inheritpublic static String constructRadeoxRawParams(Map parameters)
parameters
for use by old style Radeox macros.
The result is a string where name value pairs are of the form <name>=<value>
separated by |
. The default
parameter value (the one with the name ""
- its an index) does not have a name and is always at the start. As mad as it sounds
there was no escaping of |
in values!parameters
- a Map of parameters. The default parameter has the name ""
.null
if there are no parameters.Copyright © 2003–2020 Atlassian. All rights reserved.