java.lang.Object |
↳ |
com.atlassian.renderer.v2.macro.BaseMacro |
|
↳ |
com.atlassian.renderer.macro.RadeoxCompatibilityMacro |
|
|
↳ |
com.atlassian.confluence.renderer.v2.macros.RadeoxCompatibilityMacro |
Class Overview
A wrapper macro that retains compatibility with our old Radeox-style macros
Summary
[Expand]
Inherited Constants |
From class
com.atlassian.renderer.macro.RadeoxCompatibilityMacro
|
From interface
com.atlassian.renderer.v2.macro.Macro
|
[Expand]
Inherited Fields |
From class
com.atlassian.renderer.macro.RadeoxCompatibilityMacro
public
static
final
Category |
log |
|
|
Public Methods |
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, RenderContext context)
Overrides super method to:
Set the attachmentsPath if null in the context to the remote path before calling
the super method.
|
[Expand]
Inherited Methods |
From class
com.atlassian.renderer.macro.RadeoxCompatibilityMacro
String
|
execute(Map arg0, String arg1, RenderContext arg2)
|
RenderMode
|
getBodyRenderMode()
|
Macro
|
getRadeoxMacro()
|
boolean
|
hasBody()
|
boolean
|
isInline()
|
|
From class
com.atlassian.renderer.v2.macro.BaseMacro
TokenType
|
getTokenType(Map arg0, String arg1, RenderContext arg2)
|
WysiwygBodyType
|
getWysiwygBodyType()
|
boolean
|
isInline()
|
boolean
|
suppressMacroRenderingDuringWysiwyg()
|
boolean
|
suppressSurroundingTagDuringWysiwygRendering()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.renderer.v2.macro.Macro
String
|
execute(Map arg0, String arg1, RenderContext arg2)
|
RenderMode
|
getBodyRenderMode()
|
TokenType
|
getTokenType(Map arg0, String arg1, RenderContext arg2)
|
WysiwygBodyType
|
getWysiwygBodyType()
|
boolean
|
hasBody()
|
boolean
|
isInline()
|
boolean
|
suppressMacroRenderingDuringWysiwyg()
|
boolean
|
suppressSurroundingTagDuringWysiwygRendering()
|
|
Public Constructors
public
RadeoxCompatibilityMacro
(Macro macro)
Public Methods
public
static
String
constructRadeoxRawParams
(Map parameters)
Constructs a 'raw' parameter' string from the supplied confluence 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 "0"
- 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
parameters
| a Map of parameters. The default parameter has the name "0" . |
Returns
- the raw parameter string or
null
if there are no parameters.
public
String
execute
(Map parameters, String content, RenderContext context)
Overrides super method to:
Set the 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.
Adds a 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.
Parameters
parameters
| @inherit |
content
| @inherit |
context
| @inherit |