Class Overview
Default implementation of the RemoteIssueLinkManager.
Summary
Public Methods |
RemoteIssueLink
|
createRemoteIssueLink(RemoteIssueLink remoteIssueLink, User user)
Creates the given remote issue link.
|
RemoteIssueLink
|
createRemoteIssueLink(RemoteIssueLink remoteIssueLink, ApplicationUser user)
Creates the given remote issue link.
|
List<RemoteIssueLink>
|
findRemoteIssueLinksByGlobalIds(Collection<String> globalIds)
Returns the remote issue links that have any the given globalIds, or empty if none exists.
|
RemoteIssueLink
|
getRemoteIssueLink(Long remoteIssueLinkId)
Returns the remote issue link with the given id, or null if it does not exist.
|
RemoteIssueLink
|
getRemoteIssueLinkByGlobalId(Issue issue, String globalId)
Returns the first remote issue link found that links with the given JIRA issue and has the given globalId, or
null if none exists.
|
List<RemoteIssueLink>
|
getRemoteIssueLinksForIssue(Issue issue)
Gets the remote issue links that link with the given JIRA issue.
|
long
|
getTotalRemoteIssueLinkCountByGlobalId(String globalId)
Get the total count of Remote Issue Links which have a given global id
|
void
|
removeRemoteIssueLink(Long remoteIssueLinkId, ApplicationUser user)
Deletes the given remote issue link id.
|
void
|
removeRemoteIssueLink(Long remoteIssueLinkId, User user)
Deletes the given remote issue link id.
|
void
|
removeRemoteIssueLinkByGlobalId(Issue issue, String globalId, User user)
Deletes any remote issue link that links with the given JIRA issue and has the given global id.
|
void
|
removeRemoteIssueLinkByGlobalId(Issue issue, String globalId, ApplicationUser user)
Deletes any remote issue link that links with the given JIRA issue and has the given global id.
|
void
|
updateRemoteIssueLink(RemoteIssueLink remoteIssueLink, ApplicationUser user)
Updates the given remote issue link.
|
void
|
updateRemoteIssueLink(RemoteIssueLink remoteIssueLink, User user)
Updates the given remote issue link.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.jira.issue.link.RemoteIssueLinkManager
RemoteIssueLink
|
createRemoteIssueLink(RemoteIssueLink remoteIssueLink, User user)
|
RemoteIssueLink
|
createRemoteIssueLink(RemoteIssueLink remoteIssueLink, ApplicationUser user)
Creates the given remote issue link.
|
List<RemoteIssueLink>
|
findRemoteIssueLinksByGlobalIds(Collection<String> globalIds)
Returns the remote issue links that have any the given globalIds, or empty if none exists.
|
RemoteIssueLink
|
getRemoteIssueLink(Long remoteIssueLinkId)
Returns the remote issue link with the given id, or null if it does not exist.
|
RemoteIssueLink
|
getRemoteIssueLinkByGlobalId(Issue issue, String globalId)
Returns the first remote issue link found that links with the given JIRA issue and has the given globalId, or
null if none exists.
|
List<RemoteIssueLink>
|
getRemoteIssueLinksForIssue(Issue issue)
Gets the remote issue links that link with the given JIRA issue.
|
long
|
getTotalRemoteIssueLinkCountByGlobalId(String globalId)
Get the total count of Remote Issue Links which have a given global id
|
void
|
removeRemoteIssueLink(Long remoteIssueLinkId, ApplicationUser user)
Deletes the given remote issue link id.
|
void
|
removeRemoteIssueLink(Long remoteIssueLinkId, User user)
|
void
|
removeRemoteIssueLinkByGlobalId(Issue issue, String globalId, User user)
|
void
|
removeRemoteIssueLinkByGlobalId(Issue issue, String globalId, ApplicationUser user)
Deletes any remote issue link that links with the given JIRA issue and has the given global id.
|
void
|
updateRemoteIssueLink(RemoteIssueLink remoteIssueLink, ApplicationUser user)
Updates the given remote issue link.
|
void
|
updateRemoteIssueLink(RemoteIssueLink remoteIssueLink, User user)
|
|
Constants
public
static
final
int
MAX_GLOBAL_ID_LIST_SIZE_FOR_FIND
Constant Value:
100
(0x00000064)
public
static
final
int
MAX_LONG_VARCHAR_LENGTH
Constant Value:
255
(0x000000ff)
Public Constructors
Public Methods
Creates the given remote issue link.
Parameters
remoteIssueLink
| the remote issue link to create |
user
| the current user |
Returns
- the RemoteIssueLink object that was created including the generated id
Creates the given remote issue link.
Parameters
remoteIssueLink
| the remote issue link to create |
user
| the current user |
Returns
- the RemoteIssueLink object that was created including the generated id
Returns the remote issue links that have any the given globalIds, or empty if none exists.
Parameters
globalIds
| the globalIds to get the remote issue links for |
Returns
- the remote issue links with any of the given globalIds
public
RemoteIssueLink
getRemoteIssueLink
(Long remoteIssueLinkId)
Returns the remote issue link with the given id, or null if it does not exist.
Parameters
remoteIssueLinkId
| the id of the remote issue link to get |
Returns
- the remote issue link with the given id
public
RemoteIssueLink
getRemoteIssueLinkByGlobalId
(Issue issue, String globalId)
Returns the first remote issue link found that links with the given JIRA issue and has the given globalId, or
null if none exists.
Parameters
issue
| the issue to get the remote issue links for |
globalId
| the globalId to get the remote issue link for |
Returns
- the remote issue link for the given issue with the given globalId
Gets the remote issue links that link with the given JIRA issue.
Parameters
issue
| the issue to get the remote issue links for |
Returns
- the remote issue links for the given issue. This will never return null. If no remote issue links are stored against
the issue, the list will be empty.
public
long
getTotalRemoteIssueLinkCountByGlobalId
(String globalId)
Get the total count of Remote Issue Links which have a given global id
Parameters
globalId
| The global of the remote issue link |
Returns
- A count of remote issue links with that global id
public
void
removeRemoteIssueLink
(Long remoteIssueLinkId, ApplicationUser user)
Deletes the given remote issue link id.
Parameters
remoteIssueLinkId
| the id of the remote issue link to delete |
user
| the current user
|
public
void
removeRemoteIssueLink
(Long remoteIssueLinkId, User user)
Deletes the given remote issue link id.
Parameters
remoteIssueLinkId
| the id of the remote issue link to delete |
user
| the current user |
public
void
removeRemoteIssueLinkByGlobalId
(Issue issue, String globalId, User user)
Deletes any remote issue link that links with the given JIRA issue and has the given global id.
Parameters
issue
| the issue of the remote issue link |
globalId
| the global id of the remote issue link |
user
| the current user |
public
void
removeRemoteIssueLinkByGlobalId
(Issue issue, String globalId, ApplicationUser user)
Deletes any remote issue link that links with the given JIRA issue and has the given global id.
Parameters
issue
| the issue of the remote issue link |
globalId
| the global id of the remote issue link |
user
| the current user |
Updates the given remote issue link. The remote issue link is updated using all of the values in this object.
Null values are written as null, and must adhere to the required field constraints.
Parameters
remoteIssueLink
| the remote issue link to update |
user
| the current user |
public
void
updateRemoteIssueLink
(RemoteIssueLink remoteIssueLink, User user)
Updates the given remote issue link. The remote issue link is updated using all of the values in this object.
Null values are written as null, and must adhere to the required field constraints.
Parameters
remoteIssueLink
| the remote issue link to update |
user
| the current user |