public class DefaultBoardWorkflowService extends Object implements BoardWorkflowService
Constructor and Description |
---|
DefaultBoardWorkflowService(SearchService searchService,
ProjectManager projectManager,
WorkflowManager workflowManager,
WorkflowSchemeManager workflowSchemeManager) |
Modifier and Type | Method and Description |
---|---|
Set<Status> |
getAccessibleStatuses(ApplicationUser user,
Query query)
Get the set of accessible statuses for issues potentially returned by the current query.
|
Set<Status> |
getAllActiveWorkflowStatuses()
Get all active workflow statuses available in the instance.
|
Set<Status> |
getInitialStatusesForQuery(ApplicationUser user,
Query query)
Given a user and query, return the set of initial statuses of all workflows of issues in that query.
|
Collection<JiraWorkflow> |
getJiraWorkflows(Project projectObj)
Given a project, returns all JIRA workflows which are associated to that project.
|
Collection<JiraWorkflow> |
getJiraWorkflows(Project projectObj,
String issueTypeId)
Given a project and an issue type id, returns the JIRA Workflows which are associated to that project for that
issue type.
|
Collection<JiraWorkflow> |
getWorkflowsForQuery(ApplicationUser user,
Query query)
Given a user and query, return all JIRA workflows of issues in that query.
|
public DefaultBoardWorkflowService(SearchService searchService, ProjectManager projectManager, WorkflowManager workflowManager, WorkflowSchemeManager workflowSchemeManager)
public Set<Status> getAccessibleStatuses(ApplicationUser user, Query query)
BoardWorkflowService
getAccessibleStatuses
in interface BoardWorkflowService
user
- the user who would be performing the searchquery
- the query being asked aboutpublic Set<Status> getAllActiveWorkflowStatuses()
BoardWorkflowService
getAllActiveWorkflowStatuses
in interface BoardWorkflowService
public Collection<JiraWorkflow> getJiraWorkflows(Project projectObj)
BoardWorkflowService
getJiraWorkflows
in interface BoardWorkflowService
projectObj
- the project to get all associated workflows forpublic Collection<JiraWorkflow> getJiraWorkflows(Project projectObj, String issueTypeId)
BoardWorkflowService
getJiraWorkflows
in interface BoardWorkflowService
projectObj
- the project to get workflows forissueTypeId
- the issue type id to get workflows forpublic Set<Status> getInitialStatusesForQuery(ApplicationUser user, Query query)
BoardWorkflowService
getInitialStatusesForQuery
in interface BoardWorkflowService
user
- the user performing the searchquery
- the query being asked about@NotNull public Collection<JiraWorkflow> getWorkflowsForQuery(@NotNull ApplicationUser user, @NotNull Query query)
BoardWorkflowService
getWorkflowsForQuery
in interface BoardWorkflowService
user
- the user performing the searchquery
- the query being asked aboutCopyright © 2002-2019 Atlassian. All Rights Reserved.