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)
ProjectWorkflowSchemeHelper
getAllProjectsForScheme
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 List<Project> getAllProjectsForWorkflow(String workflowName)
ProjectWorkflowSchemeHelper
Only projects that the passed user can change the configurtion for will be returned.
getAllProjectsForWorkflow
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 configuration for will be returned.
getProjectsForWorkflow
in interface ProjectWorkflowSchemeHelper
workflows
- 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 ProjectWorkflowSchemeHelper
workflows
- the workflows to query.public boolean isWorkflowIsolated(String workflowName)
ProjectWorkflowSchemeHelper
isWorkflowIsolated
in interface ProjectWorkflowSchemeHelper
workflowName
- workflow name.Copyright © 2002-2017 Atlassian. All Rights Reserved.