Interface RemoteIssueLinkStore

All Known Implementing Classes:
MemoryRemoteIssueLinkStore, RemoteIssueLinkStoreImpl

public interface RemoteIssueLinkStore
Deals with DB operations on RemoteIssueLinks
Since:
v5.0
  • Method Details

    • getRemoteIssueLink

      RemoteIssueLink getRemoteIssueLink(Long remoteIssueLinkId)
    • getRemoteIssueLinksForIssue

      List<RemoteIssueLink> getRemoteIssueLinksForIssue(Issue issue)
    • getRemoteIssueLinksByGlobalId

      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.
    • findRemoteIssueLinksByGlobalIds

      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.
      Since:
      v6.1
    • createRemoteIssueLink

      RemoteIssueLink createRemoteIssueLink(RemoteIssueLink remoteIssueLink)
    • updateRemoteIssueLink

      void updateRemoteIssueLink(RemoteIssueLink remoteIssueLink)
    • removeRemoteIssueLink

      void removeRemoteIssueLink(Long remoteIssueLinkId)
    • getTotalRemoteIssueLinkCountByGlobalId

      long getTotalRemoteIssueLinkCountByGlobalId(String globalId)