|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.renderer.v2.macro.BaseMacro
com.atlassian.confluence.macro.ContentFilteringMacro
public abstract class ContentFilteringMacro
Convenience class that provides default values for macros which retrieve content from somewhere else in Confluence.
Field Summary | |
---|---|
protected AuthorParameter |
authorParam
Parameter to handle the creator/author of the content. |
protected ContentTypeParameter |
contentTypeParam
Parameter to handle content type filtering. |
static java.lang.String |
DEFAULT_MAX_RESULTS
Default value for a maxResults parameter. |
static java.lang.String |
DEFAULT_SPACE_KEY
Default value for a spaceKey parameter. |
protected LabelParameter |
labelParam
Parameter to handle label filtering. |
protected MaxResultsParameter |
maxResultsParam
Parameter to handle the maximum number of results. |
protected SearchManager |
searchManager
SearchManager instance for handling queries based on
parameter values. |
protected SearchSortParameter |
sortParam
Parameter that describes the type of sort to perform on the content. |
protected SpaceKeyParameter |
spaceKeyParam
Parameter to handle space key filtering. |
Fields inherited from interface com.atlassian.renderer.v2.macro.Macro |
---|
RAW_PARAMS_KEY |
Constructor Summary | |
---|---|
ContentFilteringMacro()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
execute(MacroExecutionContext ctx)
Subclasses must override macro-specific functionality in this method. |
java.lang.String |
execute(java.util.Map params,
java.lang.String body,
com.atlassian.renderer.RenderContext renderContext)
This implementation is final to ensure that subclasses are provided with a valid MacroExecutionContext . |
void |
setSearchManager(SearchManager searchManager)
Injector for SearchManager . |
Methods inherited from class com.atlassian.renderer.v2.macro.BaseMacro |
---|
getTokenType, getWysiwygBodyType, isInline, suppressMacroRenderingDuringWysiwyg, suppressSurroundingTagDuringWysiwygRendering |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.renderer.v2.macro.Macro |
---|
getBodyRenderMode, hasBody |
Field Detail |
---|
public static final java.lang.String DEFAULT_MAX_RESULTS
maxResults
parameter.
public static final java.lang.String DEFAULT_SPACE_KEY
spaceKey
parameter.
protected final LabelParameter labelParam
protected final ContentTypeParameter contentTypeParam
protected final SpaceKeyParameter spaceKeyParam
protected final AuthorParameter authorParam
protected final MaxResultsParameter maxResultsParam
protected final SearchSortParameter sortParam
protected SearchManager searchManager
SearchManager
instance for handling queries based on
parameter values.
Constructor Detail |
---|
public ContentFilteringMacro()
Method Detail |
---|
public final java.lang.String execute(java.util.Map params, java.lang.String body, com.atlassian.renderer.RenderContext renderContext) throws com.atlassian.renderer.v2.macro.MacroException
MacroExecutionContext
.
params
- the macro parametersbody
- the macro bodyrenderContext
- the RenderContext
provided to the macro
com.atlassian.renderer.v2.macro.MacroException
- if the macro fails to executeprotected abstract java.lang.String execute(MacroExecutionContext ctx) throws com.atlassian.renderer.v2.macro.MacroException
ctx
- the MacroExecutionContext
for this invocation
com.atlassian.renderer.v2.macro.MacroException
- if the macro fails to executepublic void setSearchManager(SearchManager searchManager)
SearchManager
.
searchManager
- the SearchManager
to inject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |