@Service public class SprintManagerImpl extends Object implements SprintManager
Modifier and Type | Field and Description |
---|---|
static String |
SPRINT_AUDIT_LOG_TYPE |
Constructor and Description |
---|
SprintManagerImpl() |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<Sprint> |
createSprint(Map<String,Object> fields)
Create a sprint given the fields
|
ServiceOutcome<Sprint> |
createSprint(Sprint sprint)
Create a sprint given the object
|
ServiceOutcome<Void> |
deleteSprint(Sprint sprint)
Delete a sprint
|
void |
flushCache()
Invoked when all caches in the plugin need to be cleared.
|
ServiceOutcome<Collection<Sprint>> |
getAllSprints()
Get all sprints
|
ServiceOutcome<Sprint> |
getSprint(long id)
Get a sprint given its id.
|
ServiceOutcome<Collection<Sprint>> |
getSprints(EnumSet<Sprint.State> states)
Collects all sprints with the given states
|
ServiceOutcome<Collection<Sprint>> |
getSprintsForView(Long rapidViewId,
EnumSet<Sprint.State> states)
Collects all sprints owned by the passed rapid view with one of the given states
|
ServiceOutcome<Collection<Sprint>> |
getSprintsForView(RapidView rapidView)
Get all sprints owned by the passed rapid view
|
ServiceOutcome<SprintStateAuditLog> |
getSprintStateAuditLog(Sprint sprint)
Gets the audit log data for a sprint
|
void |
init() |
ServiceOutcome<Void> |
logStateChange(Sprint updatedSprint,
com.atlassian.jira.user.ApplicationUser user)
Create an AuditEntry log for a user who is opening/closing a sprint as part of a sprint update
|
ServiceOutcome<Void> |
swapSprints(Sprint sprintA,
Sprint sprintB)
Swap the sequence of the two sprint objects.
|
ServiceOutcome<Sprint> |
updateSprint(Sprint sprint)
Update a sprint
|
public static final String SPRINT_AUDIT_LOG_TYPE
@PostConstruct public void init()
@Nonnull public ServiceOutcome<Sprint> getSprint(long id)
SprintManager
getSprint
in interface SprintManager
@Nonnull public ServiceOutcome<Collection<Sprint>> getAllSprints()
SprintManager
getAllSprints
in interface SprintManager
@Nonnull public ServiceOutcome<Collection<Sprint>> getSprints(EnumSet<Sprint.State> states)
SprintManager
getSprints
in interface SprintManager
states
- the states to include@Nonnull public ServiceOutcome<Collection<Sprint>> getSprintsForView(RapidView rapidView)
SprintManager
getSprintsForView
in interface SprintManager
@Nonnull public ServiceOutcome<Collection<Sprint>> getSprintsForView(Long rapidViewId, EnumSet<Sprint.State> states)
SprintManager
getSprintsForView
in interface SprintManager
@Nonnull public ServiceOutcome<Sprint> createSprint(Sprint sprint)
SprintManager
createSprint
in interface SprintManager
@Nonnull public ServiceOutcome<Sprint> createSprint(Map<String,Object> fields)
SprintManager
createSprint
in interface SprintManager
@Nonnull public ServiceOutcome<Sprint> updateSprint(Sprint sprint)
SprintManager
updateSprint
in interface SprintManager
@Nonnull public ServiceOutcome<Void> swapSprints(@Nonnull Sprint sprintA, @Nonnull Sprint sprintB)
SprintManager
swapSprints
in interface SprintManager
sprintA
- the first sprintsprintB
- the other sprint@Nonnull public ServiceOutcome<Void> logStateChange(Sprint updatedSprint, com.atlassian.jira.user.ApplicationUser user)
logStateChange
in interface SprintManager
updatedSprint
- the sprint being opened/closeduser
- the user who performed the change@Nonnull public ServiceOutcome<SprintStateAuditLog> getSprintStateAuditLog(Sprint sprint)
SprintManager
getSprintStateAuditLog
in interface SprintManager
@Nonnull public ServiceOutcome<Void> deleteSprint(Sprint sprint)
SprintManager
deleteSprint
in interface SprintManager
public void flushCache()
GreenHopperCache
flushCache
in interface GreenHopperCache
Copyright © 2007–2015 Atlassian. All rights reserved.