com.atlassian.greenhopper.service.version
Class VersionServiceImpl
java.lang.Object
com.atlassian.greenhopper.global.AbstractLoggable
com.atlassian.greenhopper.service.version.VersionServiceImpl
- All Implemented Interfaces:
- VersionService
@Service
public class VersionServiceImpl
- extends AbstractLoggable
- implements VersionService
Method Summary |
ErrorCollection |
addIssueToVersion(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.project.version.Version version)
We'll try to stay as close as possible to the service layer here, just calling the manager for the actual update |
java.util.Map<com.atlassian.jira.project.Project,com.atlassian.jira.project.version.Version> |
createVersions(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errors,
java.util.Collection<com.atlassian.jira.project.Project> projects,
java.lang.String name,
java.lang.String description,
org.joda.time.DateMidnight releaseDate)
We're calling through to the service layer, so JIRA does all the validation for us. |
ErrorCollection |
releaseVersions(com.atlassian.crowd.embedded.api.User user,
java.util.Collection<com.atlassian.jira.project.version.Version> versions,
org.joda.time.DateMidnight releaseDate)
valid? yes, do it! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionServiceImpl
public VersionServiceImpl()
createVersions
public java.util.Map<com.atlassian.jira.project.Project,com.atlassian.jira.project.version.Version> createVersions(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errors,
java.util.Collection<com.atlassian.jira.project.Project> projects,
java.lang.String name,
java.lang.String description,
org.joda.time.DateMidnight releaseDate)
- We're calling through to the service layer, so JIRA does all the validation for us.
- Specified by:
createVersions
in interface VersionService
releaseDate
- : optional
- Returns:
- a map of the newly created versions, or an empty map if something went wrong.
addIssueToVersion
public ErrorCollection addIssueToVersion(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.project.version.Version version)
- We'll try to stay as close as possible to the service layer here, just calling the manager for the actual update
- Specified by:
addIssueToVersion
in interface VersionService
- Returns:
- errors that might have occurred
releaseVersions
public ErrorCollection releaseVersions(com.atlassian.crowd.embedded.api.User user,
java.util.Collection<com.atlassian.jira.project.version.Version> versions,
org.joda.time.DateMidnight releaseDate)
- valid? yes, do it!
- Specified by:
releaseVersions
in interface VersionService
releaseDate
- : optional
- Returns:
- errors that might have occurred
Copyright © 2007-2011 Atlassian. All Rights Reserved.