public class UserMacroConfig extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BODY_TYPE_ESCAPE_HTML |
static String |
BODY_TYPE_NONE |
static String |
BODY_TYPE_RAW |
static String |
BODY_TYPE_RENDERED |
static String |
OUTPUT_TYPE_HTML
Deprecated.
since 4.0. There is only a single output type of HTML supported.
|
static String |
OUTPUT_TYPE_WIKI
Deprecated.
since 4.0. There is only a single output type of HTML supported beyond 4.0.
|
Constructor and Description |
---|
UserMacroConfig() |
Modifier and Type | Method and Description |
---|---|
static Macro.BodyType |
deriveBodyType(UserMacroConfig config) |
String |
getBodyType() |
Set<String> |
getCategories() |
String |
getDescription() |
String |
getDocumentationUrl() |
String |
getIconLocation() |
String |
getName() |
String |
getOutputType()
Deprecated.
since 4.0. There will be only one output type of HTML beyond 4.0.
|
List<MacroParameter> |
getParameters() |
String |
getTemplate() |
String |
getTitle() |
boolean |
isHasBody() |
boolean |
isHidden() |
void |
setBodyType(String bodyType) |
void |
setCategories(Set<String> categories) |
void |
setDescription(String description) |
void |
setDocumentationUrl(String documentationUrl) |
void |
setHasBody(boolean hasBody) |
void |
setHidden(boolean hidden) |
void |
setIconLocation(String iconLocation) |
void |
setName(String name)
Sets the name of the macro, converting to lower-case first.
|
void |
setOutputType(String outputType)
Deprecated.
since 4.0. There will be only one output type of HTML beyond 4.0.
|
void |
setParameters(List<MacroParameter> parameters) |
void |
setTemplate(String template) |
void |
setTitle(String title) |
Macro |
toMacro() |
@Deprecated public static final String OUTPUT_TYPE_HTML
@Deprecated public static final String OUTPUT_TYPE_WIKI
public static final String BODY_TYPE_RAW
public static final String BODY_TYPE_ESCAPE_HTML
public static final String BODY_TYPE_RENDERED
public static final String BODY_TYPE_NONE
public String getName()
public void setName(String name)
public String getTemplate()
public void setTemplate(String template)
public boolean isHasBody()
public void setHasBody(boolean hasBody)
@Deprecated public String getOutputType()
@Deprecated public void setOutputType(String outputType)
outputType
- public String getBodyType()
public void setBodyType(String bodyType)
public String getTitle()
public void setTitle(String title)
public String getDescription()
public void setDescription(String description)
public String getIconLocation()
public void setIconLocation(String iconLocation)
public String getDocumentationUrl()
public void setDocumentationUrl(String documentationUrl)
public boolean isHidden()
public void setHidden(boolean hidden)
public List<MacroParameter> getParameters()
public void setParameters(List<MacroParameter> parameters)
public Macro toMacro()
public static Macro.BodyType deriveBodyType(UserMacroConfig config)
Copyright © 2003–2017 Atlassian. All rights reserved.