public interface SystemTemplateManager
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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.
|
static final java.lang.String NEW_GLOBAL_SPACE_TEMPLATE_NAME
static final java.lang.String NEW_PERSONAL_SPACE_TEMPLATE_NAME
static final java.lang.String NEW_GLOBAL_SPACE_TEMPLATE_KEY
static final java.lang.String NEW_PERSONAL_SPACE_TEMPLATE_KEY
java.lang.String getTemplate(java.lang.String templateKey, java.util.List<Variable> vars)
vars
- templateKey
- the complete plugin module of the system template to getjava.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)
templateName
- Name of the templatetemplateKey
- the complete plugin module key of the original system templatecontent
- the template contents in storage formatCopyright © 2003-2014 Atlassian. All Rights Reserved.