Class RapidViewLocationResolverFactory.IssueRapidViewLocationResolver

java.lang.Object
com.atlassian.greenhopper.web.rapid.RapidViewLocationResolverFactory.IssueRapidViewLocationResolver
All Implemented Interfaces:
RapidViewLocationResolver<com.atlassian.jira.issue.Issue>
Enclosing class:
RapidViewLocationResolverFactory

public static class RapidViewLocationResolverFactory.IssueRapidViewLocationResolver extends Object
Resolves BoardLocations for Issue objects.
  • Field Details

  • Constructor Details

  • Method Details

    • getObject

      public ServiceOutcome<com.atlassian.jira.issue.Issue> getObject(com.atlassian.jira.user.ApplicationUser user, Long id)
      Description copied from interface: RapidViewLocationResolver
      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

      public ServiceOutcome<Set<RapidView>> getRapidViewsForObject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue)
      Description copied from interface: RapidViewLocationResolver
      Returns the set of Board IDs which contain the object specified.
      Parameters:
      user - the user
      issue - the object
      Returns:
      the outcome of the lookup
    • getBoardLocation

      protected ServiceOutcome<BoardLocation> getBoardLocation(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue, RapidView rapidView)
      Get the BoardLocation for an object on a RapidView.
      Parameters:
      user - the user doing the look up
      issue - the object being looked up
      rapidView - the board which this object appears on
      Returns:
      the outcome
    • addExtraParameters

      protected com.atlassian.jira.util.UrlBuilder addExtraParameters(com.atlassian.jira.util.UrlBuilder urlBuilder, com.atlassian.jira.issue.Issue issue, BoardLocation boardLocation)
      Override this method to add extra parameters onto the URL.
      Parameters:
      urlBuilder - the urlBuilder instance to modify
      issue - the object being looked up
      boardLocation - the location on the board of this object
      Returns:
      the urlBuilder instance modified
    • getUrl

      public ServiceOutcome<String> getUrl(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue object, Long rapidViewId)
      Description copied from interface: RapidViewLocationResolver
      Get the URL of the precise location of the object on the specified board.
      Specified by:
      getUrl in interface RapidViewLocationResolver<T>
      Parameters:
      user - the user
      object - the object
      rapidViewId - the ID of the Board we are looking at
      Returns:
      the outcome of the lookup