Package com.atlassian.confluence.macro
Class MacroExecutionContext
- java.lang.Object
-
- com.atlassian.confluence.macro.MacroExecutionContext
-
public class MacroExecutionContext extends Object
Container for the execution context of a macro (i.e., the state passed to it onMacro.execute(java.util.Map, String, com.atlassian.renderer.RenderContext)).- Since:
- 2.9
-
-
Constructor Summary
Constructors Constructor Description MacroExecutionContext(Map<String,String> params, String body, PageContext pageContext)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()Returns the body of the macro.ContentEntityObjectgetContent()Returns theContentEntityObjectassociated with this macro.PageContextgetPageContext()Returns thePageContextof the macro.Map<String,String>getParams()Returns the macro parameters and their values.
-
-
-
Constructor Detail
-
MacroExecutionContext
public MacroExecutionContext(Map<String,String> params, String body, PageContext pageContext)
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- thePageContextthat the macro is called from
-
-
Method Detail
-
getParams
public Map<String,String> getParams()
Returns the macro parameters and their values.- Returns:
- the macro parameters and their values.
-
getBody
public String getBody()
Returns the body of the macro.- Returns:
- the body of the macro
-
getPageContext
public PageContext getPageContext()
Returns thePageContextof the macro.- Returns:
- the
PageContextof the macro.
-
getContent
public ContentEntityObject getContent()
Returns theContentEntityObjectassociated with this macro.- Returns:
- the
ContentEntityObjectassociated with this macro
-
-