public interface PageTemplateManager
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate(PageTemplate template,
PageTemplate foundTemplate)
Returns if a template can be created.
|
PageTemplate |
getGlobalPageTemplate(String name) |
List |
getGlobalPageTemplates() |
PageTemplate |
getPageTemplate(long id) |
PageTemplate |
getPageTemplate(PluginTemplateReference pluginTemplateReference) |
PageTemplate |
getPageTemplate(String name,
Space space) |
List |
getPageTemplates(Space space) |
List |
getTemplateVariables(PageTemplate template) |
String |
insertVariables(PageTemplate template,
List variables) |
String |
mergeVariables(PageTemplate template,
List variables,
String spaceKey) |
void |
refreshPageTemplate(PageTemplate pageTemplate) |
void |
removeAllPageTemplates(Space space) |
void |
removePageTemplate(PageTemplate page) |
void |
savePageTemplate(PageTemplate page,
PageTemplate original) |
void |
setEventManager(com.atlassian.event.EventManager eventManager) |
void savePageTemplate(PageTemplate page, PageTemplate original)
void refreshPageTemplate(PageTemplate pageTemplate)
PageTemplate getPageTemplate(long id)
PageTemplate getPageTemplate(PluginTemplateReference pluginTemplateReference)
PageTemplate getPageTemplate(String name, Space space)
void removePageTemplate(PageTemplate page)
List getTemplateVariables(PageTemplate template) throws XhtmlException
XhtmlException
String mergeVariables(PageTemplate template, List variables, String spaceKey) throws XhtmlException
XhtmlException
String insertVariables(PageTemplate template, List variables)
boolean canCreate(PageTemplate template, PageTemplate foundTemplate)
template
- to be created, null if it's a new templatefoundTemplate
- template found in DB, null if not foundList getGlobalPageTemplates()
PageTemplate getGlobalPageTemplate(String name)
void setEventManager(com.atlassian.event.EventManager eventManager)
void removeAllPageTemplates(Space space)
Copyright © 2003–2020 Atlassian. All rights reserved.