@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(@NotNull String productKey,
@NotNull String license) |
void |
addProductLicenses(@NotNull Set<com.atlassian.sal.api.license.RawProductLicense> set) |
@NotNull com.atlassian.sal.api.license.MultiProductLicenseDetails |
decodeLicenseDetails(@NotNull String license)
TODO BDEV-8917
|
@NotNull Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> |
getAllProductLicenses() |
@NotNull SortedSet<String> |
getAllSupportEntitlementNumbers() |
Set<String> |
getProductKeys() |
@Nullable com.atlassian.sal.api.license.SingleProductLicenseDetailsView |
getProductLicenseDetails(@NotNull String productKey) |
@Nullable String |
getRawProductLicense(String productKey) |
String |
getServerId() |
String |
getSupportEntitlementNumber() |
boolean |
hostAllowsCustomProducts() |
boolean |
hostAllowsMultipleLicenses() |
void |
removeProductLicense(@NotNull String productKey) |
void |
setLicense(String license) |
@NotNull com.atlassian.sal.api.validate.MultipleLicensesValidationResult |
validateMultipleProductLicenses(@NotNull Set<com.atlassian.sal.api.license.RawProductLicense> set,
@Nullable Locale locale) |
@NotNull com.atlassian.sal.api.validate.ValidationResult |
validateProductLicense(@NotNull String productKey,
@NotNull String license,
@Nullable 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(@NotNull @NotNull String productKey, @NotNull @NotNull 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 addProductLicenses(@NotNull @NotNull Set<com.atlassian.sal.api.license.RawProductLicense> set) throws com.atlassian.sal.api.i18n.InvalidOperationException
addProductLicenses
in interface com.atlassian.sal.api.license.LicenseHandler
com.atlassian.sal.api.i18n.InvalidOperationException
public void removeProductLicense(@NotNull @NotNull String productKey) throws com.atlassian.sal.api.i18n.InvalidOperationException
removeProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
com.atlassian.sal.api.i18n.InvalidOperationException
@NotNull public @NotNull com.atlassian.sal.api.validate.ValidationResult validateProductLicense(@NotNull @NotNull String productKey, @NotNull @NotNull String license, @Nullable @Nullable Locale locale)
validateProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
@NotNull public @NotNull com.atlassian.sal.api.validate.MultipleLicensesValidationResult validateMultipleProductLicenses(@NotNull @NotNull Set<com.atlassian.sal.api.license.RawProductLicense> set, @Nullable @Nullable Locale locale)
validateMultipleProductLicenses
in interface com.atlassian.sal.api.license.LicenseHandler
@NotNull public @NotNull SortedSet<String> getAllSupportEntitlementNumbers()
getAllSupportEntitlementNumbers
in interface com.atlassian.sal.api.license.LicenseHandler
@Nullable public @Nullable String getRawProductLicense(String productKey)
getRawProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
@Nullable public @Nullable com.atlassian.sal.api.license.SingleProductLicenseDetailsView getProductLicenseDetails(@NotNull @NotNull String productKey)
getProductLicenseDetails
in interface com.atlassian.sal.api.license.LicenseHandler
@NotNull public @NotNull Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> getAllProductLicenses()
getAllProductLicenses
in interface com.atlassian.sal.api.license.LicenseHandler
@NotNull public @NotNull com.atlassian.sal.api.license.MultiProductLicenseDetails decodeLicenseDetails(@NotNull @NotNull String license)
decodeLicenseDetails
in interface com.atlassian.sal.api.license.LicenseHandler
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.