|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.version.VersionServiceImpl
@Service public class VersionServiceImpl
Constructor Summary | |
---|---|
VersionServiceImpl()
|
Method Summary | |
---|---|
ServiceOutcome<java.lang.Void> |
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 |
ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.project.Project,com.atlassian.jira.project.version.Version>> |
createVersion(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.project.Project project,
java.lang.String name,
java.lang.String description,
java.util.Date releaseDate,
java.util.Date startDate)
Creates a single project version. |
ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.project.Project,com.atlassian.jira.project.version.Version>> |
createVersion(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.project.Project project,
java.lang.String name,
java.lang.String description,
org.joda.time.DateMidnight releaseDate)
Creates a single project version. |
ServiceOutcome<java.util.Map<com.atlassian.jira.project.Project,com.atlassian.jira.project.version.Version>> |
createVersions(com.atlassian.crowd.embedded.api.User user,
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. |
ServiceOutcome<com.atlassian.jira.project.version.Version> |
get(com.atlassian.crowd.embedded.api.User user,
java.lang.Long versionId)
Get the specified version and return an error if it is not found. |
VersionMetaData |
getMetaData(com.atlassian.jira.project.version.Version version)
Get the meta data associated to this version. |
ServiceOutcome<java.lang.Void> |
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! |
ServiceOutcome<java.lang.Void> |
setFixVersions(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue,
java.util.Collection<com.atlassian.jira.project.version.Version> versions)
We'll try to stay as close as possible to the service layer here, just calling the manager for the actual update |
ServiceOutcome<java.lang.Void> |
updateVersion(com.atlassian.crowd.embedded.api.User user,
java.lang.Long versionId,
java.lang.String name,
java.lang.String description,
java.util.Date releaseDate,
java.util.Date startDate)
Update the version with the specified parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionServiceImpl()
Method Detail |
---|
public ServiceOutcome<java.util.Map<com.atlassian.jira.project.Project,com.atlassian.jira.project.version.Version>> createVersions(com.atlassian.crowd.embedded.api.User user, java.util.Collection<com.atlassian.jira.project.Project> projects, java.lang.String name, java.lang.String description, org.joda.time.DateMidnight releaseDate)
createVersions
in interface VersionService
releaseDate
- : optional
public ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.project.Project,com.atlassian.jira.project.version.Version>> createVersion(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.project.Project project, java.lang.String name, java.lang.String description, org.joda.time.DateMidnight releaseDate)
VersionService
VersionService.createVersions(com.atlassian.crowd.embedded.api.User, java.util.Collection, String, String, org.joda.time.DateMidnight)
createVersion
in interface VersionService
releaseDate
- : optional
public ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.project.Project,com.atlassian.jira.project.version.Version>> createVersion(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.project.Project project, java.lang.String name, java.lang.String description, java.util.Date releaseDate, java.util.Date startDate)
VersionService
VersionService.createVersions(com.atlassian.crowd.embedded.api.User, java.util.Collection, String, String, org.joda.time.DateMidnight)
createVersion
in interface VersionService
releaseDate
- : optional
public ServiceOutcome<java.lang.Void> addIssueToVersion(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue issue, com.atlassian.jira.project.version.Version version)
addIssueToVersion
in interface VersionService
public ServiceOutcome<java.lang.Void> setFixVersions(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue issue, java.util.Collection<com.atlassian.jira.project.version.Version> versions)
setFixVersions
in interface VersionService
public ServiceOutcome<java.lang.Void> releaseVersions(com.atlassian.crowd.embedded.api.User user, java.util.Collection<com.atlassian.jira.project.version.Version> versions, org.joda.time.DateMidnight releaseDate)
releaseVersions
in interface VersionService
releaseDate
- : optional
public ServiceOutcome<com.atlassian.jira.project.version.Version> get(com.atlassian.crowd.embedded.api.User user, java.lang.Long versionId)
VersionService
get
in interface VersionService
public ServiceOutcome<java.lang.Void> updateVersion(com.atlassian.crowd.embedded.api.User user, java.lang.Long versionId, java.lang.String name, java.lang.String description, java.util.Date releaseDate, java.util.Date startDate)
VersionService
updateVersion
in interface VersionService
@Nonnull public VersionMetaData getMetaData(@Nonnull com.atlassian.jira.project.version.Version version)
VersionService
getMetaData
in interface VersionService
version
- the version; must not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |