com.atlassian.greenhopper.service.sprint
Class SprintQueryServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl
All Implemented Interfaces:
SprintQueryService

@Service
public class SprintQueryServiceImpl
extends AbstractLoggable
implements SprintQueryService


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
SprintQueryServiceImpl()
           
 
Method Summary
protected  ServiceOutcome<java.util.Set<java.lang.Long>> convertStringsIdsToLongs(java.util.Set<java.lang.String> projectIds)
           
 ServiceOutcome<java.util.List<Sprint>> getClosedSprints(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query jql)
          Get all closed sprints applicable to a given jql.
 com.atlassian.query.clause.Clause getInOpenSprintClause()
          Get a clause that includes all issues currently in an open sprint
 com.atlassian.query.clause.Clause getInSprintClause()
          Add a clause that includes all issues in at least one sprint (open or closed)
 com.atlassian.query.clause.Clause getNotInOpenSprintClause()
          Get a clause that includes all issues currently in a closed sprint
 com.atlassian.query.clause.Clause getNotInSprint()
          Add a clause that includes for all issues not in any sprint
 ServiceOutcome<com.atlassian.fugue.Pair<java.util.List<Sprint>,java.util.Set<java.lang.Long>>> getOpenSprintsAndBacklogProjects(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query jql)
          Get all open sprints applicable to a given jql.
 ServiceOutcome<java.util.Map<Sprint,java.util.Set<com.atlassian.jira.project.Project>>> getProjects(com.atlassian.crowd.embedded.api.User user, java.util.List<Sprint> sprints)
          Get all sprints and associated projects for a given jql
 ServiceOutcome<java.util.Set<com.atlassian.jira.project.Project>> getProjects(com.atlassian.crowd.embedded.api.User user, Sprint sprint)
          Get all projects for a given sprint
 ServiceOutcome<java.util.Map<Sprint,java.util.Set<com.atlassian.jira.project.Project>>> getProjectsOverrideSecurity(com.atlassian.crowd.embedded.api.User user, java.util.List<Sprint> sprints)
          Get all sprints and associated projects for a given jql Note: This method runs with security disabled
 ServiceOutcome<java.util.Set<com.atlassian.jira.project.Project>> getProjectsOverrideSecurity(com.atlassian.crowd.embedded.api.User user, Sprint sprint)
          Get all projects for a given sprint
 com.atlassian.query.clause.Clause getSprintClause(Sprint sprint)
          Add a clause that includes all issues of a given sprint
 ServiceOutcome<java.util.List<Sprint>> getSprints(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query jql)
          Get all sprints applicable to a given jql.
 com.atlassian.query.clause.Clause getSprintsClause(java.util.Collection<Sprint> sprints)
          Add a clause that includes all issues of a given sprints
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn, setInfoLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SprintQueryServiceImpl

public SprintQueryServiceImpl()
Method Detail

getSprints

@NotNull
public ServiceOutcome<java.util.List<Sprint>> getSprints(com.atlassian.crowd.embedded.api.User user,
                                                                 com.atlassian.query.Query jql)
Description copied from interface: SprintQueryService
Get all sprints applicable to a given jql. This will check all issues in the given jql, returning all sprints assigned to the issues

Specified by:
getSprints in interface SprintQueryService

convertStringsIdsToLongs

protected ServiceOutcome<java.util.Set<java.lang.Long>> convertStringsIdsToLongs(java.util.Set<java.lang.String> projectIds)

getOpenSprintsAndBacklogProjects

@NotNull
public ServiceOutcome<com.atlassian.fugue.Pair<java.util.List<Sprint>,java.util.Set<java.lang.Long>>> getOpenSprintsAndBacklogProjects(com.atlassian.crowd.embedded.api.User user,
                                                                                                                                               com.atlassian.query.Query jql)
Description copied from interface: SprintQueryService
Get all open sprints applicable to a given jql. This will check all issues in the given jql, returning all open sprints assigned to the issues

Specified by:
getOpenSprintsAndBacklogProjects in interface SprintQueryService

getClosedSprints

@NotNull
public ServiceOutcome<java.util.List<Sprint>> getClosedSprints(com.atlassian.crowd.embedded.api.User user,
                                                                       com.atlassian.query.Query jql)
Description copied from interface: SprintQueryService
Get all closed sprints applicable to a given jql. This will check all issues in the given jql, returning all closed sprints assigned to the issues

Specified by:
getClosedSprints in interface SprintQueryService

getProjects

@NotNull
public ServiceOutcome<java.util.Set<com.atlassian.jira.project.Project>> getProjects(com.atlassian.crowd.embedded.api.User user,
                                                                                             Sprint sprint)
Get all projects for a given sprint

Specified by:
getProjects in interface SprintQueryService

getProjectsOverrideSecurity

@NotNull
public ServiceOutcome<java.util.Set<com.atlassian.jira.project.Project>> getProjectsOverrideSecurity(com.atlassian.crowd.embedded.api.User user,
                                                                                                             Sprint sprint)
Get all projects for a given sprint

Specified by:
getProjectsOverrideSecurity in interface SprintQueryService

getProjects

@NotNull
public ServiceOutcome<java.util.Map<Sprint,java.util.Set<com.atlassian.jira.project.Project>>> getProjects(com.atlassian.crowd.embedded.api.User user,
                                                                                                                   java.util.List<Sprint> sprints)
Get all sprints and associated projects for a given jql

Specified by:
getProjects in interface SprintQueryService

getProjectsOverrideSecurity

@NotNull
public ServiceOutcome<java.util.Map<Sprint,java.util.Set<com.atlassian.jira.project.Project>>> getProjectsOverrideSecurity(com.atlassian.crowd.embedded.api.User user,
                                                                                                                                   java.util.List<Sprint> sprints)
Description copied from interface: SprintQueryService
Get all sprints and associated projects for a given jql Note: This method runs with security disabled

Specified by:
getProjectsOverrideSecurity in interface SprintQueryService

getInOpenSprintClause

public com.atlassian.query.clause.Clause getInOpenSprintClause()
Description copied from interface: SprintQueryService
Get a clause that includes all issues currently in an open sprint

Specified by:
getInOpenSprintClause in interface SprintQueryService

getNotInOpenSprintClause

public com.atlassian.query.clause.Clause getNotInOpenSprintClause()
Description copied from interface: SprintQueryService
Get a clause that includes all issues currently in a closed sprint

Specified by:
getNotInOpenSprintClause in interface SprintQueryService

getInSprintClause

public com.atlassian.query.clause.Clause getInSprintClause()
Description copied from interface: SprintQueryService
Add a clause that includes all issues in at least one sprint (open or closed)

Specified by:
getInSprintClause in interface SprintQueryService

getNotInSprint

public com.atlassian.query.clause.Clause getNotInSprint()
Description copied from interface: SprintQueryService
Add a clause that includes for all issues not in any sprint

Specified by:
getNotInSprint in interface SprintQueryService

getSprintClause

public com.atlassian.query.clause.Clause getSprintClause(Sprint sprint)
Description copied from interface: SprintQueryService
Add a clause that includes all issues of a given sprint

Specified by:
getSprintClause in interface SprintQueryService

getSprintsClause

public com.atlassian.query.clause.Clause getSprintsClause(java.util.Collection<Sprint> sprints)
Description copied from interface: SprintQueryService
Add a clause that includes all issues of a given sprints

Specified by:
getSprintsClause in interface SprintQueryService


Copyright © 2007-2012 Atlassian. All Rights Reserved.