@PublicSpi public abstract class AbstractBlueprintContextProvider extends Object implements com.atlassian.plugin.web.ContextProvider
BlueprintContext for Blueprint Template renders.
"context-provider" implementations in "content-template" plugin modules should extend this class rather than
implementing ContextProvider directly.
| Modifier and Type | Field and Description |
|---|---|
protected TemplateRendererHelper |
templateRendererHelper |
| Constructor and Description |
|---|
AbstractBlueprintContextProvider()
Deprecated.
since 2.1.18.
|
AbstractBlueprintContextProvider(TemplateRendererHelper templateRendererHelper) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getContextMap(Map<String,Object> context) |
void |
init(Map<String,String> params) |
protected String |
renderContentReportTableMacro(String templateLabel,
String analyticsKey,
String spaceKey,
String blankTitle,
String blankDescription,
String createButtonLabel,
String contentBlueprintId,
String blueprintModuleCompleteKey) |
protected String |
renderCreateFromTemplateMacro(String contentBlueprintId,
String createButtonLabel,
String spaceKey,
String blueprintModuleCompleteKey) |
void |
setTemplateRendererHelper(TemplateRendererHelper templateRendererHelper) |
protected abstract BlueprintContext |
updateBlueprintContext(BlueprintContext blueprintContext)
Updates the given
BlueprintContext to include extra context required by a PageTemplate render. |
protected TemplateRendererHelper templateRendererHelper
public AbstractBlueprintContextProvider()
public AbstractBlueprintContextProvider(TemplateRendererHelper templateRendererHelper)
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
init in interface com.atlassian.plugin.web.ContextProvidercom.atlassian.plugin.PluginParseExceptionpublic final Map<String,Object> getContextMap(Map<String,Object> context)
getContextMap in interface com.atlassian.plugin.web.ContextProviderprotected abstract BlueprintContext updateBlueprintContext(BlueprintContext blueprintContext)
BlueprintContext to include extra context required by a PageTemplate render.protected String renderCreateFromTemplateMacro(String contentBlueprintId, String createButtonLabel, String spaceKey, String blueprintModuleCompleteKey)
protected String renderContentReportTableMacro(String templateLabel, String analyticsKey, String spaceKey, String blankTitle, String blankDescription, String createButtonLabel, String contentBlueprintId, String blueprintModuleCompleteKey)
public void setTemplateRendererHelper(TemplateRendererHelper templateRendererHelper)
Copyright © 2017 Atlassian. All rights reserved.