com.atlassian.confluence.spaces
Interface SystemTemplateManager

All Known Implementing Classes:
SystemTemplateManagerImpl

public interface SystemTemplateManager


Field Summary
static java.lang.String NEW_GLOBAL_SPACE_TEMPLATE_KEY
           
static java.lang.String NEW_GLOBAL_SPACE_TEMPLATE_NAME
           
static java.lang.String NEW_PERSONAL_SPACE_TEMPLATE_KEY
           
static java.lang.String NEW_PERSONAL_SPACE_TEMPLATE_NAME
           
 
Method Summary
 java.lang.String getTemplate(java.lang.String templateKey, java.util.List<Variable> vars)
           
 java.lang.String getTemplate(java.lang.String templateKey, java.util.List<Variable> vars, Page page)
           
 void saveTemplate(java.lang.String templateName, java.lang.String templateKey, java.lang.String content)
          Saves the given content as a system template.
 

Field Detail

NEW_GLOBAL_SPACE_TEMPLATE_NAME

static final java.lang.String NEW_GLOBAL_SPACE_TEMPLATE_NAME
See Also:
Constant Field Values

NEW_PERSONAL_SPACE_TEMPLATE_NAME

static final java.lang.String NEW_PERSONAL_SPACE_TEMPLATE_NAME
See Also:
Constant Field Values

NEW_GLOBAL_SPACE_TEMPLATE_KEY

static final java.lang.String NEW_GLOBAL_SPACE_TEMPLATE_KEY
See Also:
Constant Field Values

NEW_PERSONAL_SPACE_TEMPLATE_KEY

static final java.lang.String NEW_PERSONAL_SPACE_TEMPLATE_KEY
See Also:
Constant Field Values
Method Detail

getTemplate

java.lang.String getTemplate(java.lang.String templateKey,
                             java.util.List<Variable> vars)
Parameters:
vars -
templateKey - the complete plugin module of the system template to get
Returns:
the system template in storage format

getTemplate

java.lang.String getTemplate(java.lang.String templateKey,
                             java.util.List<Variable> vars,
                             Page page)

saveTemplate

void saveTemplate(java.lang.String templateName,
                  java.lang.String templateKey,
                  java.lang.String content)
Saves the given content as a system template. If null is passed in as the content, the original system template is restored.

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.