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.BodyTypederiveBodyType(UserMacroConfig config) getName()Deprecated.since 4.0.getTitle()booleanbooleanbooleanisHidden()voidsetBodyType(String bodyType) voidsetCategories(Set<String> categories) voidsetCommentable(boolean commentable) voidsetDescription(String description) voidsetDocumentationUrl(String documentationUrl) voidsetHasBody(boolean hasBody) voidsetHidden(boolean hidden) voidsetIconLocation(String iconLocation) voidSets the name of the macro, converting to lower-case first.voidsetOutputType(String outputType) Deprecated.since 4.0.voidsetParameters(List<MacroParameter> parameters) voidsetTemplate(String template) voidtoMacro()
-
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) -
isCommentable
public boolean isCommentable() -
setCommentable
public void setCommentable(boolean commentable) -
getParameters
-
setParameters
-
toMacro
-
deriveBodyType
-