public class

IssueLinksBeanBuilder

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.rest.json.beans.IssueLinksBeanBuilder

Class Overview

Builder for IssueLinkJsonBean instances.

Summary

Public Constructors
IssueLinksBeanBuilder(ApplicationProperties applicationProperties, IssueLinkManager issueLinkManager, JiraAuthenticationContext authContext, JiraBaseUrls jiraBaseUrls, Issue issue)
Public Methods
List<IssueLinkJsonBean> buildIssueLinks()
Build a List of IssueLinkJsonBean objects representing the issue links for the current Issue object.
IssueLinkJsonBean buildLink(IssueLinkType issueLinkType, Issue issue, boolean isOutbound, String id)
Builds an IssueLinkJsonBean from an IssueLink.
IssueRefJsonBean buildParentLink()
Build an IssueLinkJsonBean object representing the parent link for the current Issue object.
List<IssueRefJsonBean> buildSubtaskLinks()
Build a List of IssueLinkJsonBean objects representing the sub-task links for the current Issue object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IssueLinksBeanBuilder (ApplicationProperties applicationProperties, IssueLinkManager issueLinkManager, JiraAuthenticationContext authContext, JiraBaseUrls jiraBaseUrls, Issue issue)

Public Methods

public List<IssueLinkJsonBean> buildIssueLinks ()

Build a List of IssueLinkJsonBean objects representing the issue links for the current Issue object.

Returns
  • a List of IssueLinkJsonBean objects, or null if issue linking is disabled, or an empty List if no issue links exist

public IssueLinkJsonBean buildLink (IssueLinkType issueLinkType, Issue issue, boolean isOutbound, String id)

Builds an IssueLinkJsonBean from an IssueLink.

Parameters
issueLinkType an IssueLinkType instance
issue an Issue that is linked to this.issue
isOutbound a boolean indicating whether it's an outbound link
id issue link id
Returns
  • an IssueLinkJsonBean

public IssueRefJsonBean buildParentLink ()

Build an IssueLinkJsonBean object representing the parent link for the current Issue object.

Returns
  • an IssueLinkJsonBean object, or null if no parent link exists

public List<IssueRefJsonBean> buildSubtaskLinks ()

Build a List of IssueLinkJsonBean objects representing the sub-task links for the current Issue object.

Returns
  • a List of IssueLinkJsonBean objects, or an empty List if no sub-task links exist