Interface ProjectTemplateManager

All Known Implementing Classes:
ProjectTemplateManagerImpl

@PublicApi public interface ProjectTemplateManager
Manager to access project templates.
Since:
7.0
  • 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

      Optional<ProjectTemplate> getProjectTemplate(@Nullable ProjectTemplateKey projectTemplateKey)
      Retrieves a project template by its key in the atlassian-plugin.xml.
      Parameters:
      projectTemplateKey - The key of the project template. projectTemplateKey can 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.