com.atlassian.greenhopper.web.rapid.list
Class RapidIssueEntryQueryServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.list.RapidIssueEntryQueryServiceImpl
All Implemented Interfaces:
RapidIssueEntryQueryService

@Service
public class RapidIssueEntryQueryServiceImpl
extends java.lang.Object
implements RapidIssueEntryQueryService

Provides calculation of swimlane contents functionality


Field Summary
protected  LoggerWrapper performanceLogger
           
 
Constructor Summary
RapidIssueEntryQueryServiceImpl()
           
 
Method Summary
 ServiceOutcome<CollectIssuesResult> collectBacklogIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> activeQuickFilters)
          Get all issues in the backlog
 ServiceOutcome<java.util.Set<java.lang.Long>> collectBacklogProjects(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Collects the projects for issues in the backlog
 ServiceOutcome<CollectIssuesResult> collectEpicIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Queries the epics for a board
 ServiceOutcome<CollectIssuesResult> collectEpicIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.String> issueKeys)
          Retrieves epics for a given set of keys
 ServiceOutcome<CollectIssuesResult> collectIssuesForEpic(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.lang.String epicKey)
          Queries the issues in an epic
 ServiceOutcome<CollectIssuesResult> collectIssuesForVersion(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, com.atlassian.jira.project.version.Version version)
           
 ServiceOutcome<CollectIssuesResult> collectOpenSprintIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> activeQuickFilters, IssueDataCallback additionalCallback)
          Get all issues of the open sprints (for the plan mode)
 ServiceOutcome<CollectIssuesResult> collectPlanModeIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> activeQuickFilters, IssueDataCallback additionalCallback)
          Query for all plan mode issues (active and future sprints as well as backlog)
 ServiceOutcome<CollectIssuesResult> collectSprintIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.lang.Long sprintId, IssueDataCallback additionalCallback)
          Query for a specific sprint
 ServiceOutcome<CollectIssuesResult> collectWorkModeIssues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, WorkFilters workFilters)
          Get the issues and the order in one go
 ServiceOutcome<org.joda.time.DateTime> getEpicsLastUpdated(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Returns the datetime when an epic in the given rapidview was last updated.
 ServiceOutcome<RapidIssueEntry> getIssueById(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long issueId, boolean loadDaysInColumn)
          Collects a single issue
 ServiceOutcome<CollectIssuesResult> getIssuesByKeys(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.String> issueKeys)
          Loads issues based on the provided keys, ordered by issueKey
 ServiceOutcome<java.util.Set<RapidIssueEntry>> getMissingParents(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.List<RapidIssueEntry> issues)
          Loads all missing parents for a given list of issues.
 ServiceOutcome<java.lang.Void> loadBacklogTrackingStatisticValues(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, RapidIssueEntry entry)
          Load the aggregate tracking statistic for a single issue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

performanceLogger

protected final LoggerWrapper performanceLogger
Constructor Detail

RapidIssueEntryQueryServiceImpl

public RapidIssueEntryQueryServiceImpl()
Method Detail

collectWorkModeIssues

@NotNull
public ServiceOutcome<CollectIssuesResult> collectWorkModeIssues(com.atlassian.crowd.embedded.api.User user,
                                                                         RapidView rapidView,
                                                                         WorkFilters workFilters)
Get the issues and the order in one go

Specified by:
collectWorkModeIssues in interface RapidIssueEntryQueryService

collectBacklogIssues

@NotNull
public ServiceOutcome<CollectIssuesResult> collectBacklogIssues(com.atlassian.crowd.embedded.api.User user,
                                                                        RapidView rapidView,
                                                                        java.util.Set<java.lang.Long> activeQuickFilters)
Get all issues in the backlog

Specified by:
collectBacklogIssues in interface RapidIssueEntryQueryService

collectOpenSprintIssues

public ServiceOutcome<CollectIssuesResult> collectOpenSprintIssues(com.atlassian.crowd.embedded.api.User user,
                                                                   RapidView rapidView,
                                                                   java.util.Set<java.lang.Long> activeQuickFilters,
                                                                   IssueDataCallback additionalCallback)
Get all issues of the open sprints (for the plan mode)

Specified by:
collectOpenSprintIssues in interface RapidIssueEntryQueryService

collectSprintIssues

public ServiceOutcome<CollectIssuesResult> collectSprintIssues(com.atlassian.crowd.embedded.api.User user,
                                                               RapidView rapidView,
                                                               java.lang.Long sprintId,
                                                               IssueDataCallback additionalCallback)
Description copied from interface: RapidIssueEntryQueryService
Query for a specific sprint

Specified by:
collectSprintIssues in interface RapidIssueEntryQueryService

collectPlanModeIssues

public ServiceOutcome<CollectIssuesResult> collectPlanModeIssues(com.atlassian.crowd.embedded.api.User user,
                                                                 RapidView rapidView,
                                                                 java.util.Set<java.lang.Long> activeQuickFilters,
                                                                 IssueDataCallback additionalCallback)
Query for all plan mode issues (active and future sprints as well as backlog)

Specified by:
collectPlanModeIssues in interface RapidIssueEntryQueryService

collectEpicIssues

public ServiceOutcome<CollectIssuesResult> collectEpicIssues(com.atlassian.crowd.embedded.api.User user,
                                                             RapidView rapidView,
                                                             java.util.Set<java.lang.String> issueKeys)
Retrieves epics for a given set of keys

Specified by:
collectEpicIssues in interface RapidIssueEntryQueryService

collectEpicIssues

public ServiceOutcome<CollectIssuesResult> collectEpicIssues(com.atlassian.crowd.embedded.api.User user,
                                                             RapidView rapidView)
Queries the epics for a board

Specified by:
collectEpicIssues in interface RapidIssueEntryQueryService

collectIssuesForEpic

public ServiceOutcome<CollectIssuesResult> collectIssuesForEpic(com.atlassian.crowd.embedded.api.User user,
                                                                RapidView rapidView,
                                                                java.lang.String epicKey)
Description copied from interface: RapidIssueEntryQueryService
Queries the issues in an epic

Specified by:
collectIssuesForEpic in interface RapidIssueEntryQueryService

collectIssuesForVersion

public ServiceOutcome<CollectIssuesResult> collectIssuesForVersion(com.atlassian.crowd.embedded.api.User user,
                                                                   RapidView rapidView,
                                                                   com.atlassian.jira.project.version.Version version)
Specified by:
collectIssuesForVersion in interface RapidIssueEntryQueryService

collectBacklogProjects

public ServiceOutcome<java.util.Set<java.lang.Long>> collectBacklogProjects(com.atlassian.crowd.embedded.api.User user,
                                                                            RapidView rapidView)
Description copied from interface: RapidIssueEntryQueryService
Collects the projects for issues in the backlog

Specified by:
collectBacklogProjects in interface RapidIssueEntryQueryService
Returns:

getMissingParents

@NotNull
public ServiceOutcome<java.util.Set<RapidIssueEntry>> getMissingParents(com.atlassian.crowd.embedded.api.User user,
                                                                                RapidView rapidView,
                                                                                java.util.List<RapidIssueEntry> issues)
Description copied from interface: RapidIssueEntryQueryService
Loads all missing parents for a given list of issues. Note that the parents are in no particular order and currently don't contain days in column information

Specified by:
getMissingParents in interface RapidIssueEntryQueryService

getIssuesByKeys

public ServiceOutcome<CollectIssuesResult> getIssuesByKeys(com.atlassian.crowd.embedded.api.User user,
                                                           RapidView rapidView,
                                                           java.util.Set<java.lang.String> issueKeys)
Description copied from interface: RapidIssueEntryQueryService
Loads issues based on the provided keys, ordered by issueKey

Specified by:
getIssuesByKeys in interface RapidIssueEntryQueryService

getEpicsLastUpdated

public ServiceOutcome<org.joda.time.DateTime> getEpicsLastUpdated(com.atlassian.crowd.embedded.api.User user,
                                                                  RapidView rapidView)
Description copied from interface: RapidIssueEntryQueryService
Returns the datetime when an epic in the given rapidview was last updated.

Specified by:
getEpicsLastUpdated in interface RapidIssueEntryQueryService
Returns:

getIssueById

public ServiceOutcome<RapidIssueEntry> getIssueById(com.atlassian.crowd.embedded.api.User user,
                                                    RapidView rapidView,
                                                    long issueId,
                                                    boolean loadDaysInColumn)
Collects a single issue

Specified by:
getIssueById in interface RapidIssueEntryQueryService

loadBacklogTrackingStatisticValues

public ServiceOutcome<java.lang.Void> loadBacklogTrackingStatisticValues(com.atlassian.crowd.embedded.api.User user,
                                                                         RapidView rapidView,
                                                                         RapidIssueEntry entry)
Load the aggregate tracking statistic for a single issue

Specified by:
loadBacklogTrackingStatisticValues in interface RapidIssueEntryQueryService


Copyright © 2007-2013 Atlassian. All Rights Reserved.