public class WikiTemplateHandler extends Object implements TemplateHandler
| Constructor and Description |
|---|
WikiTemplateHandler(EditorFormatService editorFormatService,
SpaceManagerInternal spaceManager) |
| 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, SpaceManagerInternal spaceManager)
public List<Variable> getTemplateVariables(PageTemplate template)
getTemplateVariables in interface TemplateHandlerpublic String insertVariables(Reader templateXml, List<? extends Variable> variables)
TemplateHandlerinsertVariables in interface TemplateHandlertemplateXml - template XMLvariables - the template variablespublic String generateEditorFormat(PageTemplate template, List<? extends Variable> variables, String spaceKey) throws XhtmlException
generateEditorFormat in interface TemplateHandlerXhtmlExceptionCopyright © 2003–2022 Atlassian. All rights reserved.