Interface ProjectTemplateManager
- All Known Implementing Classes:
ProjectTemplateManagerImpl
@PublicApi
public interface ProjectTemplateManager
Manager to access project templates.
- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionGets a default template that can be used to create a project.getProjectTemplate(ProjectTemplateKey projectTemplateKey) Retrieves a project template by its key in theatlassian-plugin.xml.Get the list of Project Template for a given user within a given context
-
Method Details
-
getProjectTemplates
List<ProjectTemplate> getProjectTemplates()Get the list of Project Template for a given user within a given context- Returns:
- The list of available project templates
-
getProjectTemplate
Retrieves a project template by its key in theatlassian-plugin.xml.- Parameters:
projectTemplateKey- The key of the project template.projectTemplateKeycan be null, or contain a null key.- Returns:
- The requested project template, or empty if a matching template can't be found.
-
getDefaultTemplate
ProjectTemplate getDefaultTemplate()Gets a default template that can be used to create a project.- Returns:
- The default template.
-