com.atlassian.jira.bc.portal
Class GadgetApplinkUpgradeUtil

java.lang.Object
  extended by com.atlassian.jira.bc.portal.GadgetApplinkUpgradeUtil
All Implemented Interfaces:
Startable

public class GadgetApplinkUpgradeUtil
extends Object
implements Startable

Utility that helps determine if there are any external gadget specs that need to have applinks created for them!

Since:
v4.3

Constructor Summary
GadgetApplinkUpgradeUtil(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore externalGadgetSpecStore, ApplicationProperties applicationProperties, PermissionManager permissionManager, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 void disableUpgradeCheck()
           
 Map<URI,List<com.atlassian.gadgets.directory.spi.ExternalGadgetSpec>> getExternalGadgetsRequiringUpgrade()
          Returns a mapping of a baseurl that doesn't have an applink configured yet to a list of gadget specs starting with that base url
 boolean isUpgradeRequired(com.atlassian.crowd.embedded.api.User user)
           
 void onClearCache(ClearCacheEvent event)
           
 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

GadgetApplinkUpgradeUtil

public GadgetApplinkUpgradeUtil(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore externalGadgetSpecStore,
                                ApplicationProperties applicationProperties,
                                PermissionManager permissionManager,
                                com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

isUpgradeRequired

public boolean isUpgradeRequired(com.atlassian.crowd.embedded.api.User user)

getExternalGadgetsRequiringUpgrade

public Map<URI,List<com.atlassian.gadgets.directory.spi.ExternalGadgetSpec>> getExternalGadgetsRequiringUpgrade()
Returns a mapping of a baseurl that doesn't have an applink configured yet to a list of gadget specs starting with that base url

Returns:
Map of baseurl -> List of gadget specs starting with that baseurl

disableUpgradeCheck

public void disableUpgradeCheck()

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.

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent event)


Copyright © 2002-2012 Atlassian. All Rights Reserved.