com.atlassian.upm.license.compatibility
Interface PluginLicenseManagerAccessor

All Known Implementing Classes:
PluginLicenseManagerAccessorImpl

public interface PluginLicenseManagerAccessor

Accesses the CompatiblePluginLicenseManager based on whether or not UPM 2.0 is installed.

Since:
2.0

Method Summary
 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.
 

Method Detail

getPluginLicenseManager

CompatiblePluginLicenseManager getPluginLicenseManager()
Returns the CompatiblePluginLicenseManager to be used based on whether or not UPM 2.0 is installed.

Returns:
the CompatiblePluginLicenseManager to be used based on whether or not UPM 2.0 is installed.

getLegacyPluginLicenseManager

LegacyCompatiblePluginLicenseManager getLegacyPluginLicenseManager()
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.

Returns:
the LegacyCompatiblePluginLicenseManager for the current plugin.

isOnDemand

boolean isOnDemand()
Returns true if this plugin is being run in an On Demand environment, false if Behind the Firewall.

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

isUpmPluginLicenseManagerResolved

boolean isUpmPluginLicenseManagerResolved()
Returns true if UPM 2.0's plugin license manager is resolved and in use, false if not.

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


Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.