Macro.BodyType, Macro.OutputType
Constructor and Description |
---|
GenericVelocityMacro() |
Modifier and Type | Method and Description |
---|---|
String |
execute(Map<String,String> parameters,
String body,
ConversionContext context) |
Macro.BodyType |
getBodyType()
The type of body that this macro has, this is used to infer the migration task if no custom one is provided.
|
List<MacroParameter> |
getMacroParameters() |
String |
getName() |
Macro.OutputType |
getOutputType() |
String |
getTemplate() |
boolean |
isEscapeBody() |
boolean |
isLegacyWikiTemplate()
Deprecated.
since 4.0. This is a transition method that will be removed fairly quickly after the 4.0
release since we expected admin's to manually fix their user macros to no longer use wiki templates.
|
void |
setBodyType(Macro.BodyType bodyType) |
void |
setBootstrapManager(BootstrapManager bootstrapManager) |
void |
setEscapeBody(boolean escapeBody) |
void |
setHtmlToXmlConverter(HtmlToXmlConverter htmlToXmlConverter) |
void |
setLegacyWikiTemplate(boolean legacyWikiTemplate) |
void |
setMacroParameters(List<MacroParameter> macroParameters) |
void |
setName(String name) |
void |
setSpaceManager(SpaceManager spaceManager) |
void |
setStorageToViewTransformer(Transformer storageToViewTransformer) |
void |
setSubRenderer(com.atlassian.renderer.v2.V2SubRenderer subRenderer)
Deprecated.
since 4.0. Rendering wiki macro templates is no longer supported. You will need to
manually fix any macros with wiki templates.
|
void |
setTemplate(String template) |
public String execute(Map<String,String> parameters, String body, ConversionContext context) throws MacroExecutionException
execute
in interface Macro
MacroExecutionException
public Macro.BodyType getBodyType()
Macro
getBodyType
in interface Macro
public void setBodyType(Macro.BodyType bodyType)
public Macro.OutputType getOutputType()
getOutputType
in interface Macro
@Deprecated public boolean isLegacyWikiTemplate()
public void setLegacyWikiTemplate(boolean legacyWikiTemplate)
public String getTemplate()
public void setTemplate(String template)
template
- the Velocity template to be rendered by this macro.public String getName()
public void setName(String name)
public boolean isEscapeBody()
public void setEscapeBody(boolean escapeBody)
public void setBootstrapManager(BootstrapManager bootstrapManager)
public void setSpaceManager(SpaceManager spaceManager)
public void setHtmlToXmlConverter(HtmlToXmlConverter htmlToXmlConverter)
public void setStorageToViewTransformer(Transformer storageToViewTransformer)
public List<MacroParameter> getMacroParameters()
public void setMacroParameters(List<MacroParameter> macroParameters)
@Deprecated public void setSubRenderer(com.atlassian.renderer.v2.V2SubRenderer subRenderer)
subRenderer
- the v2 subRenderer to be used if this is an old user macro with a wiki template which has not
yet been fixed.Copyright © 2003–2019 Atlassian. All rights reserved.