com.atlassian.jira.issue.link
Class IssueLinkDisplayHelper

java.lang.Object
  extended by com.atlassian.jira.issue.link.IssueLinkDisplayHelper

public class IssueLinkDisplayHelper
extends Object

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

Since:
v4.4

Constructor Summary
IssueLinkDisplayHelper(UserHistoryManager userHistoryManager, com.atlassian.crowd.embedded.api.User user)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueLinkDisplayHelper

public IssueLinkDisplayHelper(UserHistoryManager userHistoryManager,
                              com.atlassian.crowd.embedded.api.User user)
Method Detail

getSortedIssueLinkTypes

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

getLastUsedLinkType

public String getLastUsedLinkType()
Returns:
the issue link type that was last used by this user


Copyright © 2002-2014 Atlassian. All Rights Reserved.