|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.link.DefaultRemoteIssueLinkManager
public class DefaultRemoteIssueLinkManager
Default implementation of the RemoteIssueLinkManager.
Field Summary | |
---|---|
static int |
MAX_LONG_VARCHAR_LENGTH
|
Constructor Summary | |
---|---|
DefaultRemoteIssueLinkManager(RemoteIssueLinkStore remoteIssueLinkStore,
IssueManager issueManager,
IssueUpdater issueUpdater,
I18nHelper.BeanFactory i18nBeanFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
RemoteIssueLink |
createRemoteIssueLink(RemoteIssueLink remoteIssueLink,
com.atlassian.crowd.embedded.api.User user)
Creates the given remote issue link. |
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. |
void |
removeRemoteIssueLink(Long remoteIssueLinkId,
com.atlassian.crowd.embedded.api.User user)
Deletes the given remote issue link id. |
void |
removeRemoteIssueLinkByGlobalId(Issue issue,
String globalId,
com.atlassian.crowd.embedded.api.User user)
Deletes any remote issue link that links with the given JIRA issue and has the given global id. |
void |
updateRemoteIssueLink(RemoteIssueLink remoteIssueLink,
com.atlassian.crowd.embedded.api.User user)
Updates the given remote issue link. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_LONG_VARCHAR_LENGTH
Constructor Detail |
---|
public DefaultRemoteIssueLinkManager(RemoteIssueLinkStore remoteIssueLinkStore, IssueManager issueManager, IssueUpdater issueUpdater, I18nHelper.BeanFactory i18nBeanFactory, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public RemoteIssueLink getRemoteIssueLink(Long remoteIssueLinkId)
RemoteIssueLinkManager
getRemoteIssueLink
in interface RemoteIssueLinkManager
remoteIssueLinkId
- the id of the remote issue link to get
public List<RemoteIssueLink> getRemoteIssueLinksForIssue(Issue issue)
RemoteIssueLinkManager
getRemoteIssueLinksForIssue
in interface RemoteIssueLinkManager
issue
- the issue to get the remote issue links for
public RemoteIssueLink getRemoteIssueLinkByGlobalId(Issue issue, String globalId)
RemoteIssueLinkManager
getRemoteIssueLinkByGlobalId
in interface RemoteIssueLinkManager
issue
- the issue to get the remote issue links forglobalId
- the globalId to get the remote issue link for
public RemoteIssueLink createRemoteIssueLink(RemoteIssueLink remoteIssueLink, com.atlassian.crowd.embedded.api.User user) throws CreateException
RemoteIssueLinkManager
createRemoteIssueLink
in interface RemoteIssueLinkManager
remoteIssueLink
- the remote issue link to createuser
- the current user
CreateException
public void updateRemoteIssueLink(RemoteIssueLink remoteIssueLink, com.atlassian.crowd.embedded.api.User user) throws UpdateException
RemoteIssueLinkManager
updateRemoteIssueLink
in interface RemoteIssueLinkManager
remoteIssueLink
- the remote issue link to updateuser
- the current user
UpdateException
public void removeRemoteIssueLink(Long remoteIssueLinkId, com.atlassian.crowd.embedded.api.User user)
RemoteIssueLinkManager
removeRemoteIssueLink
in interface RemoteIssueLinkManager
remoteIssueLinkId
- the id of the remote issue link to deleteuser
- the current userpublic void removeRemoteIssueLinkByGlobalId(Issue issue, String globalId, com.atlassian.crowd.embedded.api.User user)
RemoteIssueLinkManager
removeRemoteIssueLinkByGlobalId
in interface RemoteIssueLinkManager
issue
- the issue of the remote issue linkglobalId
- the global id of the remote issue linkuser
- the current user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |