Class DefaultBoardWorkflowService

java.lang.Object
com.atlassian.jira.board.DefaultBoardWorkflowService
All Implemented Interfaces:
BoardWorkflowService

public class DefaultBoardWorkflowService extends Object implements BoardWorkflowService
  • Constructor Details

  • Method Details

    • getAccessibleStatuses

      public Set<Status> getAccessibleStatuses(ApplicationUser user, Query query)
      Description copied from interface: BoardWorkflowService
      Get 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:
      getAccessibleStatuses in interface BoardWorkflowService
      Parameters:
      user - the user who would be performing the search
      query - the query being asked about
      Returns:
      the set of statuses
    • getAllActiveWorkflowStatuses

      public Set<Status> getAllActiveWorkflowStatuses()
      Description copied from interface: BoardWorkflowService
      Get all active workflow statuses available in the instance.
      Specified by:
      getAllActiveWorkflowStatuses in interface BoardWorkflowService
      Returns:
      the set of statuses
    • getJiraWorkflows

      public Collection<JiraWorkflow> getJiraWorkflows(Project projectObj)
      Description copied from interface: BoardWorkflowService
      Given a project, returns all JIRA workflows which are associated to that project. Empty on error.
      Specified by:
      getJiraWorkflows in interface BoardWorkflowService
      Parameters:
      projectObj - the project to get all associated workflows for
      Returns:
      the collection of JIRA workflows
    • getJiraWorkflows

      public Collection<JiraWorkflow> getJiraWorkflows(Project projectObj, String issueTypeId)
      Description copied from interface: BoardWorkflowService
      Given 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:
      getJiraWorkflows in interface BoardWorkflowService
      Parameters:
      projectObj - the project to get workflows for
      issueTypeId - the issue type id to get workflows for
      Returns:
      the collection of JIRA workflows
    • getInitialStatusesForQuery

      public Set<Status> getInitialStatusesForQuery(ApplicationUser user, Query query)
      Description copied from interface: BoardWorkflowService
      Given a user and query, return the set of initial statuses of all workflows of issues in that query.
      Specified by:
      getInitialStatusesForQuery in interface BoardWorkflowService
      Parameters:
      user - the user performing the search
      query - 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: BoardWorkflowService
      Given a user and query, return all JIRA workflows of issues in that query.
      Specified by:
      getWorkflowsForQuery in interface BoardWorkflowService
      Parameters:
      user - the user performing the search
      query - the query being asked about
      Returns:
      the collection of JIRA workflows