public interface PluginPageTemplateHelper
When a plugin page template is edited, a copy of the template is inserted into the database. This copy is returned in place of the original. This helper encapsulates this logic.
Calling this a "helper" so as not to introduce another manager that can cause confusion with PageTemplateManager.
This interface is purely concerned with template retrieval (for now and into the future) so it does not make sense for it to implement PageTemplateManager
which has write methods (and be vulnerable to API breakages).
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.confluence.pages.templates.PageTemplate |
getPageTemplate(ContentTemplateRef contentTemplateRef) |
com.atlassian.confluence.pages.templates.PageTemplate |
getPageTemplate(com.atlassian.confluence.pages.templates.PluginTemplateReference pluginTemplateReference) |
List<com.atlassian.confluence.pages.templates.PageTemplate> |
getPageTemplates(com.atlassian.confluence.spaces.Space space)
Retrieves all templates declared inside plugins.
|
List<I18nPageTemplate> |
getSystemPageTemplates()
Retrieves all templates declared inside system plugins
|
com.atlassian.confluence.pages.templates.PageTemplate getPageTemplate(com.atlassian.confluence.pages.templates.PluginTemplateReference pluginTemplateReference)
pluginTemplateReference - a reference identifying the plugin templatecom.atlassian.confluence.pages.templates.PageTemplate getPageTemplate(ContentTemplateRef contentTemplateRef)
List<com.atlassian.confluence.pages.templates.PageTemplate> getPageTemplates(com.atlassian.confluence.spaces.Space space)
Retrieves all templates declared inside plugins.
Additionally, this method will load all "customisations" of plugin templates that are stored in the database against:
Any customised templates on the space or global level will be returned "instead of" the original plugin template.
space - the space (optional)List<I18nPageTemplate> getSystemPageTemplates()
Retrieves all templates declared inside system plugins
Additionally, this method will load all "customisations" of system plugin templates that are globally stored in the database
Any customised templates on the space or global level will be returned "instead of" the original plugin template.
Copyright © 2017 Atlassian. All rights reserved.