Class SystemTemplateManagerImpl

java.lang.Object
com.atlassian.confluence.spaces.SystemTemplateManagerImpl
All Implemented Interfaces:
SystemTemplateManager

public class SystemTemplateManagerImpl extends Object implements SystemTemplateManager
  • Constructor Details

    • SystemTemplateManagerImpl

      public SystemTemplateManagerImpl(PageTemplateManager pageTemplateManager, FormatConverter formatConverter, com.atlassian.plugin.PluginAccessor pluginAccessor)
  • Method Details

    • 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
    • getTemplate

      public String getTemplate(String templateKey, List<Variable> vars, Page page)
      Specified by:
      getTemplate in interface SystemTemplateManager
    • 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