@Named(value="licenseHandler") public class RefimplLicenseHandler extends Object implements com.atlassian.sal.api.license.LicenseHandler
| Constructor and Description |
|---|
RefimplLicenseHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProductLicense(String productKey,
String license) |
com.atlassian.sal.api.license.MultiProductLicenseDetails |
decodeLicenseDetails(String licenseString) |
Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> |
getAllProductLicenses() |
SortedSet<String> |
getAllSupportEntitlementNumbers() |
Set<String> |
getProductKeys() |
com.atlassian.sal.api.license.SingleProductLicenseDetailsView |
getProductLicenseDetails(String productKey) |
String |
getRawProductLicense(String productKey) |
String |
getServerId()
Gets the server ID of the currently running application.
|
String |
getSupportEntitlementNumber()
Deprecated.
|
boolean |
hostAllowsCustomProducts() |
boolean |
hostAllowsMultipleLicenses() |
void |
removeProductLicense(String productKey) |
void |
setLicense(String license)
Deprecated.
|
com.atlassian.sal.api.validate.ValidationResult |
validateProductLicense(String productKey,
String license,
Locale locale) |
@Deprecated public void setLicense(String license)
setLicense in interface com.atlassian.sal.api.license.LicenseHandlerlicense - The license stringpublic boolean hostAllowsMultipleLicenses()
hostAllowsMultipleLicenses in interface com.atlassian.sal.api.license.LicenseHandlerpublic boolean hostAllowsCustomProducts()
hostAllowsCustomProducts in interface com.atlassian.sal.api.license.LicenseHandlerpublic Set<String> getProductKeys()
getProductKeys in interface com.atlassian.sal.api.license.LicenseHandlerpublic void addProductLicense(@Nonnull String productKey, @Nonnull String license)
addProductLicense in interface com.atlassian.sal.api.license.LicenseHandlerpublic void removeProductLicense(@Nonnull String productKey)
removeProductLicense in interface com.atlassian.sal.api.license.LicenseHandler@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@Nullable public String getServerId()
getServerId in interface com.atlassian.sal.api.license.LicenseHandler@Nullable @Deprecated public String getSupportEntitlementNumber()
getSupportEntitlementNumber in interface com.atlassian.sal.api.license.LicenseHandlernull if there is no current support entitlement.@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.LicenseHandlerCopyright © 2018 Atlassian. All rights reserved.