com.atlassian.greenhopper.service.issue
Class GHIssueServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.GHIssueServiceImpl
All Implemented Interfaces:
GHIssueService

@Service(value="gh-ghIssueService")
public class GHIssueServiceImpl
extends java.lang.Object
implements GHIssueService


Field Summary
 
Fields inherited from interface com.atlassian.greenhopper.service.issue.GHIssueService
SERVICE
 
Constructor Summary
GHIssueServiceImpl()
           
 
Method Summary
 java.util.List<com.atlassian.jira.issue.Issue> findIssues(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query)
           
 java.util.List<com.atlassian.jira.issue.Issue> findIssuesByIteration(GHVersion iteration, com.atlassian.crowd.embedded.api.User user, VersionBoard board)
          Fetch all Issues that are associated to the given version.
 java.util.List<com.atlassian.jira.issue.Issue> findIssuesByIterationWithoutChildren(GHVersion iteration, com.atlassian.crowd.embedded.api.User user, VersionBoard board)
          TODO refactor this to not use the board but construct the query directly.
 java.util.Date getFirstTransitionDate(java.util.Set<com.atlassian.jira.issue.Issue> issues, com.atlassian.crowd.embedded.api.User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHIssueServiceImpl

public GHIssueServiceImpl()
Method Detail

findIssuesByIterationWithoutChildren

public java.util.List<com.atlassian.jira.issue.Issue> findIssuesByIterationWithoutChildren(GHVersion iteration,
                                                                                           com.atlassian.crowd.embedded.api.User user,
                                                                                           VersionBoard board)
TODO refactor this to not use the board but construct the query directly. Reduce coupling. Test.

Specified by:
findIssuesByIterationWithoutChildren in interface GHIssueService
Parameters:
iteration - : The iteration to read the issues for
user - : The current user
Returns:
A list of Issue

findIssuesByIteration

public java.util.List<com.atlassian.jira.issue.Issue> findIssuesByIteration(GHVersion iteration,
                                                                            com.atlassian.crowd.embedded.api.User user,
                                                                            VersionBoard board)
Description copied from interface: GHIssueService
Fetch all Issues that are associated to the given version. Issues on child versions normally have the parent as fixed version as well, so they will be included. Issues on child versions that do NOT have the parent as fixed version will not be included.

Specified by:
findIssuesByIteration in interface GHIssueService
Parameters:
iteration - : The iteration to read the issues for, including child iterations
user - : The current user
Returns:
A list of Issue

findIssues

public java.util.List<com.atlassian.jira.issue.Issue> findIssues(com.atlassian.crowd.embedded.api.User user,
                                                                 com.atlassian.query.Query query)
Specified by:
findIssues in interface GHIssueService

getFirstTransitionDate

public java.util.Date getFirstTransitionDate(java.util.Set<com.atlassian.jira.issue.Issue> issues,
                                             com.atlassian.crowd.embedded.api.User user)
Specified by:
getFirstTransitionDate in interface GHIssueService


Copyright © 2007-2012 Atlassian. All Rights Reserved.