|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atlassian.upm.license.compatibility.UpmCompatiblePluginLicenseManager
public class UpmCompatiblePluginLicenseManager
The UPM 2.0 enabled implementation of CompatiblePluginLicenseManager.
This implementation is used if UPM 2.0 is installed on the current product installation.
This implementation exists such that versions of plugins that use this SPI will be compatible with both UPM 1.x and 2.0.
| Constructor Summary | |
|---|---|
UpmCompatiblePluginLicenseManager(CompatiblePluginLicenseManager defaultPluginLicenseManager,
com.atlassian.upm.api.license.PluginLicenseManager licenseManager,
java.lang.String pluginKey)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpmCompatiblePluginLicenseManager(CompatiblePluginLicenseManager defaultPluginLicenseManager,
com.atlassian.upm.api.license.PluginLicenseManager licenseManager,
java.lang.String pluginKey)
| Method Detail |
|---|
public com.atlassian.extras.api.ProductLicense setLicense(java.lang.String rawLicense)
CompatiblePluginLicenseManager
setLicense in interface CompatiblePluginLicenseManagerrawLicense - the new plugin license
public com.atlassian.extras.api.ProductLicense getCurrentLicense()
CompatiblePluginLicenseManager
getCurrentLicense in interface CompatiblePluginLicenseManagerpublic com.atlassian.extras.api.ProductLicense getLicense(java.lang.String rawLicense)
CompatiblePluginLicenseManagerProductLicense for the given license string.
getLicense in interface CompatiblePluginLicenseManagerrawLicense - the license string
ProductLicensepublic CompatibleLicenseStatus getCurrentLicenseStatus()
CompatiblePluginLicenseManager
getCurrentLicenseStatus in interface CompatiblePluginLicenseManagerpublic CompatibleLicenseStatus getLicenseStatus(java.lang.String rawLicense)
CompatiblePluginLicenseManager
getLicenseStatus in interface CompatiblePluginLicenseManagerrawLicense - the license string
public java.net.URI getPluginLicenseAdministrationUri()
CompatiblePluginLicenseManagerURI 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"
getPluginLicenseAdministrationUri in interface CompatiblePluginLicenseManagerURI for the plugin license administration screen for this specific plugin.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||