Class CrowdLicenseHandler

java.lang.Object
com.atlassian.sal.crowd.license.CrowdLicenseHandler
All Implemented Interfaces:
com.atlassian.sal.api.license.LicenseHandler

public class CrowdLicenseHandler extends Object implements com.atlassian.sal.api.license.LicenseHandler
Crowd license handler that stores the license
Since:
2.0
  • Constructor Details

  • 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
    • 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
      Since:
      4.4
    • decodeLicenseDetails

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

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

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

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

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

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

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

      public boolean hostAllowsMultipleLicenses()
      Specified by:
      hostAllowsMultipleLicenses in interface com.atlassian.sal.api.license.LicenseHandler
    • 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

      @Nonnull public com.atlassian.sal.api.validate.ValidationResult validateProductLicense(@Nonnull String productKey, @Nonnull String license, @Nullable Locale locale)
      Specified by:
      validateProductLicense in interface com.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 locale)
      Specified by:
      validateMultipleProductLicenses in interface com.atlassian.sal.api.license.LicenseHandler
      Since:
      4.4