Package com.atlassian.confluence.spaces
Class SystemTemplateManagerImpl
- java.lang.Object
-
- com.atlassian.confluence.spaces.SystemTemplateManagerImpl
-
- All Implemented Interfaces:
SystemTemplateManager
public class SystemTemplateManagerImpl extends Object implements SystemTemplateManager
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.spaces.SystemTemplateManager
NEW_GLOBAL_SPACE_TEMPLATE_KEY, NEW_GLOBAL_SPACE_TEMPLATE_NAME, NEW_PERSONAL_SPACE_TEMPLATE_KEY, NEW_PERSONAL_SPACE_TEMPLATE_NAME
-
-
Constructor Summary
Constructors Constructor Description SystemTemplateManagerImpl(PageTemplateManager pageTemplateManager, FormatConverter formatConverter, com.atlassian.plugin.PluginAccessor pluginAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
SystemTemplateManagerImpl
public SystemTemplateManagerImpl(PageTemplateManager pageTemplateManager, FormatConverter formatConverter, com.atlassian.plugin.PluginAccessor pluginAccessor)
-
-
Method Detail
-
getTemplate
public String getTemplate(String templateKey, List<Variable> vars)
- Specified by:
getTemplate
in interfaceSystemTemplateManager
- Parameters:
templateKey
- the complete plugin module of the system template to get- Returns:
- the system template in storage format
-
getTemplate
public String getTemplate(String templateKey, List<Variable> vars, Page page)
- Specified by:
getTemplate
in interfaceSystemTemplateManager
-
saveTemplate
public void saveTemplate(String templateName, String templateKey, String content)
Description copied from interface:SystemTemplateManager
Saves the given content as a system template. If null is passed in as the content, the original system template is restored.- Specified by:
saveTemplate
in interfaceSystemTemplateManager
- Parameters:
templateName
- Name of the templatetemplateKey
- the complete plugin module key of the original system templatecontent
- the template contents in storage format
-
-