|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ApplicationLinkService
Provides methods for retrieving ApplicationLinks representing linked applications (e.g. JIRA, Confluence,
etc.)
| Method Summary | |
|---|---|
ApplicationLink |
getApplicationLink(ApplicationId id)
Retrieves an ApplicationLink by its ApplicationId. |
java.lang.Iterable<ApplicationLink> |
getApplicationLinks()
Retrieves all ApplicationLinks. |
java.lang.Iterable<ApplicationLink> |
getApplicationLinks(java.lang.Class<? extends ApplicationType> type)
Retrieves all ApplicationLinks of a particular ApplicationType. |
ApplicationLink |
getPrimaryApplicationLink(java.lang.Class<? extends ApplicationType> type)
Retrieves the primary ApplicationLink of a particular ApplicationType. |
| Method Detail |
|---|
ApplicationLink getApplicationLink(ApplicationId id)
throws TypeNotInstalledException
ApplicationLink by its ApplicationId. Use this method only if you know the
ApplicationId of an existing ApplicationLink. 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.
id - the ApplicationId of a stored ApplicationLink
ApplicationLink specified by the id, or null if it does not exist
TypeNotInstalledException - if the specified ApplicationLink's ApplicationType is
not currently installed.java.lang.Iterable<ApplicationLink> getApplicationLinks()
ApplicationLinks.
Iterable of stored ApplicationLinks, of all
ApplicationTypes.java.lang.Iterable<ApplicationLink> getApplicationLinks(java.lang.Class<? extends ApplicationType> type)
ApplicationLinks of a particular ApplicationType.
type - the Class of the ApplicationTypes to return
Iterable containing all stored ApplicationLinks of the specified type.
The primary ApplicationLink is the first link in the list.ApplicationLink getPrimaryApplicationLink(java.lang.Class<? extends ApplicationType> type)
ApplicationLink 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 ApplicationLinks of a particular
ApplicationType (like aggregating activity or searching) should use getApplicationLinks(Class).
type - an application type (e.g. "jira")
ApplicationLink of the specified type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||