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
Resolves
BoardLocations for Issue objects.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIssueRapidViewLocationResolver(IssueHelper issueHelper, RapidViewLocationService rapidViewLocationService, IssueTypeService issueTypeService, RapidViewService rapidViewService) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.atlassian.jira.util.UrlBuilderaddExtraParameters(com.atlassian.jira.util.UrlBuilder urlBuilder, com.atlassian.jira.issue.Issue issue, BoardLocation boardLocation) Override this method to add extra parameters onto the URL.protected ServiceOutcome<BoardLocation> getBoardLocation(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue, RapidView rapidView) Get theBoardLocationfor an object on aRapidView.ServiceOutcome<com.atlassian.jira.issue.Issue> Look up the object that we are trying to find on a Board.getRapidViewsForObject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue) Returns the set of Board IDs which contain the object specified.getUrl(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue object, Long rapidViewId) Get the URL of the precise location of the object on the specified board.
-
Field Details
-
log
-
-
Constructor Details
-
IssueRapidViewLocationResolver
public IssueRapidViewLocationResolver(IssueHelper issueHelper, RapidViewLocationService rapidViewLocationService, IssueTypeService issueTypeService, RapidViewService rapidViewService)
-
-
Method Details
-
getObject
public ServiceOutcome<com.atlassian.jira.issue.Issue> getObject(com.atlassian.jira.user.ApplicationUser user, Long id) Description copied from interface:RapidViewLocationResolverLook up the object that we are trying to find on a Board.- Parameters:
user- the userid- 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:RapidViewLocationResolverReturns the set of Board IDs which contain the object specified.- Parameters:
user- the userissue- 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 theBoardLocationfor an object on aRapidView.- Parameters:
user- the user doing the look upissue- the object being looked uprapidView- 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 modifyissue- the object being looked upboardLocation- 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:RapidViewLocationResolverGet the URL of the precise location of the object on the specified board.- Specified by:
getUrlin interfaceRapidViewLocationResolver<T>- Parameters:
user- the userobject- the objectrapidViewId- the ID of the Board we are looking at- Returns:
- the outcome of the lookup
-