com.atlassian.upm.license.compatibility
Class PluginLicenseManagerAccessorImpl

java.lang.Object
  extended by com.atlassian.upm.license.compatibility.PluginLicenseManagerAccessorImpl
All Implemented Interfaces:
PluginLicenseManagerAccessor, org.springframework.beans.factory.InitializingBean

public class PluginLicenseManagerAccessorImpl
extends java.lang.Object
implements PluginLicenseManagerAccessor, org.springframework.beans.factory.InitializingBean

Since:
2.0

Constructor Summary
PluginLicenseManagerAccessorImpl(org.springframework.context.ApplicationContext applicationContext, LegacyCompatiblePluginLicenseManager legacyPluginLicenseManager)
           
 
Method Summary
 void afterPropertiesSet()
           
 LegacyCompatiblePluginLicenseManager getLegacyPluginLicenseManager()
          Returns the LegacyCompatiblePluginLicenseManager for the current plugin, regardless of whether or not UPM 2.0 is installed.
 CompatiblePluginLicenseManager getPluginLicenseManager()
          Returns the CompatiblePluginLicenseManager to be used based on whether or not UPM 2.0 is installed.
 boolean isOnDemand()
          Returns true if this plugin is being run in an On Demand environment, false if Behind the Firewall.
 boolean isUpmPluginLicenseManagerResolved()
          Returns true if UPM 2.0's plugin license manager is resolved and in use, false if not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginLicenseManagerAccessorImpl

public PluginLicenseManagerAccessorImpl(org.springframework.context.ApplicationContext applicationContext,
                                        LegacyCompatiblePluginLicenseManager legacyPluginLicenseManager)
Method Detail

getPluginLicenseManager

public CompatiblePluginLicenseManager getPluginLicenseManager()
Description copied from interface: PluginLicenseManagerAccessor
Returns the CompatiblePluginLicenseManager to be used based on whether or not UPM 2.0 is installed.

Specified by:
getPluginLicenseManager in interface PluginLicenseManagerAccessor
Returns:
the CompatiblePluginLicenseManager to be used based on whether or not UPM 2.0 is installed.

getLegacyPluginLicenseManager

public LegacyCompatiblePluginLicenseManager getLegacyPluginLicenseManager()
Description copied from interface: PluginLicenseManagerAccessor
Returns the LegacyCompatiblePluginLicenseManager for the current plugin, regardless of whether or not UPM 2.0 is installed. Use this method for functionality that you where you want to continue using your plugin's legacy licensing methods even if UPM 2.0 is installed.

Specified by:
getLegacyPluginLicenseManager in interface PluginLicenseManagerAccessor
Returns:
the LegacyCompatiblePluginLicenseManager for the current plugin.

isOnDemand

public boolean isOnDemand()
Description copied from interface: PluginLicenseManagerAccessor
Returns true if this plugin is being run in an On Demand environment, false if Behind the Firewall.

Specified by:
isOnDemand in interface PluginLicenseManagerAccessor
Returns:
true if this plugin is being run in an On Demand environment, false if Behind the Firewall.

isUpmPluginLicenseManagerResolved

public boolean isUpmPluginLicenseManagerResolved()
Description copied from interface: PluginLicenseManagerAccessor
Returns true if UPM 2.0's plugin license manager is resolved and in use, false if not.

Specified by:
isUpmPluginLicenseManagerResolved in interface PluginLicenseManagerAccessor
Returns:
true if UPM 2.0's plugin license manager is resolved and in use, false if not.

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean


Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.