com.atlassian.greenhopper.web.rapid
Interface RapidViewLocationResolver<T>

Type Parameters:
T - either an Issue or Sprint

public interface RapidViewLocationResolver<T>

Assists BoardDispatchAction in resolving the location of an Issue or Sprint on a Rapid Board. Intended for "web use" only.

See Also:
BoardDispatchAction, RapidViewLocationResolverFactory

Method Summary
 ServiceOutcome<T> getObject(com.atlassian.crowd.embedded.api.User user, java.lang.Long id)
          Look up the object that we are trying to find on a Board.
 ServiceOutcome<java.util.Set<RapidView>> getRapidViewsForObject(com.atlassian.crowd.embedded.api.User user, T object)
          Returns the set of Board IDs which contain the object specified.
 ServiceOutcome<java.lang.String> getUrl(com.atlassian.crowd.embedded.api.User user, T object, java.lang.Long rapidViewId)
          Get the URL of the precise location of the object on the specified board.
 

Method Detail

getObject

@NotNull
ServiceOutcome<T> getObject(com.atlassian.crowd.embedded.api.User user,
                                    java.lang.Long id)
Look up the object that we are trying to find on a Board.

Parameters:
user - the user
id - the ID of the object
Returns:
the outcome of the lookup

getRapidViewsForObject

@NotNull
ServiceOutcome<java.util.Set<RapidView>> getRapidViewsForObject(com.atlassian.crowd.embedded.api.User user,
                                                                        T object)
Returns the set of Board IDs which contain the object specified.

Parameters:
user - the user
object - the object
Returns:
the outcome of the lookup

getUrl

@NotNull
ServiceOutcome<java.lang.String> getUrl(com.atlassian.crowd.embedded.api.User user,
                                                T object,
                                                java.lang.Long rapidViewId)
Get the URL of the precise location of the object on the specified board.

Parameters:
user - the user
object - the object
rapidViewId - the ID of the Board we are looking at
Returns:
the outcome of the lookup


Copyright © 2007-2014 Atlassian. All Rights Reserved.