public class

MacroExecutionContext

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.macro.MacroExecutionContext

Class Overview

Container for the execution context of a macro (i.e., the state passed to it on execute(java.util.Map, String, com.atlassian.renderer.RenderContext)).

Summary

Public Constructors
MacroExecutionContext(Map<StringString> params, String body, PageContext pageContext)
Constructor.
Public Methods
String getBody()
Returns the body of the macro.
ContentEntityObject getContent()
Returns the ContentEntityObject associated with this macro.
PageContext getPageContext()
Returns the PageContext of the macro.
Map<StringString> getParams()
Returns the macro parameters and their values.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MacroExecutionContext (Map<StringString> params, String body, PageContext pageContext)

Constructor.

Parameters
params the parameters passed to the macro from the page
body the body of the macro (the text contained between the start and end tags)
pageContext the PageContext that the macro is called from

Public Methods

public String getBody ()

Returns the body of the macro.

Returns
  • the body of the macro

public ContentEntityObject getContent ()

Returns the ContentEntityObject associated with this macro.

Returns

public PageContext getPageContext ()

Returns the PageContext of the macro.

Returns

public Map<StringString> getParams ()

Returns the macro parameters and their values.

Returns
  • the macro parameters and their values.