com.atlassian.greenhopper.service.version
Class VersionServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.version.VersionServiceImpl
All Implemented Interfaces:
VersionService

@Service
public class VersionServiceImpl
extends AbstractLoggable
implements VersionService


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
VersionServiceImpl()
           
 
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 com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionServiceImpl

public VersionServiceImpl()
Method Detail

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.