Package com.atlassian.confluence.macro
Class MacroExecutionContext
java.lang.Object
com.atlassian.confluence.macro.MacroExecutionContext
Container for the execution context of a macro (i.e., the state passed
to it on
Macro.execute(java.util.Map, String, com.atlassian.renderer.RenderContext)
).- Since:
- 2.9
-
Constructor Summary
ConstructorDescriptionMacroExecutionContext
(Map<String, String> params, String body, PageContext pageContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Returns the body of the macro.Returns theContentEntityObject
associated with this macro.Returns thePageContext
of the macro.Returns the macro parameters and their values.
-
Constructor Details
-
MacroExecutionContext
Constructor.- Parameters:
params
- the parameters passed to the macro from the pagebody
- the body of the macro (the text contained between the start and end tags)pageContext
- thePageContext
that the macro is called from
-
-
Method Details
-
getParams
Returns the macro parameters and their values.- Returns:
- the macro parameters and their values.
-
getBody
Returns the body of the macro.- Returns:
- the body of the macro
-
getPageContext
Returns thePageContext
of the macro.- Returns:
- the
PageContext
of the macro.
-
getContent
Returns theContentEntityObject
associated with this macro.- Returns:
- the
ContentEntityObject
associated with this macro
-