com.atlassian.greenhopper.service.rapid
Interface PoolService

All Known Implementing Classes:
PoolServiceImpl

public interface PoolService

Provides calculation of swimlane contents functionality


Nested Class Summary
static class PoolService.ParentSwimlanesData
          Contains parent information required for the parent/child swimlane strategy Children might all be filtered out, yet the parent should be shown as such, plus the parent status could be automatically updated to reflect the status of the children
static class PoolService.SwimlaneIssuesResult
          Result returned by getSwimlaneIssues
 
Method Summary
 ServiceOutcome<IssueSubtasksResolved> areIssueSubtasksInFinalColumn(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.lang.Long issueId)
           
 ServiceOutcome<java.util.Map<Column,java.lang.Double>> getColumnStatistics(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Calculate the statistics per column of the specified RapidView, for transport to the pool.
 ServiceOutcome<java.util.List<PoolService.SwimlaneIssuesResult>> 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<PoolService.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.SwimlaneIssuesResult>> 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


getColumnStatistics

@NotNull
ServiceOutcome<java.util.Map<Column,java.lang.Double>> getColumnStatistics(com.atlassian.crowd.embedded.api.User user,
                                                                                   RapidView rapidView)
Calculate the statistics 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)

getParentSwimlanesData

ServiceOutcome<PoolService.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-2012 Atlassian. All Rights Reserved.