com.atlassian.jira.issue.link
Class MemoryRemoteIssueLinkStore
java.lang.Object
com.atlassian.jira.issue.link.MemoryRemoteIssueLinkStore
- All Implemented Interfaces:
- RemoteIssueLinkStore
public class MemoryRemoteIssueLinkStore
- extends Object
- implements RemoteIssueLinkStore
Mock RemoteIssueLinkStore for testing without persisting in a database.
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryRemoteIssueLinkStore
public MemoryRemoteIssueLinkStore()
getRemoteIssueLink
public RemoteIssueLink getRemoteIssueLink(Long remoteIssueLinkId)
- Specified by:
getRemoteIssueLink
in interface RemoteIssueLinkStore
getRemoteIssueLinksForIssue
public List<RemoteIssueLink> getRemoteIssueLinksForIssue(Issue issue)
- Specified by:
getRemoteIssueLinksForIssue
in interface RemoteIssueLinkStore
getRemoteIssueLinksByGlobalId
public List<RemoteIssueLink> getRemoteIssueLinksByGlobalId(Issue issue,
String globalId)
- Description copied from interface:
RemoteIssueLinkStore
- 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.
- Specified by:
getRemoteIssueLinksByGlobalId
in interface RemoteIssueLinkStore
- Parameters:
issue
- issue to searchglobalId
- globalId to search
- Returns:
- remote issue links sorted by id.
createRemoteIssueLink
public RemoteIssueLink createRemoteIssueLink(RemoteIssueLink remoteIssueLink)
- Specified by:
createRemoteIssueLink
in interface RemoteIssueLinkStore
updateRemoteIssueLink
public void updateRemoteIssueLink(RemoteIssueLink remoteIssueLink)
- Specified by:
updateRemoteIssueLink
in interface RemoteIssueLinkStore
removeRemoteIssueLink
public void removeRemoteIssueLink(Long remoteIssueLinkId)
- Specified by:
removeRemoteIssueLink
in interface RemoteIssueLinkStore
Copyright © 2002-2012 Atlassian. All Rights Reserved.