public interface LicenseValidationInformation
ApplicationKey
of the currently installed license.| Modifier and Type | Method and Description |
|---|---|
Optional<com.atlassian.application.api.ApplicationKey> |
getApplicationKey() |
Optional<LicenseDetails> |
getLicenseDetail() |
com.atlassian.sal.api.validate.LicenseValidationResult |
getLicenseValidationResult() |
boolean |
isDeleteLicense() |
boolean |
isLicenseDetailsValid() |
boolean |
isLicensePairWithCorrectProductKey() |
boolean |
isProductKeyValid() |
boolean |
needMoreValidation() |
LicenseValidationInformation |
with(com.atlassian.sal.api.validate.LicenseValidationResult licenseValidationResult) |
LicenseValidationInformation |
withError(com.atlassian.sal.api.validate.LicenseErrorCode licenseErrorCode,
String errorMessage) |
LicenseValidationInformation |
withWarning(com.atlassian.sal.api.validate.LicenseWarningCode licenseWarningCode,
String warningMessage) |
LicenseValidationInformation |
withWarnings(Set<com.atlassian.sal.api.validate.LicenseValidationWarning> warnings) |
Optional<LicenseDetails> getLicenseDetail()
Optional of the license detail.Optional<com.atlassian.application.api.ApplicationKey> getApplicationKey()
com.atlassian.sal.api.validate.LicenseValidationResult getLicenseValidationResult()
boolean isDeleteLicense()
getLicenseDetail() out from the product, false otherwise.boolean isProductKeyValid()
getApplicationKey() is valid, false otherwise.boolean isLicenseDetailsValid()
getLicenseDetail() is valid, false otherwise.boolean isLicensePairWithCorrectProductKey()
getLicenseDetail() can apply to getApplicationKey(), false otherwise.boolean needMoreValidation()
getLicenseValidationResult() is valid,
false when the getLicenseDetail() has failed at least one validation
or isDeleteLicense() is true.LicenseValidationInformation with(@Nonnull com.atlassian.sal.api.validate.LicenseValidationResult licenseValidationResult)
LicenseValidationResult.LicenseValidationInformation withError(@Nonnull com.atlassian.sal.api.validate.LicenseErrorCode licenseErrorCode, @Nonnull String errorMessage)
licenseErrorCode - the validation error codeerrorMessage - the error messageLicenseValidationInformation withWarning(@Nonnull com.atlassian.sal.api.validate.LicenseWarningCode licenseWarningCode, @Nonnull String warningMessage)
licenseWarningCode - the validation warning codewarningMessage - the warning messageLicenseValidationInformation withWarnings(@Nonnull Set<com.atlassian.sal.api.validate.LicenseValidationWarning> warnings)
warnings - the list of warning validation resultsCopyright © 2002-2022 Atlassian. All Rights Reserved.