@ParametersAreNonnullByDefault
public interface LicenseService
Licenses installed over this service have to, among other validation criteria, contain a license for the Product.CONFLUENCE.
LicenseWebFacade| Modifier and Type | Method and Description |
|---|---|
@NonNull com.atlassian.extras.api.confluence.ConfluenceLicense |
install(String licenseString)
Validates and installs a given encrypted license.
|
boolean |
isLicensedForDataCenter()
Returns whether currently installed license is for Data Center.
|
boolean |
isLicensedForDataCenterOrExempt()
Returns whether the currently installed license is for Data Center, or if the license should be
treated as exempt from Data Center checks for testing purposes.
|
@NonNull com.atlassian.extras.api.confluence.ConfluenceLicense |
retrieve()
Retrieves the currently installed Confluence license.
|
@NonNull com.atlassian.fugue.Maybe<com.atlassian.extras.api.ProductLicense> |
retrieve(com.atlassian.extras.api.Product product)
Deprecated.
since 7.0.1. Use
retrieveForProduct(Product) |
@NonNull com.atlassian.extras.api.AtlassianLicense |
retrieveAtlassianLicense()
Retrieves the currently installed Atlassian license.
|
default @NonNull Optional<com.atlassian.extras.api.ProductLicense> |
retrieveForProduct(com.atlassian.extras.api.Product product)
Retrieves the license for the requested product.
|
@NonNull com.atlassian.extras.api.confluence.ConfluenceLicense |
validate(String licenseString)
Validates the given encrypted license.
|
@NonNull com.atlassian.extras.api.ProductLicense |
validate(String licenseString,
com.atlassian.extras.api.Product product)
Validates the given encrypted license.
|
@NonNull com.atlassian.extras.api.confluence.ConfluenceLicense retrieve()
throws LicenseException
This is a convenience method for retrieveForProduct(Product) with Product.CONFLUENCE.
LicenseException - if no license is installed or the license could not be de-crypted@NonNull com.atlassian.extras.api.AtlassianLicense retrieveAtlassianLicense()
throws LicenseException
LicenseException - if no license is installed or the license could not be de-crypted@Deprecated @NonNull com.atlassian.fugue.Maybe<com.atlassian.extras.api.ProductLicense> retrieve(com.atlassian.extras.api.Product product) throws LicenseException
retrieveForProduct(Product)product - the product for which the license is requestedLicenseException - if no license is installed or the license could not be de-crypteddefault @NonNull Optional<com.atlassian.extras.api.ProductLicense> retrieveForProduct(com.atlassian.extras.api.Product product) throws LicenseException
product - the product for which the license is requestedLicenseException - if no license is installed or the license could not be de-crypted@NonNull com.atlassian.extras.api.confluence.ConfluenceLicense validate(String licenseString) throws LicenseException
LicenseExceptioninstall(String)@NonNull com.atlassian.extras.api.ProductLicense validate(String licenseString, com.atlassian.extras.api.Product product) throws LicenseException
LicenseExceptionvalidate(String, com.atlassian.extras.api.Product)@NonNull com.atlassian.extras.api.confluence.ConfluenceLicense install(String licenseString) throws LicenseException
licenseString - the encrypted licenseLicenseException - if the license could not be de-crypted or is invalidboolean isLicensedForDataCenter()
throws LicenseException
ProductLicense.isClusteringEnabled() with retrieve().LicenseException - if no license is installed or the license could not be de-cryptedboolean isLicensedForDataCenterOrExempt()
throws LicenseException
LicenseException - if no license is installed or the license could not be de-crypted.Copyright © 2003–2021 Atlassian. All rights reserved.