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, RapidView rapidView, Sprint sprintToCreate, java.util.Set<com.atlassian.jira.issue.Issue> issues)
          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<java.util.Set<Sprint>> findSprintsByName(com.atlassian.crowd.embedded.api.User user, java.lang.String searchQuery, int maxResults, boolean excludeCompleted)
          Get a set of sprints matching a search query
 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)
          Get a set of sprints by id checking each for visibility permission
 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)
Description copied from interface: SprintService
Get a set of sprints by id checking each for visibility permission

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

findSprintsByName

@NotNull
public ServiceOutcome<java.util.Set<Sprint>> findSprintsByName(com.atlassian.crowd.embedded.api.User user,
                                                                       java.lang.String searchQuery,
                                                                       int maxResults,
                                                                       boolean excludeCompleted)
Description copied from interface: SprintService
Get a set of sprints matching a search query

Specified by:
findSprintsByName in interface SprintService
Parameters:
user - the user
searchQuery - the string to match sprint names against
excludeCompleted - whether to include completed sprints or not

createSprint

public ServiceOutcome<Sprint> createSprint(com.atlassian.crowd.embedded.api.User user,
                                           RapidView rapidView,
                                           Sprint sprintToCreate,
                                           java.util.Set<com.atlassian.jira.issue.Issue> issues)
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
rapidView - the sprint's rapid view
sprintToCreate - the sprint object to persist
issues - the issues to include in the sprint

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-2014 Atlassian. All Rights Reserved.