public class DefaultProjectFieldLayoutSchemeHelper extends Object implements ProjectFieldLayoutSchemeHelper
Constructor and Description |
---|
DefaultProjectFieldLayoutSchemeHelper(ProjectService projectService,
FieldLayoutManager fieldLayoutManager,
JiraAuthenticationContext authenticationContext) |
Modifier and Type | Method and Description |
---|---|
List<Project> |
getProjectsForFieldLayout(FieldLayout fieldLayout)
Returns a list of the projects are currently using the passed field layout, and the field layout is active.
|
com.google.common.collect.Multimap<FieldLayout,Project> |
getProjectsForFieldLayouts(Set<FieldLayout> fieldLayouts)
Like
ProjectFieldLayoutSchemeHelper.getProjectsForFieldLayout(com.atlassian.jira.issue.fields.layout.field.FieldLayout) , but takes a set of fieldLayouts
and returns a multimap of FieldLayouts -> Active projects |
List<Project> |
getProjectsForScheme(Long schemeId)
Return a list of projects that use the field layout scheme with the passed query.
|
public DefaultProjectFieldLayoutSchemeHelper(ProjectService projectService, FieldLayoutManager fieldLayoutManager, JiraAuthenticationContext authenticationContext)
public List<Project> getProjectsForScheme(Long schemeId)
ProjectFieldLayoutSchemeHelper
getProjectsForScheme
in interface ProjectFieldLayoutSchemeHelper
schemeId
- the scheme id query. Null can be passed to search for the magical system default field layout scheme.public com.google.common.collect.Multimap<FieldLayout,Project> getProjectsForFieldLayouts(Set<FieldLayout> fieldLayouts)
ProjectFieldLayoutSchemeHelper
ProjectFieldLayoutSchemeHelper.getProjectsForFieldLayout(com.atlassian.jira.issue.fields.layout.field.FieldLayout)
, but takes a set of fieldLayouts
and returns a multimap of FieldLayouts -> Active projectsgetProjectsForFieldLayouts
in interface ProjectFieldLayoutSchemeHelper
fieldLayouts
- Field layouts to get projects forProjectNameComparator
public List<Project> getProjectsForFieldLayout(FieldLayout fieldLayout)
ProjectFieldLayoutSchemeHelper
Only projects that the current user can change the configuration for will be returned.
getProjectsForFieldLayout
in interface ProjectFieldLayoutSchemeHelper
fieldLayout
- the name of the field layout the check.Copyright © 2002-2018 Atlassian. All Rights Reserved.