Package com.atlassian.confluence.spaces
Interface SystemTemplateManager
- All Known Implementing Classes:
SystemTemplateManagerImpl
public interface SystemTemplateManager
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTemplate
(String templateKey, List<Variable> vars) getTemplate
(String templateKey, List<Variable> vars, Page page) void
saveTemplate
(String templateName, String templateKey, String content) Saves the given content as a system template.
-
Field Details
-
NEW_GLOBAL_SPACE_TEMPLATE_NAME
- See Also:
-
NEW_PERSONAL_SPACE_TEMPLATE_NAME
- See Also:
-
NEW_GLOBAL_SPACE_TEMPLATE_KEY
- See Also:
-
NEW_PERSONAL_SPACE_TEMPLATE_KEY
- See Also:
-
-
Method Details
-
getTemplate
- Parameters:
vars
-templateKey
- the complete plugin module of the system template to get- Returns:
- the system template in storage format
-
getTemplate
-
saveTemplate
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 templatetemplateKey
- the complete plugin module key of the original system templatecontent
- the template contents in storage format
-