com.atlassian.greenhopper.service.sprint
Class SprintServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.sprint.SprintServiceImpl
All Implemented Interfaces:
SprintService

@Service
public class SprintServiceImpl
extends java.lang.Object
implements SprintService


Constructor Summary
SprintServiceImpl()
           
 
Method Summary
 ServiceOutcome<Sprint> createSprint(com.atlassian.crowd.embedded.api.User user, Sprint sprintToCreate, java.util.Set<com.atlassian.jira.issue.Issue> issues, boolean ensureSprintDatesOccurAfterIssueUpdates)
          Create a new sprint.┬áThe user needs to have Project Administrator permissions for all issues.
 ServiceOutcome<java.lang.Void> deleteSprint(com.atlassian.crowd.embedded.api.User user, Sprint sprint)
          Delete a sprint
 ServiceOutcome<Sprint> getSprint(com.atlassian.crowd.embedded.api.User user, long sprintId)
          Get a sprint given its id The sprint is only returned if the user can see at least one of the issues assigned to the sprint
 ServiceOutcome<java.util.Set<Sprint>> getSprints(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> sprintIds)
           
 ServiceOutcome<Sprint> updateSprint(com.atlassian.crowd.embedded.api.User user, Sprint sprint)
          Update a sprint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SprintServiceImpl

public SprintServiceImpl()
Method Detail

getSprints

@NotNull
public ServiceOutcome<java.util.Set<Sprint>> getSprints(com.atlassian.crowd.embedded.api.User user,
                                                                RapidView rapidView,
                                                                java.util.Set<java.lang.Long> sprintIds)
Specified by:
getSprints in interface SprintService

getSprint

@NotNull
public ServiceOutcome<Sprint> getSprint(com.atlassian.crowd.embedded.api.User user,
                                                long sprintId)
Description copied from interface: SprintService
Get a sprint given its id The sprint is only returned if the user can see at least one of the issues assigned to the sprint

Specified by:
getSprint in interface SprintService

createSprint

public ServiceOutcome<Sprint> createSprint(com.atlassian.crowd.embedded.api.User user,
                                           Sprint sprintToCreate,
                                           java.util.Set<com.atlassian.jira.issue.Issue> issues,
                                           boolean ensureSprintDatesOccurAfterIssueUpdates)
Description copied from interface: SprintService
Create a new sprint. The user needs to have Project Administrator permissions for all issues.

Specified by:
createSprint in interface SprintService
Parameters:
user - the user
sprintToCreate - the sprint object to persist
issues - the issues to include in the sprint
ensureSprintDatesOccurAfterIssueUpdates - if this flag is set to true, sprints with a start date in the past will be "forward dated" so that they actually start at the instant after all issues have been added to the sprint. This is to ensure that the adding of issues to the sprint does not show up as scope change in burndowns.

updateSprint

@NotNull
public ServiceOutcome<Sprint> updateSprint(com.atlassian.crowd.embedded.api.User user,
                                                   Sprint sprint)
Description copied from interface: SprintService
Update a sprint

Specified by:
updateSprint in interface SprintService

deleteSprint

@NotNull
public ServiceOutcome<java.lang.Void> deleteSprint(com.atlassian.crowd.embedded.api.User user,
                                                           Sprint sprint)
Description copied from interface: SprintService
Delete a sprint

Specified by:
deleteSprint in interface SprintService


Copyright © 2007-2012 Atlassian. All Rights Reserved.