public class DefaultPageTemplateManager extends Object implements PageTemplateManager
Constructor and Description |
---|
DefaultPageTemplateManager() |
public void setPageTemplateDao(PageTemplateDao pageTemplateDao)
public void setWikiToXhtmlMigrator(WikiToXhtmlMigrator wikiToXhtmlMigrator)
public void setTemplateHandlers(Map<BodyType,TemplateHandler> templateHandlers)
public void savePageTemplate(PageTemplate pageTemplate, PageTemplate originalTemplate)
savePageTemplate
in interface PageTemplateManager
public void refreshPageTemplate(PageTemplate pageTemplate)
refreshPageTemplate
in interface PageTemplateManager
public void removePageTemplate(PageTemplate page)
removePageTemplate
in interface PageTemplateManager
public PageTemplate getPageTemplate(long id)
getPageTemplate
in interface PageTemplateManager
public PageTemplate getPageTemplate(PluginTemplateReference pluginTemplateReference)
getPageTemplate
in interface PageTemplateManager
public PageTemplate getPageTemplate(String name, Space space)
getPageTemplate
in interface PageTemplateManager
public List getPageTemplates(Space space)
getPageTemplates
in interface PageTemplateManager
public List getGlobalPageTemplates()
getGlobalPageTemplates
in interface PageTemplateManager
public PageTemplate getGlobalPageTemplate(String name)
getGlobalPageTemplate
in interface PageTemplateManager
public void setEventManager(com.atlassian.event.EventManager eventManager)
setEventManager
in interface PageTemplateManager
public void removeAllPageTemplates(Space space)
removeAllPageTemplates
in interface PageTemplateManager
public List getTemplateVariables(PageTemplate template) throws XhtmlException
getTemplateVariables
in interface PageTemplateManager
XhtmlException
public String mergeVariables(PageTemplate template, List variables) throws XhtmlException
mergeVariables
in interface PageTemplateManager
XhtmlException
public String mergeVariables(PageTemplate template, List variables, String spaceKey) throws XhtmlException
mergeVariables
in interface PageTemplateManager
XhtmlException
public String insertVariables(PageTemplate template, List variables)
insertVariables
in interface PageTemplateManager
public boolean canCreate(PageTemplate template, PageTemplate foundTemplate)
PageTemplateManager
canCreate
in interface PageTemplateManager
template
- to be created, null if it's a new templatefoundTemplate
- template found in DB, null if not foundCopyright © 2003–2017 Atlassian. All rights reserved.