com.atlassian.greenhopper.service.sprint
Interface SprintManager

All Superinterfaces:
GreenHopperCache
All Known Implementing Classes:
SprintManagerImpl

public interface SprintManager
extends GreenHopperCache

Sprint manager as well as cache


Method Summary
 ServiceOutcome<Sprint> createSprint(Sprint sprint)
          Create a sprint given the object
 ServiceOutcome<java.lang.Void> deleteSprint(Sprint sprint)
          Delete a sprint
 ServiceOutcome<java.util.Collection<Sprint>> getAllSprints()
          Get all sprints
 ServiceOutcome<Sprint> getSprint(long id)
          Get a sprint given its id.
 ServiceOutcome<java.util.Collection<Sprint>> getSprints(java.util.EnumSet<Sprint.State> states)
          Collects all sprints with the given states
 ServiceOutcome<java.util.Collection<Sprint>> getSprintsForView(RapidView rapidView)
          Get all sprints owned by the passed rapid view
 ServiceOutcome<java.util.Collection<Sprint>> getSprintsForView(RapidView rapidView, java.util.EnumSet<Sprint.State> states)
          Collects all sprints owned by the passed rapid view with one of the given states
 ServiceOutcome<Sprint> updateSprint(Sprint sprint)
          Update a sprint
 
Methods inherited from interface com.atlassian.greenhopper.manager.GreenHopperCache
flushCache
 

Method Detail

getSprint

@Nonnull
ServiceOutcome<Sprint> getSprint(long id)
Get a sprint given its id.


getAllSprints

@Nonnull
ServiceOutcome<java.util.Collection<Sprint>> getAllSprints()
Get all sprints


getSprints

@Nonnull
ServiceOutcome<java.util.Collection<Sprint>> getSprints(java.util.EnumSet<Sprint.State> states)
Collects all sprints with the given states

Parameters:
states - the states to include
Returns:
a set of sprints

getSprintsForView

@Nonnull
ServiceOutcome<java.util.Collection<Sprint>> getSprintsForView(RapidView rapidView)
Get all sprints owned by the passed rapid view


getSprintsForView

@Nonnull
ServiceOutcome<java.util.Collection<Sprint>> getSprintsForView(RapidView rapidView,
                                                                       java.util.EnumSet<Sprint.State> states)
Collects all sprints owned by the passed rapid view with one of the given states


createSprint

@Transactional
@Nonnull
ServiceOutcome<Sprint> createSprint(Sprint sprint)
Create a sprint given the object


updateSprint

@Transactional
@Nonnull
ServiceOutcome<Sprint> updateSprint(Sprint sprint)
Update a sprint


deleteSprint

@Transactional
@Nonnull
ServiceOutcome<java.lang.Void> deleteSprint(Sprint sprint)
Delete a sprint



Copyright © 2007-2014 Atlassian. All Rights Reserved.