com.atlassian.greenhopper.web.rapid.work
Interface PoolService

All Known Implementing Classes:
PoolServiceImpl

public interface PoolService

Provides calculation of swimlane contents functionality


Nested Class Summary
static class PoolService.ColumnConstraintsData
          Column constraints data as well as board statistics data
static class PoolService.SwimlaneIssuesData
          Result returned by getSwimlaneIssues
 
Method Summary
 ServiceOutcome<IssueSubtasksResolved> areIssueSubtasksInFinalColumn(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.lang.Long issueId)
          Returns whether all subtasks for a given issue have been resolved AND the parent hasn't been resolved yet.
 ServiceOutcome<PoolService.ColumnConstraintsData> getColumnConstraintsData(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Calculate the constraints data per column of the specified RapidView, for transport to the pool.
 ServiceOutcome<java.util.List<PoolService.SwimlaneIssuesData>> getCustomSwimlanes(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, WorkFilters workFilters, java.util.Set<java.lang.Long> validIssues)
          Gets the contents of each swimlane in rapidView as seen by user
 ServiceOutcome<ParentSwimlanesData> getParentSwimlanesData(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.List<RapidIssueEntry> issues, java.util.Set<RapidIssueEntry> missingParents)
          Gathers the ParentSwimlanesData for a given rapid view.
 

Method Detail

getCustomSwimlanes

@NotNull
ServiceOutcome<java.util.List<PoolService.SwimlaneIssuesData>> getCustomSwimlanes(com.atlassian.crowd.embedded.api.User user,
                                                                                          RapidView rapidView,
                                                                                          WorkFilters workFilters,
                                                                                          java.util.Set<java.lang.Long> validIssues)
Gets the contents of each swimlane in rapidView as seen by user


getColumnConstraintsData

@NotNull
ServiceOutcome<PoolService.ColumnConstraintsData> getColumnConstraintsData(com.atlassian.crowd.embedded.api.User user,
                                                                                   RapidView rapidView)
Calculate the constraints data per column of the specified RapidView, for transport to the pool. Uses the Rapid View's StatisticsFieldConfig to calculate this.

Note that the totals for each column are specified as Double, since this is how NumberCFType fields store their values in the index.

Parameters:
user - the user doing the request
rapidView - the rapid view
Returns:
a mapping of column to statistic total

areIssueSubtasksInFinalColumn

@NotNull
ServiceOutcome<IssueSubtasksResolved> areIssueSubtasksInFinalColumn(com.atlassian.crowd.embedded.api.User user,
                                                                            RapidView rapidView,
                                                                            java.lang.Long issueId)
Returns whether all subtasks for a given issue have been resolved AND the parent hasn't been resolved yet.


getParentSwimlanesData

ServiceOutcome<ParentSwimlanesData> getParentSwimlanesData(com.atlassian.crowd.embedded.api.User user,
                                                           RapidView rapidView,
                                                           java.util.List<RapidIssueEntry> issues,
                                                           java.util.Set<RapidIssueEntry> missingParents)
Gathers the ParentSwimlanesData for a given rapid view. The result contains all parent issue ids as well as issues that are mis-aligned to their subtasks (in terms of their status)



Copyright © 2007-2014 Atlassian. All Rights Reserved.