com.atlassian.greenhopper.plugin.link
Class DefaultLinkProviderManager

java.lang.Object
  extended by com.atlassian.greenhopper.plugin.link.DefaultLinkProviderManager
All Implemented Interfaces:
LinkProviderManager

@Service(value="gh-linkProviderManager")
public class DefaultLinkProviderManager
extends java.lang.Object
implements LinkProviderManager

Default implementation of a LinkProviderManager.

Author:
miruflin

Field Summary
 
Fields inherited from interface com.atlassian.greenhopper.plugin.link.LinkProviderManager
SERVICE
 
Constructor Summary
DefaultLinkProviderManager()
           
 
Method Summary
 java.util.List<Link> getLinks(Board board)
          Get all links for a given Board.
 java.util.List<Link> getLinks(Board board, com.atlassian.jira.issue.Issue issue)
          Get all links for a given Board and Issue.
 java.util.List<Link> getLinks(LinkContext context)
          Get all links for a given LinkContext.
 void onEvent(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
          Make sure we clear the linkproviders cache every time a module is disabled/uninstalled
 void onEvent(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
          Make sure we clear the linkproviders cache every time a module is enabled/installed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLinkProviderManager

public DefaultLinkProviderManager()
Method Detail

getLinks

public java.util.List<Link> getLinks(Board board)
Get all links for a given Board.

Specified by:
getLinks in interface LinkProviderManager

getLinks

public java.util.List<Link> getLinks(Board board,
                                     com.atlassian.jira.issue.Issue issue)
Get all links for a given Board and Issue.

Specified by:
getLinks in interface LinkProviderManager

getLinks

public java.util.List<Link> getLinks(LinkContext context)
Get all links for a given LinkContext.

Specified by:
getLinks in interface LinkProviderManager

onEvent

@EventListener
public void onEvent(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
Make sure we clear the linkproviders cache every time a module is enabled/installed


onEvent

@EventListener
public void onEvent(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
Make sure we clear the linkproviders cache every time a module is disabled/uninstalled



Copyright © 2007-2012 Atlassian. All Rights Reserved.