Class ReleaseServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.version.ReleaseServiceImpl
- All Implemented Interfaces:
ReleaseService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReleaseServiceImpl
(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 Summary
Modifier and TypeMethodDescriptioncreateAndReleaseVersion
(com.atlassian.jira.user.ApplicationUser user, String name, String description, org.joda.time.DateMidnight releaseDate, Long rapidViewId, Long columnId) Create a version in each project that has issues in the done column, associate the version with the issues and release it.ServiceOutcome
<com.atlassian.jira.issue.search.SearchRequest> getNavigatorSearch
(com.atlassian.jira.user.ApplicationUser user, Long projectId, Long rapidViewId, Long columnId) Get a non-persisted search request (a.k.a. saved filter) that can be used to populate the issue navigator.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.
-
Field Details
-
log
-
-
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 interfaceReleaseService
- Parameters:
name
- : The version namedescription
- : The version descriptioncolumnId
- : 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 interfaceReleaseService
- Returns:
- Map of project to number of issues currently in the given column, or an empty map if there were errors
-