com.atlassian.greenhopper.service.rapid
Class RapidViewLocationServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.rapid.RapidViewLocationServiceImpl
All Implemented Interfaces:
RapidViewLocationService

@Service
public class RapidViewLocationServiceImpl
extends AbstractLoggable
implements RapidViewLocationService


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
RapidViewLocationServiceImpl()
           
 
Method Summary
 ServiceOutcome<BoardLocation> getBoardLocationForIssue(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue issue, RapidView rapidView)
          Given the issue and a particular RapidView, returns the precise location of that issue on the RapidView.
 ServiceOutcome<BoardLocation> getBoardLocationForSprint(com.atlassian.crowd.embedded.api.User user, Sprint sprint)
          Given the sprint, returns the precise location of that sprint (on any RapidView).
 ServiceOutcome<java.util.Set<RapidView>> getRapidViewsForIssue(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue issue)
          Given the issue, look up all the Rapid Boards it appears on.
 ServiceOutcome<java.util.Set<RapidView>> getRapidViewsForSprint(com.atlassian.crowd.embedded.api.User user, java.lang.Long sprintId)
          Given the sprint, look up all the Rapid Boards it appears on.
 
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

RapidViewLocationServiceImpl

public RapidViewLocationServiceImpl()
Method Detail

getRapidViewsForIssue

@NotNull
public ServiceOutcome<java.util.Set<RapidView>> getRapidViewsForIssue(com.atlassian.crowd.embedded.api.User user,
                                                                              com.atlassian.jira.issue.Issue issue)
Description copied from interface: RapidViewLocationService
Given the issue, look up all the Rapid Boards it appears on. Will only return Boards where the issue can be seen on the board in some mode. For Kanban Boards, this means that issues must appear in Work mode to qualify (taking into account the Work mode sub filter).

Calling this method may execute many Lucene queries.

Specified by:
getRapidViewsForIssue in interface RapidViewLocationService
Parameters:
user - the user performing the lookup
issue - the issue being looked up
Returns:
the outcome; the Rapid Boards that the issue appears on.

getRapidViewsForSprint

@NotNull
public ServiceOutcome<java.util.Set<RapidView>> getRapidViewsForSprint(com.atlassian.crowd.embedded.api.User user,
                                                                               java.lang.Long sprintId)
Description copied from interface: RapidViewLocationService
Given the sprint, look up all the Rapid Boards it appears on.

Calling this method may execute many Lucene queries.

Specified by:
getRapidViewsForSprint in interface RapidViewLocationService
Parameters:
user - the user performing the lookup
sprintId - the ID of the sprint being looked up
Returns:
the outcome; the Rapid Boards that the sprint appears on.

getBoardLocationForIssue

public ServiceOutcome<BoardLocation> getBoardLocationForIssue(com.atlassian.crowd.embedded.api.User user,
                                                              com.atlassian.jira.issue.Issue issue,
                                                              RapidView rapidView)
Description copied from interface: RapidViewLocationService
Given the issue and a particular RapidView, returns the precise location of that issue on the RapidView. This is used so that we can redirect the user to exactly where the issue is, and not just dropping them on the board.

Specified by:
getBoardLocationForIssue in interface RapidViewLocationService
Parameters:
user - the user performing the lookup
issue - the issue being looked up
rapidView - the board being looked up
Returns:
the outcome

getBoardLocationForSprint

public ServiceOutcome<BoardLocation> getBoardLocationForSprint(com.atlassian.crowd.embedded.api.User user,
                                                               Sprint sprint)
Description copied from interface: RapidViewLocationService
Given the sprint, returns the precise location of that sprint (on any RapidView).

Specified by:
getBoardLocationForSprint in interface RapidViewLocationService
Parameters:
user - the user performing the lookup
sprint - the sprint being looked up
Returns:
the outcome


Copyright © 2007-2012 Atlassian. All Rights Reserved.