com.atlassian.confluence.spaces
Class SystemTemplateManagerImpl

java.lang.Object
  extended by 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
SystemTemplateManagerImpl(PageTemplateManager pageTemplateManager, FormatConverter formatConverter, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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


Copyright © 2003-2013 Atlassian. All Rights Reserved.