|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationLinkService
Provides methods for retrieving ApplicationLink
s 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 ApplicationLink s. |
java.lang.Iterable<ApplicationLink> |
getApplicationLinks(java.lang.Class<? extends ApplicationType> type)
Retrieves all ApplicationLink s 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()
ApplicationLink
s.
Iterable
of stored ApplicationLink
s, of all
ApplicationType
s.java.lang.Iterable<ApplicationLink> getApplicationLinks(java.lang.Class<? extends ApplicationType> type)
ApplicationLink
s of a particular ApplicationType
.
type
- the Class
of the ApplicationType
s to return
Iterable
containing all stored ApplicationLink
s 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 ApplicationLink
s 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 All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |