com.atlassian.jira.issue.link
Class MemoryRemoteIssueLinkStore

java.lang.Object
  extended by 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

Constructor Summary
MemoryRemoteIssueLinkStore()
           
 
Method Summary
 RemoteIssueLink createRemoteIssueLink(RemoteIssueLink remoteIssueLink)
           
 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)
           
 void removeRemoteIssueLink(Long remoteIssueLinkId)
           
 void updateRemoteIssueLink(RemoteIssueLink remoteIssueLink)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryRemoteIssueLinkStore

public MemoryRemoteIssueLinkStore()
Method Detail

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 search
globalId - 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.