public class DefaultProjectWorkflowSchemeHelper extends Object implements ProjectWorkflowSchemeHelper
Constructor and Description |
---|
DefaultProjectWorkflowSchemeHelper(ProjectService projectService,
WorkflowSchemeManager workflowSchemeManager,
JiraAuthenticationContext authenticationContext) |
Modifier and Type | Method and Description |
---|---|
List<Project> |
getProjectsForScheme(Long schemeId)
Return a list of projects that use the workflow scheme with the passed query.
|
com.google.common.collect.Multimap<String,Project> |
getProjectsForWorkflow(Set<String> workflows)
Return a map of active workflow names to the projects that use those workflows.
|
List<Project> |
getProjectsForWorkflow(String workflowName)
Returns a list of the projects are currently using the passed workflow.
|
public DefaultProjectWorkflowSchemeHelper(ProjectService projectService, WorkflowSchemeManager workflowSchemeManager, JiraAuthenticationContext authenticationContext)
public List<Project> getProjectsForScheme(Long schemeId)
ProjectWorkflowSchemeHelper
getProjectsForScheme
in interface ProjectWorkflowSchemeHelper
schemeId
- the scheme id query. Null can be passed to search for the magical default workflow scheme.public List<Project> getProjectsForWorkflow(String workflowName)
ProjectWorkflowSchemeHelper
Only projects that the passed user can change the configurtion for will be returned.
getProjectsForWorkflow
in interface ProjectWorkflowSchemeHelper
workflowName
- the name of the workflow the check.public com.google.common.collect.Multimap<String,Project> getProjectsForWorkflow(Set<String> workflows)
ProjectWorkflowSchemeHelper
Only projects that the passed user can change the configurtion for will be returned.
getProjectsForWorkflow
in interface ProjectWorkflowSchemeHelper
workflows
- the workflows to query.Copyright © 2002-2015 Atlassian. All Rights Reserved.