com.atlassian.greenhopper.web.rapid.plan
Class PlanningModeServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.plan.PlanningModeServiceImpl
All Implemented Interfaces:
PlanningModeService

@Service
public class PlanningModeServiceImpl
extends java.lang.Object
implements PlanningModeService

Provides data required on the planning mode


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.greenhopper.web.rapid.plan.PlanningModeService
PlanningModeService.CurrentSprints, PlanningModeService.Result
 
Constructor Summary
PlanningModeServiceImpl()
           
 
Method Summary
 ServiceOutcome<PlanningModeService.Result> getBacklogIssuesAndSprintAssignment(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> activeQuickFilters)
          Fetches all issues shown on the plan mode.
 ServiceOutcome<SprintPlanEntry> getCurrentSprintAndIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.lang.Long sprintId, java.util.Set<java.lang.Long> activeQuickFilters)
          Returns a representation of a single currently (open) sprint.
 ServiceOutcome<PlanningModeService.CurrentSprints> getCurrentSprintsAndIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> activeQuickFilters)
          Returns a representation of the current (open) sprints and their issues for the Plan mode of a Rapid Board.
 ServiceOutcome<java.lang.Iterable<com.atlassian.jira.issue.Issue>> getTopRankedIssueInSprint(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> activeQuickFilters)
          Get the top ranked issue in the current sprint for a given rapid view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanningModeServiceImpl

public PlanningModeServiceImpl()
Method Detail

getBacklogIssuesAndSprintAssignment

public ServiceOutcome<PlanningModeService.Result> getBacklogIssuesAndSprintAssignment(com.atlassian.crowd.embedded.api.User user,
                                                                                      RapidView rapidView,
                                                                                      java.util.Set<java.lang.Long> activeQuickFilters)
Description copied from interface: PlanningModeService
Fetches all issues shown on the plan mode. This includes all issues in an active sprint, but excludes epics

Specified by:
getBacklogIssuesAndSprintAssignment in interface PlanningModeService

getTopRankedIssueInSprint

public ServiceOutcome<java.lang.Iterable<com.atlassian.jira.issue.Issue>> getTopRankedIssueInSprint(com.atlassian.crowd.embedded.api.User user,
                                                                                                    RapidView rapidView,
                                                                                                    java.util.Set<java.lang.Long> activeQuickFilters)
Description copied from interface: PlanningModeService
Get the top ranked issue in the current sprint for a given rapid view. TODO This is an excellent candidate to return a Maybe

Specified by:
getTopRankedIssueInSprint in interface PlanningModeService
Returns:
An Iterable of Issue, which contains either zero or one issues.

getCurrentSprintAndIssues

@NotNull
public ServiceOutcome<SprintPlanEntry> getCurrentSprintAndIssues(com.atlassian.crowd.embedded.api.User user,
                                                                         RapidView rapidView,
                                                                         java.lang.Long sprintId,
                                                                         java.util.Set<java.lang.Long> activeQuickFilters)
Description copied from interface: PlanningModeService
Returns a representation of a single currently (open) sprint.

Specified by:
getCurrentSprintAndIssues in interface PlanningModeService
Parameters:
user - the user
rapidView - the board
sprintId - the id of the sprint to retrieve
Returns:
the representation of current sprints

getCurrentSprintsAndIssues

public ServiceOutcome<PlanningModeService.CurrentSprints> getCurrentSprintsAndIssues(com.atlassian.crowd.embedded.api.User user,
                                                                                     RapidView rapidView,
                                                                                     java.util.Set<java.lang.Long> activeQuickFilters)
Description copied from interface: PlanningModeService
Returns a representation of the current (open) sprints and their issues for the Plan mode of a Rapid Board.

Specified by:
getCurrentSprintsAndIssues in interface PlanningModeService
Parameters:
user - the user
rapidView - the board
Returns:
the representation of current sprints


Copyright © 2007-2014 Atlassian. All Rights Reserved.