com.atlassian.upm.license.compatibility
Interface CompatiblePluginLicenseManager

All Known Subinterfaces:
LegacyCompatiblePluginLicenseManager
All Known Implementing Classes:
OnDemandCompatiblePluginLicenseManager, UpmCompatiblePluginLicenseManager

public interface CompatiblePluginLicenseManager

Manages the current plugin's license. Ensures compatibility for existing plugin's legacy licensing systems such that the plugins will work whether or not UPM 2.0 is installed.

Since:
2.0

Method Summary
 com.atlassian.extras.api.ProductLicense getCurrentLicense()
          Returns the current plugin license
 CompatibleLicenseStatus getCurrentLicenseStatus()
          Returns the status of the current plugin license
 com.atlassian.extras.api.ProductLicense getLicense(java.lang.String rawLicense)
          Returns the ProductLicense for the given license string.
 CompatibleLicenseStatus getLicenseStatus(java.lang.String rawLicense)
          Returns the status of the given license
 java.net.URI getPluginLicenseAdministrationUri()
          Returns the URI for the plugin license administration screen for this specific plugin.
 com.atlassian.extras.api.ProductLicense setLicense(java.lang.String rawLicense)
          Set the current plugin license.
 

Method Detail

setLicense

com.atlassian.extras.api.ProductLicense setLicense(java.lang.String rawLicense)
Set the current plugin license.

Parameters:
rawLicense - the new plugin license
Returns:
the new plugin license

getCurrentLicense

com.atlassian.extras.api.ProductLicense getCurrentLicense()
Returns the current plugin license

Returns:
the current plugin license

getLicense

com.atlassian.extras.api.ProductLicense getLicense(java.lang.String rawLicense)
Returns the ProductLicense for the given license string.

Parameters:
rawLicense - the license string
Returns:
the ProductLicense

getCurrentLicenseStatus

CompatibleLicenseStatus getCurrentLicenseStatus()
Returns the status of the current plugin license

Returns:
the status of the current plugin license

getLicenseStatus

CompatibleLicenseStatus getLicenseStatus(java.lang.String rawLicense)
Returns the status of the given license

Parameters:
rawLicense - the license string
Returns:
the status of the license

getPluginLicenseAdministrationUri

java.net.URI getPluginLicenseAdministrationUri()
Returns the URI for the plugin license administration screen for this specific plugin. The returned URI should be relative to the product's base url, e.g. "/plugins/servlet/upm#manage/com.example.sampleplugin"

Returns:
the URI for the plugin license administration screen for this specific plugin.


Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.