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 Details

  • Constructor Details

    • ConfluenceLicenseHandler

      public ConfluenceLicenseHandler(ConfluenceSidManager sidManager, LicenseService licenseService, com.atlassian.config.ApplicationConfiguration applicationConfiguration)
  • Method Details

    • setLicense

      @Deprecated public void setLicense(String licenseString)
      Deprecated.
      since 5.9, SAL 3.0. Use addProductLicense(String, String) instead.
      Specified by:
      setLicense in interface com.atlassian.sal.api.license.LicenseHandler
    • getServerId

      public String getServerId()
      Specified by:
      getServerId in interface com.atlassian.sal.api.license.LicenseHandler
    • getSupportEntitlementNumber

      public String getSupportEntitlementNumber()
      Specified by:
      getSupportEntitlementNumber in interface com.atlassian.sal.api.license.LicenseHandler
    • hostAllowsMultipleLicenses

      public boolean hostAllowsMultipleLicenses()
      Specified by:
      hostAllowsMultipleLicenses in interface com.atlassian.sal.api.license.LicenseHandler
    • hostAllowsCustomProducts

      public boolean hostAllowsCustomProducts()
      Specified by:
      hostAllowsCustomProducts in interface com.atlassian.sal.api.license.LicenseHandler
    • getProductKeys

      public Set<String> getProductKeys()
      Specified by:
      getProductKeys in interface com.atlassian.sal.api.license.LicenseHandler
    • addProductLicense

      public void addProductLicense(@NonNull String productKey, @NonNull String license) throws com.atlassian.sal.api.i18n.InvalidOperationException
      Specified by:
      addProductLicense in interface com.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:
      addProductLicenses in interface com.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:
      removeProductLicense in interface com.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:
      validateProductLicense in interface com.atlassian.sal.api.license.LicenseHandler
    • validateMultipleProductLicenses

      public @NonNull com.atlassian.sal.api.validate.MultipleLicensesValidationResult validateMultipleProductLicenses(@NonNull Set<com.atlassian.sal.api.license.RawProductLicense> rawProductLicenses, @Nullable Locale userLocale)
      Specified by:
      validateMultipleProductLicenses in interface com.atlassian.sal.api.license.LicenseHandler
    • getAllSupportEntitlementNumbers

      public @NonNull SortedSet<String> getAllSupportEntitlementNumbers()
      Specified by:
      getAllSupportEntitlementNumbers in interface com.atlassian.sal.api.license.LicenseHandler
    • getRawProductLicense

      public @Nullable String getRawProductLicense(String productKey)
      Specified by:
      getRawProductLicense in interface com.atlassian.sal.api.license.LicenseHandler
    • getProductLicenseDetails

      public @Nullable com.atlassian.sal.api.license.SingleProductLicenseDetailsView getProductLicenseDetails(@NonNull String productKey)
      Specified by:
      getProductLicenseDetails in interface com.atlassian.sal.api.license.LicenseHandler
    • getAllProductLicenses

      public @NonNull Collection<com.atlassian.sal.api.license.MultiProductLicenseDetails> getAllProductLicenses()
      Specified by:
      getAllProductLicenses in interface com.atlassian.sal.api.license.LicenseHandler
    • decodeLicenseDetails

      public @NonNull com.atlassian.sal.api.license.MultiProductLicenseDetails decodeLicenseDetails(String license)
      Specified by:
      decodeLicenseDetails in interface com.atlassian.sal.api.license.LicenseHandler