Class WikiTemplateHandler
java.lang.Object
com.atlassian.confluence.pages.templates.WikiTemplateHandler
- All Implemented Interfaces:
TemplateHandler
-
Constructor Summary
ConstructorsConstructorDescriptionWikiTemplateHandler
(EditorFormatService editorFormatService, SpaceManagerInternal spaceManager) -
Method Summary
Modifier and TypeMethodDescriptiongenerateEditorFormat
(PageTemplate template, List<? extends Variable> variables, String spaceKey) getTemplateVariables
(PageTemplate template) insertVariables
(Reader templateXml, List<? extends Variable> variables) Insert specified variables into the template XML before returning it.
-
Constructor Details
-
WikiTemplateHandler
public WikiTemplateHandler(EditorFormatService editorFormatService, SpaceManagerInternal spaceManager)
-
-
Method Details
-
getTemplateVariables
- Specified by:
getTemplateVariables
in interfaceTemplateHandler
-
insertVariables
Description copied from interface:TemplateHandler
Insert specified variables into the template XML before returning it. If an <at:var> is encountered in the XML that doesn't have a value specified, it will be replaced with empty string.- Specified by:
insertVariables
in interfaceTemplateHandler
- Parameters:
templateXml
- template XMLvariables
- the template variables- Returns:
- the updated template XML with variables replaced with actual values
-
generateEditorFormat
public String generateEditorFormat(PageTemplate template, List<? extends Variable> variables, String spaceKey) throws XhtmlException - Specified by:
generateEditorFormat
in interfaceTemplateHandler
- Throws:
XhtmlException
-