Package com.atlassian.jira.issue.link
Class MemoryRemoteIssueLinkStore
java.lang.Object
com.atlassian.jira.issue.link.MemoryRemoteIssueLinkStore
- All Implemented Interfaces:
RemoteIssueLinkStore
Mock RemoteIssueLinkStore for testing without persisting in a database.
- Since:
- v5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRemoteIssueLink(RemoteIssueLink remoteIssueLink) findRemoteIssueLinksByGlobalIds(Collection<String> globalIds) Returns remote issue links in given issue with any of the given globalIds, sorted by id.getRemoteIssueLink(Long remoteIssueLinkId) getRemoteIssueLinksByGlobalId(Issue issue, String globalId) Returns remote issue links in given issue with given globalId sorted by id.getRemoteIssueLinksForIssue(Issue issue) longgetTotalRemoteIssueLinkCountByGlobalId(String globalId) voidremoveRemoteIssueLink(Long remoteIssueLinkId) voidupdateRemoteIssueLink(RemoteIssueLink remoteIssueLink)
-
Constructor Details
-
MemoryRemoteIssueLinkStore
public MemoryRemoteIssueLinkStore()
-
-
Method Details
-
getRemoteIssueLink
- Specified by:
getRemoteIssueLinkin interfaceRemoteIssueLinkStore
-
getRemoteIssueLinksForIssue
- Specified by:
getRemoteIssueLinksForIssuein interfaceRemoteIssueLinkStore
-
getRemoteIssueLinksByGlobalId
Description copied from interface:RemoteIssueLinkStoreReturns 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.
- Specified by:
getRemoteIssueLinksByGlobalIdin interfaceRemoteIssueLinkStore- Parameters:
issue- issue to searchglobalId- globalId to search- Returns:
- remote issue links sorted by id.
-
findRemoteIssueLinksByGlobalIds
Description copied from interface:RemoteIssueLinkStoreReturns 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.
- Specified by:
findRemoteIssueLinksByGlobalIdsin interfaceRemoteIssueLinkStore- Parameters:
globalIds- the globalIds to search- Returns:
- remote issue links sorted by id.
-
createRemoteIssueLink
- Specified by:
createRemoteIssueLinkin interfaceRemoteIssueLinkStore
-
updateRemoteIssueLink
- Specified by:
updateRemoteIssueLinkin interfaceRemoteIssueLinkStore
-
removeRemoteIssueLink
- Specified by:
removeRemoteIssueLinkin interfaceRemoteIssueLinkStore
-
getTotalRemoteIssueLinkCountByGlobalId
- Specified by:
getTotalRemoteIssueLinkCountByGlobalIdin interfaceRemoteIssueLinkStore
-