com.atlassian.confluence.pages.templates
Interface PageTemplateManager
- All Known Implementing Classes:
- DefaultPageTemplateManager
public interface PageTemplateManager
Method Summary |
boolean |
canCreate(PageTemplate template,
PageTemplate foundTemplate)
Returns if a template can be created. |
PageTemplate |
getGlobalPageTemplate(java.lang.String name)
|
java.util.List |
getGlobalPageTemplates()
|
PageTemplate |
getPageTemplate(long id)
|
PageTemplate |
getPageTemplate(PluginTemplateReference pluginTemplateReference)
|
PageTemplate |
getPageTemplate(java.lang.String name,
Space space)
|
java.util.List |
getPageTemplates(Space space)
|
java.util.List |
getTemplateVariables(PageTemplate template)
|
java.lang.String |
insertVariables(PageTemplate template,
java.util.List variables)
|
java.lang.String |
mergeVariables(PageTemplate template,
java.util.List variables)
Deprecated. since 4.3, replaced by mergeVariables(PageTemplate,List,String) |
java.lang.String |
mergeVariables(PageTemplate template,
java.util.List variables,
java.lang.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)
|
savePageTemplate
void savePageTemplate(PageTemplate page,
PageTemplate original)
refreshPageTemplate
void refreshPageTemplate(PageTemplate pageTemplate)
getPageTemplate
PageTemplate getPageTemplate(long id)
getPageTemplate
PageTemplate getPageTemplate(PluginTemplateReference pluginTemplateReference)
getPageTemplate
PageTemplate getPageTemplate(java.lang.String name,
Space space)
getPageTemplates
java.util.List getPageTemplates(Space space)
- Returns:
- the list of all templates of the space
removePageTemplate
void removePageTemplate(PageTemplate page)
getTemplateVariables
java.util.List getTemplateVariables(PageTemplate template)
throws XhtmlException
- Throws:
XhtmlException
mergeVariables
java.lang.String mergeVariables(PageTemplate template,
java.util.List variables)
throws XhtmlException
- Deprecated. since 4.3, replaced by
mergeVariables(PageTemplate,List,String)
- Throws:
XhtmlException
mergeVariables
java.lang.String mergeVariables(PageTemplate template,
java.util.List variables,
java.lang.String spaceKey)
throws XhtmlException
- Throws:
XhtmlException
insertVariables
java.lang.String insertVariables(PageTemplate template,
java.util.List variables)
canCreate
boolean canCreate(PageTemplate template,
PageTemplate foundTemplate)
- Returns if a template can be created.
- Parameters:
template
- to be created, null if it's a new templatefoundTemplate
- template found in DB, null if not found
- Returns:
- true if the template can be created, otherwise false
getGlobalPageTemplates
java.util.List getGlobalPageTemplates()
getGlobalPageTemplate
PageTemplate getGlobalPageTemplate(java.lang.String name)
setEventManager
void setEventManager(com.atlassian.event.EventManager eventManager)
removeAllPageTemplates
void removeAllPageTemplates(Space space)
Copyright © 2003-2014 Atlassian. All Rights Reserved.