com.atlassian.confluence.pages.templates
Interface TemplateHandler

All Known Implementing Classes:
WikiTemplateHandler, XhtmlTemplateHandler

public interface TemplateHandler

Processes templates.


Method Summary
 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.
 

Method Detail

getTemplateVariables

List<Variable> getTemplateVariables(PageTemplate template)
                                    throws XhtmlException
Throws:
XhtmlException

insertVariables

String insertVariables(Reader templateXml,
                       List<? extends Variable> variables)
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.

Parameters:
templateXml - template XML
variables - the template variables
Returns:
the updated template XML with variables replaced with actual values

generateEditorFormat

String generateEditorFormat(PageTemplate template,
                            List<? extends Variable> variables,
                            String spaceKey)
                            throws XhtmlException
Throws:
XhtmlException


Copyright © 2003–2015 Atlassian. All rights reserved.