Class ReleaseServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.version.ReleaseServiceImpl
All Implemented Interfaces:
ReleaseService

@Service public class ReleaseServiceImpl extends Object implements ReleaseService
  • Field Details

  • Constructor Details

    • ReleaseServiceImpl

      public ReleaseServiceImpl(RapidViewService rapidViewService, PermissionService permissionService, VersionService versionService, com.atlassian.jira.bc.project.ProjectService projectService, ColumnService columnService, RapidViewQueryService rapidViewQueryService, com.atlassian.jira.search.issue.IssueDocumentSearchService issueDocumentSearchService, com.atlassian.jira.project.ProjectManager projectManager)
  • Method Details

    • createAndReleaseVersion

      public ServiceResult createAndReleaseVersion(com.atlassian.jira.user.ApplicationUser user, String name, String description, org.joda.time.DateMidnight releaseDate, Long rapidViewId, Long columnId)
      Description copied from interface: ReleaseService
      Create a version in each project that has issues in the done column, associate the version with the issues and release it.
      Specified by:
      createAndReleaseVersion in interface ReleaseService
      Parameters:
      name - : The version name
      description - : The version description
      columnId - : The ID of the column to be released
    • getProjectReleasableIssueCount

      public ServiceOutcome<Map<com.atlassian.jira.project.Project,Integer>> getProjectReleasableIssueCount(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long columnId)
      Fetch infos upfront about what the user is going to do when she's releasing. This is not a very smart way of fetching this data... once we have a better, lucene-ish way of doing things *meaningful pause
      Specified by:
      getProjectReleasableIssueCount in interface ReleaseService
      Returns:
      Map of project to number of issues currently in the given column, or an empty map if there were errors
    • getNavigatorSearch

      public ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> getNavigatorSearch(com.atlassian.jira.user.ApplicationUser user, Long projectId, Long rapidViewId, Long columnId)
      Description copied from interface: ReleaseService
      Get a non-persisted search request (a.k.a. saved filter) that can be used to populate the issue navigator. This will include the given project and issues that are in the column of the given rapid view that matches the given columnId.
      Specified by:
      getNavigatorSearch in interface ReleaseService
      Returns:
      SearchRequest or null if something went wrong, in which case errors will contain why.