@Component public class BambooLicenseHandler extends Object implements com.atlassian.sal.api.license.LicenseHandler
Constructor and Description |
---|
BambooLicenseHandler(BambooLicenseManager bambooLicenseManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver) |
Modifier and Type | Method and Description |
---|---|
void |
addProductLicense(String productKey,
String license) |
com.atlassian.sal.api.license.MultiProductLicenseDetails |
decodeLicenseDetails(String license)
TODO BDEV-8917
|
Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> |
getAllProductLicenses()
TODO BDEV-8917
|
SortedSet<String> |
getAllSupportEntitlementNumbers() |
Set<String> |
getProductKeys() |
com.atlassian.sal.api.license.SingleProductLicenseDetailsView |
getProductLicenseDetails(String productKey) |
String |
getRawProductLicense(String productKey) |
String |
getServerId() |
String |
getSupportEntitlementNumber() |
boolean |
hostAllowsCustomProducts() |
boolean |
hostAllowsMultipleLicenses() |
void |
removeProductLicense(String productKey) |
void |
setLicense(String license) |
com.atlassian.sal.api.validate.ValidationResult |
validateProductLicense(String productKey,
String license,
Locale locale) |
@Autowired public BambooLicenseHandler(BambooLicenseManager bambooLicenseManager, com.atlassian.sal.api.message.I18nResolver i18nResolver)
public void setLicense(String license)
setLicense
in interface com.atlassian.sal.api.license.LicenseHandler
public String getServerId()
getServerId
in interface com.atlassian.sal.api.license.LicenseHandler
public String getSupportEntitlementNumber()
getSupportEntitlementNumber
in interface com.atlassian.sal.api.license.LicenseHandler
public boolean hostAllowsMultipleLicenses()
hostAllowsMultipleLicenses
in interface com.atlassian.sal.api.license.LicenseHandler
public boolean hostAllowsCustomProducts()
hostAllowsCustomProducts
in interface com.atlassian.sal.api.license.LicenseHandler
public Set<String> getProductKeys()
getProductKeys
in interface com.atlassian.sal.api.license.LicenseHandler
public void addProductLicense(@Nonnull String productKey, @Nonnull String license) throws com.atlassian.sal.api.i18n.InvalidOperationException
addProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
com.atlassian.sal.api.i18n.InvalidOperationException
public void removeProductLicense(@Nonnull String productKey) throws com.atlassian.sal.api.i18n.InvalidOperationException
removeProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
com.atlassian.sal.api.i18n.InvalidOperationException
@Nonnull public com.atlassian.sal.api.validate.ValidationResult validateProductLicense(@Nonnull String productKey, @Nonnull String license, @Nullable Locale locale)
validateProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
@Nonnull public SortedSet<String> getAllSupportEntitlementNumbers()
getAllSupportEntitlementNumbers
in interface com.atlassian.sal.api.license.LicenseHandler
@Nullable public String getRawProductLicense(String productKey)
getRawProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
@Nullable public com.atlassian.sal.api.license.SingleProductLicenseDetailsView getProductLicenseDetails(@Nonnull String productKey)
getProductLicenseDetails
in interface com.atlassian.sal.api.license.LicenseHandler
@Nonnull public Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> getAllProductLicenses()
getAllProductLicenses
in interface com.atlassian.sal.api.license.LicenseHandler
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.