Class UserMacroConfig
java.lang.Object
com.atlassian.confluence.renderer.UserMacroConfig
- All Implemented Interfaces:
Serializable
Defines a user macro. This gets serialized by Bandana, so don't put any complex objects
in it.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Macro.BodyType
deriveBodyType
(UserMacroConfig config) getName()
Deprecated.since 4.0.getTitle()
boolean
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
Sets the name of the macro, converting to lower-case first.void
setOutputType
(String outputType) Deprecated.since 4.0.void
setParameters
(List<MacroParameter> parameters) void
setTemplate
(String template) void
toMacro()
-
Field Details
-
OUTPUT_TYPE_HTML
Deprecated.since 4.0. There is only a single output type of HTML supported.- See Also:
-
OUTPUT_TYPE_WIKI
Deprecated.since 4.0. There is only a single output type of HTML supported beyond 4.0.- See Also:
-
VISIBLE_ALL_USERS
- See Also:
-
VISIBLE_ADMINS_ONLY
- See Also:
-
BODY_TYPE_RAW
- See Also:
-
BODY_TYPE_ESCAPE_HTML
- See Also:
-
BODY_TYPE_RENDERED
- See Also:
-
BODY_TYPE_NONE
- See Also:
-
-
Constructor Details
-
UserMacroConfig
public UserMacroConfig()
-
-
Method Details
-
getName
- Returns:
- the name of the macro, always lower-case.
-
setName
Sets the name of the macro, converting to lower-case first. -
getTemplate
-
setTemplate
-
isHasBody
public boolean isHasBody() -
setHasBody
public void setHasBody(boolean hasBody) -
getOutputType
Deprecated.since 4.0. There will be only one output type of HTML beyond 4.0. -
setOutputType
Deprecated.since 4.0. There will be only one output type of HTML beyond 4.0.- Parameters:
outputType
-
-
getBodyType
-
setBodyType
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getCategories
-
setCategories
-
getIconLocation
-
setIconLocation
-
getDocumentationUrl
-
setDocumentationUrl
-
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean hidden) -
getParameters
-
setParameters
-
toMacro
-
deriveBodyType
-