com.atlassian.jira.applinks
Class JiraEntityLinkService

java.lang.Object
  extended by com.atlassian.jira.applinks.JiraEntityLinkService
All Implemented Interfaces:
com.atlassian.applinks.api.EntityLinkService, Startable

public class JiraEntityLinkService
extends Object
implements com.atlassian.applinks.api.EntityLinkService, Startable

This class delegates to the EntityLinkService provided by UAL. Because this EntityLinkService 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
JiraEntityLinkService(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory)
           
 
Method Summary
 Iterable<com.atlassian.applinks.api.EntityLink> getEntityLinks(Object entity)
           
 Iterable<com.atlassian.applinks.api.EntityLink> getEntityLinks(Object entity, Class<? extends com.atlassian.applinks.api.EntityType> type)
           
 com.atlassian.applinks.api.EntityLink getPrimaryEntityLink(Object entity, Class<? extends com.atlassian.applinks.api.EntityType> type)
           
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraEntityLinkService

public JiraEntityLinkService(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory)
Method Detail

getEntityLinks

public Iterable<com.atlassian.applinks.api.EntityLink> getEntityLinks(Object entity,
                                                                      Class<? extends com.atlassian.applinks.api.EntityType> type)
Specified by:
getEntityLinks in interface com.atlassian.applinks.api.EntityLinkService

getEntityLinks

public Iterable<com.atlassian.applinks.api.EntityLink> getEntityLinks(Object entity)
Specified by:
getEntityLinks in interface com.atlassian.applinks.api.EntityLinkService

getPrimaryEntityLink

public com.atlassian.applinks.api.EntityLink getPrimaryEntityLink(Object entity,
                                                                  Class<? extends com.atlassian.applinks.api.EntityType> type)
Specified by:
getPrimaryEntityLink in interface com.atlassian.applinks.api.EntityLinkService

start

public void start()
           throws Exception
Description copied from interface: Startable
This method wil 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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.