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 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:
      getApplicationLink in interface com.atlassian.applinks.api.ApplicationLinkService
      Throws:
      com.atlassian.applinks.api.TypeNotInstalledException
    • getApplicationLinks

      public Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinks()
      Retrieves all internal ApplicationLinks. For external application links, use ApplinkOAuth2Service.
      Specified by:
      getApplicationLinks in interface com.atlassian.applinks.api.ApplicationLinkService
      Returns:
      an Iterable of stored ApplicationLinks, of all ApplicationTypes.
    • getApplicationLinks

      public Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinks(Class<? extends com.atlassian.applinks.api.ApplicationType> type)
      Specified by:
      getApplicationLinks in interface com.atlassian.applinks.api.ApplicationLinkService
    • getPrimaryApplicationLink

      public com.atlassian.applinks.api.ApplicationLink getPrimaryApplicationLink(Class<? extends com.atlassian.applinks.api.ApplicationType> type)
      Specified by:
      getPrimaryApplicationLink in interface com.atlassian.applinks.api.ApplicationLinkService
    • start

      public void start() throws Exception
      Description copied from interface: Startable
      This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
      Specified by:
      start in interface Startable
      Throws:
      Exception - Allows implementations to throw an Exception.