Class BambooLicenseHandler

java.lang.Object
com.atlassian.sal.bamboo.license.BambooLicenseHandler
All Implemented Interfaces:
com.atlassian.sal.api.license.LicenseHandler

@Component public class BambooLicenseHandler extends Object implements com.atlassian.sal.api.license.LicenseHandler
  • Constructor Details

    • BambooLicenseHandler

      @Autowired public BambooLicenseHandler(BambooLicenseManager bambooLicenseManager, com.atlassian.sal.api.message.I18nResolver i18nResolver)
  • Method Details

    • setLicense

      public void setLicense(String license)
      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(@NotNull @NotNull String productKey, @NotNull @NotNull 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(@NotNull @NotNull Set<com.atlassian.sal.api.license.RawProductLicense> set) 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(@NotNull @NotNull 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

      @NotNull public @NotNull com.atlassian.sal.api.validate.ValidationResult validateProductLicense(@NotNull @NotNull String productKey, @NotNull @NotNull String license, @Nullable @Nullable Locale locale)
      Specified by:
      validateProductLicense in interface com.atlassian.sal.api.license.LicenseHandler
    • validateMultipleProductLicenses

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

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

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

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

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

      @NotNull public @NotNull com.atlassian.sal.api.license.MultiProductLicenseDetails decodeLicenseDetails(@NotNull @NotNull String license)
      TODO BDEV-8917
      Specified by:
      decodeLicenseDetails in interface com.atlassian.sal.api.license.LicenseHandler