Package com.atlassian.jira.applinks
Class JiraApplicationLinkService
java.lang.Object
com.atlassian.jira.applinks.JiraApplicationLinkService
- All Implemented Interfaces:
com.atlassian.applinks.api.ApplicationLinkService,Startable
public class JiraApplicationLinkService
extends Object
implements com.atlassian.applinks.api.ApplicationLinkService, Startable
This class delegates to the ApplicationLinkService provided by UAL.
Because this ApplicationLinkService lives within the bundled applinks plugin, we have to use
the OsgiServiceProxyFactory to get a reference to this service, after the plugin system has finished starting up.
- Since:
- v4.3
-
Constructor Summary
ConstructorsConstructorDescriptionJiraApplicationLinkService(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.applinks.api.ApplicationLinkgetApplicationLink(com.atlassian.applinks.api.ApplicationId id) Iterable<com.atlassian.applinks.api.ApplicationLink> Retrieves all internalApplicationLinks.Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinks(Class<? extends com.atlassian.applinks.api.ApplicationType> type) com.atlassian.applinks.api.ApplicationLinkgetPrimaryApplicationLink(Class<? extends com.atlassian.applinks.api.ApplicationType> type) voidstart()This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
-
Constructor Details
-
JiraApplicationLinkService
public JiraApplicationLinkService(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory)
-
-
Method Details
-
getApplicationLink
public com.atlassian.applinks.api.ApplicationLink getApplicationLink(com.atlassian.applinks.api.ApplicationId id) throws com.atlassian.applinks.api.TypeNotInstalledException - Specified by:
getApplicationLinkin interfacecom.atlassian.applinks.api.ApplicationLinkService- Throws:
com.atlassian.applinks.api.TypeNotInstalledException
-
getApplicationLinks
Retrieves all internalApplicationLinks. For external application links, useApplinkOAuth2Service.- Specified by:
getApplicationLinksin interfacecom.atlassian.applinks.api.ApplicationLinkService- Returns:
- an
Iterableof storedApplicationLinks, of allApplicationTypes.
-
getApplicationLinks
public Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinks(Class<? extends com.atlassian.applinks.api.ApplicationType> type) - Specified by:
getApplicationLinksin interfacecom.atlassian.applinks.api.ApplicationLinkService
-
getPrimaryApplicationLink
public com.atlassian.applinks.api.ApplicationLink getPrimaryApplicationLink(Class<? extends com.atlassian.applinks.api.ApplicationType> type) - Specified by:
getPrimaryApplicationLinkin interfacecom.atlassian.applinks.api.ApplicationLinkService
-
start
Description copied from interface:StartableThis method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
-