Class ConfluenceLicenseHandler

  • All Implemented Interfaces:
    com.atlassian.sal.api.license.LicenseHandler

    public class ConfluenceLicenseHandler
    extends Object
    implements com.atlassian.sal.api.license.LicenseHandler
    • Constructor Detail

      • ConfluenceLicenseHandler

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

      • 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

        @Nonnull
        public 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