Class SystemTemplateManagerImpl

    • 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 interface SystemTemplateManager
        Parameters:
        templateKey - the complete plugin module of the system template to get
        Returns:
        the system template in storage format
      • 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 interface SystemTemplateManager
        Parameters:
        templateName - Name of the template
        templateKey - the complete plugin module key of the original system template
        content - the template contents in storage format