public class ProjectTemplateManagerImpl extends Object implements ProjectTemplateManager
Constructor and Description |
---|
ProjectTemplateManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
JiraAuthenticationContext authenticationContext,
ProjectTemplateBuilderFactory builderFactory,
ApplicationAuthorizationService applicationAuthorizationService) |
Modifier and Type | Method and Description |
---|---|
ProjectTemplate |
getDefaultTemplate()
Gets a default template that can be used to create a project.
|
Optional<ProjectTemplate> |
getProjectTemplate(ProjectTemplateKey projectTemplateKey)
Retrieves a project template by its key in the
atlassian-plugin.xml . |
List<ProjectTemplate> |
getProjectTemplates()
Get the list of Project Template for a given user within a given context
|
public ProjectTemplateManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, JiraAuthenticationContext authenticationContext, ProjectTemplateBuilderFactory builderFactory, ApplicationAuthorizationService applicationAuthorizationService)
public List<ProjectTemplate> getProjectTemplates()
ProjectTemplateManager
getProjectTemplates
in interface ProjectTemplateManager
public Optional<ProjectTemplate> getProjectTemplate(ProjectTemplateKey projectTemplateKey)
ProjectTemplateManager
atlassian-plugin.xml
.getProjectTemplate
in interface ProjectTemplateManager
projectTemplateKey
- The key of the project template.public ProjectTemplate getDefaultTemplate()
ProjectTemplateManager
getDefaultTemplate
in interface ProjectTemplateManager
Copyright © 2002-2015 Atlassian. All Rights Reserved.