Class ConfluenceLicenseHandler
- java.lang.Object
 - 
- com.atlassian.sal.confluence.license.ConfluenceLicenseHandler
 
 
- 
- All Implemented Interfaces:
 com.atlassian.sal.api.license.LicenseHandler
public class ConfluenceLicenseHandler extends Object implements com.atlassian.sal.api.license.LicenseHandler
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringUNSUPPORTED_PRODUCT_KEY_MESSAGE 
- 
Constructor Summary
Constructors Constructor Description ConfluenceLicenseHandler(ConfluenceSidManager sidManager, LicenseService licenseService, com.atlassian.config.ApplicationConfiguration applicationConfiguration) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddProductLicense(String productKey, String license)voidaddProductLicenses(Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses)@NonNull com.atlassian.sal.api.license.MultiProductLicenseDetailsdecodeLicenseDetails(String license)@NonNull Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails>getAllProductLicenses()@NonNull SortedSet<String>getAllSupportEntitlementNumbers()Set<String>getProductKeys()@Nullable com.atlassian.sal.api.license.SingleProductLicenseDetailsViewgetProductLicenseDetails(String productKey)@Nullable StringgetRawProductLicense(String productKey)StringgetServerId()StringgetSupportEntitlementNumber()booleanhostAllowsCustomProducts()booleanhostAllowsMultipleLicenses()voidremoveProductLicense(String productKey)voidsetLicense(String licenseString)Deprecated.since 5.9, SAL 3.0.com.atlassian.sal.api.validate.MultipleLicensesValidationResultvalidateMultipleProductLicenses(Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses, @Nullable Locale userLocale)@NonNull com.atlassian.sal.api.validate.ValidationResultvalidateProductLicense(String productKey, String license, Locale locale) 
 - 
 
- 
- 
Field Detail
- 
UNSUPPORTED_PRODUCT_KEY_MESSAGE
public static final String UNSUPPORTED_PRODUCT_KEY_MESSAGE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
ConfluenceLicenseHandler
public ConfluenceLicenseHandler(ConfluenceSidManager sidManager, LicenseService licenseService, com.atlassian.config.ApplicationConfiguration applicationConfiguration)
 
 - 
 
- 
Method Detail
- 
setLicense
@Deprecated public void setLicense(String licenseString)
Deprecated.since 5.9, SAL 3.0. UseaddProductLicense(String, String)instead.- Specified by:
 setLicensein interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
getServerId
public String getServerId()
- Specified by:
 getServerIdin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
getSupportEntitlementNumber
public String getSupportEntitlementNumber()
- Specified by:
 getSupportEntitlementNumberin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
hostAllowsMultipleLicenses
public boolean hostAllowsMultipleLicenses()
- Specified by:
 hostAllowsMultipleLicensesin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
hostAllowsCustomProducts
public boolean hostAllowsCustomProducts()
- Specified by:
 hostAllowsCustomProductsin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
getProductKeys
public Set<String> getProductKeys()
- Specified by:
 getProductKeysin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
addProductLicense
public void addProductLicense(@Nonnull String productKey, @Nonnull String license) throws com.atlassian.sal.api.i18n.InvalidOperationException- Specified by:
 addProductLicensein interfacecom.atlassian.sal.api.license.LicenseHandler- Throws:
 com.atlassian.sal.api.i18n.InvalidOperationException
 
- 
addProductLicenses
public void addProductLicenses(@Nonnull Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses) throws com.atlassian.sal.api.i18n.InvalidOperationException- Specified by:
 addProductLicensesin interfacecom.atlassian.sal.api.license.LicenseHandler- Throws:
 com.atlassian.sal.api.i18n.InvalidOperationException
 
- 
removeProductLicense
public void removeProductLicense(@Nonnull String productKey) throws com.atlassian.sal.api.i18n.InvalidOperationException- Specified by:
 removeProductLicensein interfacecom.atlassian.sal.api.license.LicenseHandler- Throws:
 com.atlassian.sal.api.i18n.InvalidOperationException
 
- 
validateProductLicense
public @NonNull com.atlassian.sal.api.validate.ValidationResult validateProductLicense(@Nonnull String productKey, @Nonnull String license, Locale locale)- Specified by:
 validateProductLicensein interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
validateMultipleProductLicenses
@Nonnull public com.atlassian.sal.api.validate.MultipleLicensesValidationResult validateMultipleProductLicenses(@Nonnull Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses, @Nullable Locale userLocale)- Specified by:
 validateMultipleProductLicensesin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
getAllSupportEntitlementNumbers
public @NonNull SortedSet<String> getAllSupportEntitlementNumbers()
- Specified by:
 getAllSupportEntitlementNumbersin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
getRawProductLicense
public @Nullable String getRawProductLicense(String productKey)
- Specified by:
 getRawProductLicensein interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
getProductLicenseDetails
public @Nullable com.atlassian.sal.api.license.SingleProductLicenseDetailsView getProductLicenseDetails(@Nonnull String productKey)- Specified by:
 getProductLicenseDetailsin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
getAllProductLicenses
public @NonNull Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> getAllProductLicenses()
- Specified by:
 getAllProductLicensesin interfacecom.atlassian.sal.api.license.LicenseHandler
 
- 
decodeLicenseDetails
public @NonNull com.atlassian.sal.api.license.MultiProductLicenseDetails decodeLicenseDetails(String license)
- Specified by:
 decodeLicenseDetailsin interfacecom.atlassian.sal.api.license.LicenseHandler
 
 - 
 
 -