Package com.atlassian.confluence.spaces
Class SystemTemplateManagerImpl
java.lang.Object
com.atlassian.confluence.spaces.SystemTemplateManagerImpl
- All Implemented Interfaces:
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
ConstructorDescriptionSystemTemplateManagerImpl
(PageTemplateManager pageTemplateManager, FormatConverter formatConverter, com.atlassian.plugin.PluginAccessor pluginAccessor) -
Method Summary
Modifier and TypeMethodDescriptiongetTemplate
(String templateKey, List<Variable> vars) 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 Details
-
SystemTemplateManagerImpl
public SystemTemplateManagerImpl(PageTemplateManager pageTemplateManager, FormatConverter formatConverter, com.atlassian.plugin.PluginAccessor pluginAccessor)
-
-
Method Details
-
getTemplate
- 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
- Specified by:
getTemplate
in interfaceSystemTemplateManager
-
saveTemplate
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
-