public class DefaultProjectWorkflowSchemeHelper extends Object implements ProjectWorkflowSchemeHelper
| Constructor and Description |
|---|
DefaultProjectWorkflowSchemeHelper(ProjectService projectService,
WorkflowSchemeManager workflowSchemeManager,
JiraAuthenticationContext authenticationContext,
ProjectManager projectManager) |
| Modifier and Type | Method and Description |
|---|---|
List<Project> |
getAllProjectsForScheme(Long schemeId)
Return a list of projects that use the workflow scheme with the passed query.
|
com.google.common.collect.Multimap<String,Project> |
getAllProjectsForWorkflow(Set<String> workflows)
Return a map of active workflow names to the projects that use those workflows.
|
List<Project> |
getAllProjectsForWorkflow(String workflowName)
Returns a list of the projects are currently using the passed workflow.
|
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.
|
boolean |
isWorkflowIsolated(String workflowName)
Checks whether given workflow is used by only one project.
|
public DefaultProjectWorkflowSchemeHelper(ProjectService projectService, WorkflowSchemeManager workflowSchemeManager, JiraAuthenticationContext authenticationContext, ProjectManager projectManager)
public List<Project> getAllProjectsForScheme(Long schemeId)
ProjectWorkflowSchemeHelpergetAllProjectsForScheme in interface ProjectWorkflowSchemeHelperschemeId - 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 ProjectWorkflowSchemeHelperworkflowName - the name of the workflow the check.public List<Project> getAllProjectsForWorkflow(String workflowName)
ProjectWorkflowSchemeHelper
Only projects that the passed user can change the configurtion for will be returned.
getAllProjectsForWorkflow in interface ProjectWorkflowSchemeHelperworkflowName - 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 configuration for will be returned.
getProjectsForWorkflow in interface ProjectWorkflowSchemeHelperworkflows - the workflows to query.public com.google.common.collect.Multimap<String,Project> getAllProjectsForWorkflow(Set<String> workflows)
ProjectWorkflowSchemeHelper
All projects will be returned, even projects which cannot be accessible by current user.
getAllProjectsForWorkflow in interface ProjectWorkflowSchemeHelperworkflows - the workflows to query.public boolean isWorkflowIsolated(String workflowName)
ProjectWorkflowSchemeHelperisWorkflowIsolated in interface ProjectWorkflowSchemeHelperworkflowName - workflow name.Copyright © 2002-2017 Atlassian. All Rights Reserved.