public class

IssueLinkDisplayHelper

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.link.IssueLinkDisplayHelper

Class Overview

A simple helper class to help out in how we display issues links

Summary

Public Constructors
IssueLinkDisplayHelper(UserHistoryManager userHistoryManager, ApplicationUser user)
Public Methods
String getLastUsedLinkType()
Collection<String> getSortedIssueLinkTypes(Collection<IssueLinkType> linkTypes)
Sorts the link types into a list of strings (for a combo box) sorted in previous usage order
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IssueLinkDisplayHelper (UserHistoryManager userHistoryManager, ApplicationUser user)

Public Methods

public String getLastUsedLinkType ()

Returns
  • the issue link type that was last used by this user

public Collection<String> getSortedIssueLinkTypes (Collection<IssueLinkType> linkTypes)

Sorts the link types into a list of strings (for a combo box) sorted in previous usage order

Parameters
linkTypes the collection of link types to sort
Returns
  • the list of link types sorted by previous preference