Package com.atlassian.jira.board
Class DefaultBoardWorkflowService
java.lang.Object
com.atlassian.jira.board.DefaultBoardWorkflowService
- All Implemented Interfaces:
BoardWorkflowService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBoardWorkflowService(SearchService searchService, ProjectManager projectManager, WorkflowManager workflowManager, WorkflowSchemeManager workflowSchemeManager) -
Method Summary
Modifier and TypeMethodDescriptiongetAccessibleStatuses(ApplicationUser user, Query query) Get the set of accessible statuses for issues potentially returned by the current query.Get all active workflow statuses available in the instance.getInitialStatusesForQuery(ApplicationUser user, Query query) Given a user and query, return the set of initial statuses of all workflows of issues in that query.getJiraWorkflows(Project projectObj) Given a project, returns all JIRA workflows which are associated to that project.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.@NotNull Collection<JiraWorkflow> getWorkflowsForQuery(@NotNull ApplicationUser user, @NotNull Query query) Given a user and query, return all JIRA workflows of issues in that query.
-
Constructor Details
-
DefaultBoardWorkflowService
public DefaultBoardWorkflowService(SearchService searchService, ProjectManager projectManager, WorkflowManager workflowManager, WorkflowSchemeManager workflowSchemeManager)
-
-
Method Details
-
getAccessibleStatuses
Description copied from interface:BoardWorkflowServiceGet the set of accessible statuses for issues potentially returned by the current query. In effect we are asking: "What projects and issue types could be returned by this query for this user, and what statuses are linked to workflows assigned to those projects and issue types?"- Specified by:
getAccessibleStatusesin interfaceBoardWorkflowService- Parameters:
user- the user who would be performing the searchquery- the query being asked about- Returns:
- the set of statuses
-
getAllActiveWorkflowStatuses
Description copied from interface:BoardWorkflowServiceGet all active workflow statuses available in the instance.- Specified by:
getAllActiveWorkflowStatusesin interfaceBoardWorkflowService- Returns:
- the set of statuses
-
getJiraWorkflows
Description copied from interface:BoardWorkflowServiceGiven a project, returns all JIRA workflows which are associated to that project. Empty on error.- Specified by:
getJiraWorkflowsin interfaceBoardWorkflowService- Parameters:
projectObj- the project to get all associated workflows for- Returns:
- the collection of JIRA workflows
-
getJiraWorkflows
Description copied from interface:BoardWorkflowServiceGiven a project and an issue type id, returns the JIRA Workflows which are associated to that project for that issue type. Empty on error.- Specified by:
getJiraWorkflowsin interfaceBoardWorkflowService- Parameters:
projectObj- the project to get workflows forissueTypeId- the issue type id to get workflows for- Returns:
- the collection of JIRA workflows
-
getInitialStatusesForQuery
Description copied from interface:BoardWorkflowServiceGiven a user and query, return the set of initial statuses of all workflows of issues in that query.- Specified by:
getInitialStatusesForQueryin interfaceBoardWorkflowService- Parameters:
user- the user performing the searchquery- the query being asked about- Returns:
- the set of initial statuses
-
getWorkflowsForQuery
@NotNull public @NotNull Collection<JiraWorkflow> getWorkflowsForQuery(@NotNull @NotNull ApplicationUser user, @NotNull @NotNull Query query) Description copied from interface:BoardWorkflowServiceGiven a user and query, return all JIRA workflows of issues in that query.- Specified by:
getWorkflowsForQueryin interfaceBoardWorkflowService- Parameters:
user- the user performing the searchquery- the query being asked about- Returns:
- the collection of JIRA workflows
-