public class SalLicenseManager extends Object implements LicenseManager
LicenseManager. Can be subclassed to create product-specific services, in case any of the
SAL methods don't work in some products.| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.sal.api.license.LicenseHandler |
licenseHandler |
| Constructor and Description |
|---|
SalLicenseManager(com.atlassian.sal.api.license.LicenseHandler licenseHandler,
String productKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyProductLicense(String license)
Applies the given product license.
|
Set<String> |
getProductKeys()
Returns all the keys of the current product.
|
boolean |
isDataCenter()
Indicates whether the product is fully licensed for Data Center.
|
protected final com.atlassian.sal.api.license.LicenseHandler licenseHandler
public SalLicenseManager(com.atlassian.sal.api.license.LicenseHandler licenseHandler,
String productKey)
public void applyProductLicense(String license) throws com.atlassian.sal.api.i18n.InvalidOperationException
LicenseManagerapplyProductLicense in interface LicenseManagerlicense - the license to applycom.atlassian.sal.api.i18n.InvalidOperationException - if the operation failspublic Set<String> getProductKeys()
LicenseManagergetProductKeys in interface LicenseManagerpublic boolean isDataCenter()
LicenseManagerisDataCenter in interface LicenseManagerCopyright © 2024 Atlassian. All rights reserved.