public class WikiTemplateHandler extends Object implements TemplateHandler
Constructor and Description |
---|
WikiTemplateHandler(EditorFormatService editorFormatService) |
Modifier and Type | Method and Description |
---|---|
String |
generateEditorFormat(PageTemplate template,
List<? extends Variable> variables,
String spaceKey) |
List<Variable> |
getTemplateVariables(PageTemplate template) |
String |
insertVariables(Reader templateXml,
List<? extends Variable> variables)
Insert specified variables into the template XML before returning it.
|
public WikiTemplateHandler(EditorFormatService editorFormatService)
public List<Variable> getTemplateVariables(PageTemplate template)
getTemplateVariables
in interface TemplateHandler
public String insertVariables(Reader templateXml, List<? extends Variable> variables)
TemplateHandler
insertVariables
in interface TemplateHandler
templateXml
- template XMLvariables
- the template variablespublic String generateEditorFormat(PageTemplate template, List<? extends Variable> variables, String spaceKey) throws XhtmlException
generateEditorFormat
in interface TemplateHandler
XhtmlException
Copyright © 2003–2020 Atlassian. All rights reserved.