@ExperimentalApi
public interface ReadOnlyApplicationLinkService
ReadOnlyApplicationLinks representing linked applications (e.g. JIRA,
Confluence, etc.). The usage of this service is encouraged over ApplicationLinkService, especially if the
ApplicationLink's property set is not used at all. Also, there is no need to cache any retrieved application
links for performance reasons. Simply query this service again.| Modifier and Type | Method and Description |
|---|---|
ReadOnlyApplicationLink |
getApplicationLink(ApplicationId applicationId)
Retrieves an
ReadOnlyApplicationLink by its ApplicationId. |
Iterable<ReadOnlyApplicationLink> |
getApplicationLinks()
Retrieves all
ReadOnlyApplicationLinks. |
Iterable<ReadOnlyApplicationLink> |
getApplicationLinks(Class<? extends ApplicationType> type)
Retrieves all
ReadOnlyApplicationLinks of a particular ApplicationType. |
ReadOnlyApplicationLink |
getPrimaryApplicationLink(Class<? extends ApplicationType> type)
Retrieves the primary
ReadOnlyApplicationLink of a particular ApplicationType. |
Iterable<ReadOnlyApplicationLink> getApplicationLinks()
ReadOnlyApplicationLinks.Iterable of stored ReadOnlyApplicationLinks, of all
ApplicationTypes.@Nullable ReadOnlyApplicationLink getApplicationLink(ApplicationId applicationId)
ReadOnlyApplicationLink by its ApplicationId. Use this method only if you know the
ApplicationId of an existing ReadOnlyApplicationLink. If you storing an ApplicationId for
future look-ups using this method, you should listen for the ApplicationLinksIDChangedEvent to ensure
your stored ApplicationId is kept current.applicationId - the ApplicationId of a stored ReadOnlyApplicationLink.ReadOnlyApplicationLink specified by the id, or null if it does not existIterable<ReadOnlyApplicationLink> getApplicationLinks(Class<? extends ApplicationType> type)
ReadOnlyApplicationLinks of a particular ApplicationType.type - the Class of the ApplicationTypes to returnIterable containing all stored ReadOnlyApplicationLinks of the specified type.
The primary ReadOnlyApplicationLink is the first link in the list.@Nullable ReadOnlyApplicationLink getPrimaryApplicationLink(Class<? extends ApplicationType> type)
ReadOnlyApplicationLink of a particular ApplicationType. This
method should be used when you are implementing an integration feature that requires just one remote
entity, for example: determining which linked JIRA project to create an issue in, or which linked Confluence
space to create a page in. Features that require all ReadOnlyApplicationLinks of a particular
ApplicationType (like aggregating activity or searching) should use getApplicationLinks(Class).type - an application type (e.g. "jira")ApplicationLink of the specified typeCopyright © 2020 Atlassian. All rights reserved.