public class

RemoteIssueLinkStoreImpl

extends Object
implements RemoteIssueLinkStore
java.lang.Object
   ↳ com.atlassian.jira.issue.link.RemoteIssueLinkStoreImpl

Class Overview

Deals with DB operations on RemoteIssueLinks

Summary

Constants
String ENTITY_NAME
Public Constructors
RemoteIssueLinkStoreImpl(EntityEngine entityEngine)
Public Methods
RemoteIssueLink createRemoteIssueLink(RemoteIssueLink remoteIssueLink)
List<RemoteIssueLink> findRemoteIssueLinksByGlobalIds(Collection<String> globalIds)
Returns remote issue links in given issue with any of the given globalIds, sorted by id.
RemoteIssueLink getRemoteIssueLink(Long remoteIssueLinkId)
List<RemoteIssueLink> getRemoteIssueLinksByGlobalId(Issue issue, String globalId)
Returns remote issue links in given issue with given globalId sorted by id.
List<RemoteIssueLink> getRemoteIssueLinksForIssue(Issue issue)
long getTotalRemoteIssueLinkCountByGlobalId(String globalId)
void removeRemoteIssueLink(Long remoteIssueLinkId)
void updateRemoteIssueLink(RemoteIssueLink remoteIssueLink)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.link.RemoteIssueLinkStore

Constants

public static final String ENTITY_NAME

Constant Value: "RemoteIssueLink"

Public Constructors

public RemoteIssueLinkStoreImpl (EntityEngine entityEngine)

Public Methods

public RemoteIssueLink createRemoteIssueLink (RemoteIssueLink remoteIssueLink)

public List<RemoteIssueLink> findRemoteIssueLinksByGlobalIds (Collection<String> globalIds)

Returns remote issue links in given issue with any of the given globalIds, sorted by id.

As the index for enforcing these to be unique would be too long, we have to get by without, and presume that duplicates might appear any time.

Parameters
globalIds the globalIds to search
Returns
  • remote issue links sorted by id.

public RemoteIssueLink getRemoteIssueLink (Long remoteIssueLinkId)

public List<RemoteIssueLink> getRemoteIssueLinksByGlobalId (Issue issue, String globalId)

Returns remote issue links in given issue with given globalId sorted by id.

As the index for enforcing these to be unique would be too long, we have to get by without, and presume that duplicates might appear any time.

Parameters
issue issue to search
globalId globalId to search
Returns
  • remote issue links sorted by id.

public List<RemoteIssueLink> getRemoteIssueLinksForIssue (Issue issue)

public long getTotalRemoteIssueLinkCountByGlobalId (String globalId)

public void removeRemoteIssueLink (Long remoteIssueLinkId)

public void updateRemoteIssueLink (RemoteIssueLink remoteIssueLink)