com.atlassian.jira.issue.link
Interface LinkCollection

All Known Implementing Classes:
LinkCollectionImpl

@PublicApi
public interface LinkCollection

This class represents the collection of links in to and out of a particular issue. Sort order is determined by the application property "jira.view.issue.links.sort.order"


Method Summary
 Collection<Issue> getAllIssues()
          Returns a collection of issues that contains both inward and outward linking issues.
 List<Issue> getInwardIssues(String linkName)
          Looks up and returns a "sort.order" sorted list of all inward linked issues by given link name.
 Set<IssueLinkType> getLinkTypes()
          Returns a set of link types, IssueLinkType objects.
 List<Issue> getOutwardIssues(String linkName)
          Looks up and returns a "sort.order" sorted list of all outward linked issues by given link name.
 boolean isDisplayLinkPanel()
          Deprecated. No longer relevant because of introduction of Remote Issue Links. Since v5.0.
 

Method Detail

getLinkTypes

Set<IssueLinkType> getLinkTypes()
Returns a set of link types, IssueLinkType objects.

Returns:
a set of IssueLinkType objects

getOutwardIssues

@Nullable
List<Issue> getOutwardIssues(String linkName)
Looks up and returns a "sort.order" sorted list of all outward linked issues by given link name. May return null.

Parameters:
linkName - link name to lookup issues by
Returns:
a sorted list of browsable outward linked issues or null (sorry)

getInwardIssues

@Nullable
List<Issue> getInwardIssues(String linkName)
Looks up and returns a "sort.order" sorted list of all inward linked issues by given link name. May return null.

Parameters:
linkName - link name to lookup issues by
Returns:
a sorted list of browsable inward linked issues

getAllIssues

Collection<Issue> getAllIssues()
Returns a collection of issues that contains both inward and outward linking issues. The returned collection is sorted by "sort.order" and does not contain duplicates.

Returns:
a collection of all linked issues

isDisplayLinkPanel

boolean isDisplayLinkPanel()
Deprecated. No longer relevant because of introduction of Remote Issue Links. Since v5.0.

Determine whether there are links visible to this user - do not display link panel if not

Returns:
true if there are any outward or inward links, false otherwise


Copyright © 2002-2013 Atlassian. All Rights Reserved.