public class ConfluenceLicenseHandler extends Object implements com.atlassian.sal.api.license.LicenseHandler
Modifier and Type | Field and Description |
---|---|
static String |
UNSUPPORTED_PRODUCT_KEY_MESSAGE |
Constructor and Description |
---|
ConfluenceLicenseHandler(ConfluenceSidManager sidManager,
LicenseService licenseService,
com.atlassian.config.ApplicationConfiguration applicationConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
addProductLicense(String productKey,
String license) |
void |
addProductLicenses(Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses) |
@NonNull com.atlassian.sal.api.license.MultiProductLicenseDetails |
decodeLicenseDetails(String license) |
@NonNull Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> |
getAllProductLicenses() |
@NonNull SortedSet<String> |
getAllSupportEntitlementNumbers() |
Set<String> |
getProductKeys() |
@Nullable com.atlassian.sal.api.license.SingleProductLicenseDetailsView |
getProductLicenseDetails(String productKey) |
@Nullable String |
getRawProductLicense(String productKey) |
String |
getServerId() |
String |
getSupportEntitlementNumber() |
boolean |
hostAllowsCustomProducts() |
boolean |
hostAllowsMultipleLicenses() |
void |
removeProductLicense(String productKey) |
void |
setLicense(String licenseString)
Deprecated.
since 5.9, SAL 3.0. Use
addProductLicense(String, String) instead. |
com.atlassian.sal.api.validate.MultipleLicensesValidationResult |
validateMultipleProductLicenses(Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses,
@Nullable Locale userLocale) |
@NonNull com.atlassian.sal.api.validate.ValidationResult |
validateProductLicense(String productKey,
String license,
Locale locale) |
public static final String UNSUPPORTED_PRODUCT_KEY_MESSAGE
public ConfluenceLicenseHandler(ConfluenceSidManager sidManager, LicenseService licenseService, com.atlassian.config.ApplicationConfiguration applicationConfiguration)
@Deprecated public void setLicense(String licenseString)
addProductLicense(String, String)
instead.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 addProductLicenses(@Nonnull Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses) 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(@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
public @NonNull com.atlassian.sal.api.validate.ValidationResult validateProductLicense(@Nonnull String productKey, @Nonnull String license, Locale locale)
validateProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
@Nonnull public com.atlassian.sal.api.validate.MultipleLicensesValidationResult validateMultipleProductLicenses(@Nonnull Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses, @Nullable Locale userLocale)
validateMultipleProductLicenses
in interface com.atlassian.sal.api.license.LicenseHandler
public @NonNull SortedSet<String> getAllSupportEntitlementNumbers()
getAllSupportEntitlementNumbers
in interface com.atlassian.sal.api.license.LicenseHandler
public @Nullable String getRawProductLicense(String productKey)
getRawProductLicense
in interface com.atlassian.sal.api.license.LicenseHandler
public @Nullable com.atlassian.sal.api.license.SingleProductLicenseDetailsView getProductLicenseDetails(@Nonnull String productKey)
getProductLicenseDetails
in interface com.atlassian.sal.api.license.LicenseHandler
public @NonNull Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> getAllProductLicenses()
getAllProductLicenses
in interface com.atlassian.sal.api.license.LicenseHandler
public @NonNull com.atlassian.sal.api.license.MultiProductLicenseDetails decodeLicenseDetails(String license)
decodeLicenseDetails
in interface com.atlassian.sal.api.license.LicenseHandler
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences