public class SystemTemplateManagerImpl extends Object implements SystemTemplateManager
NEW_GLOBAL_SPACE_TEMPLATE_KEY, NEW_GLOBAL_SPACE_TEMPLATE_NAME, NEW_PERSONAL_SPACE_TEMPLATE_KEY, NEW_PERSONAL_SPACE_TEMPLATE_NAME| Constructor and Description | 
|---|
| SystemTemplateManagerImpl(PageTemplateManager pageTemplateManager,
                         FormatConverter formatConverter,
                         com.atlassian.plugin.PluginAccessor pluginAccessor) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getTemplate(String templateKey,
           List<Variable> vars) | 
| String | getTemplate(String templateKey,
           List<Variable> vars,
           Page page) | 
| void | saveTemplate(String templateName,
            String templateKey,
            String content)Saves the given content as a system template. | 
public SystemTemplateManagerImpl(PageTemplateManager pageTemplateManager, FormatConverter formatConverter, com.atlassian.plugin.PluginAccessor pluginAccessor)
public String getTemplate(String templateKey, List<Variable> vars)
getTemplate in interface SystemTemplateManagertemplateKey - the complete plugin module of the system template to getpublic String getTemplate(String templateKey, List<Variable> vars, Page page)
getTemplate in interface SystemTemplateManagerpublic void saveTemplate(String templateName, String templateKey, String content)
SystemTemplateManagersaveTemplate in interface SystemTemplateManagertemplateName - Name of the templatetemplateKey - the complete plugin module key of the original system templatecontent - the template contents in storage formatCopyright © 2003–2017 Atlassian. All rights reserved.