Package com.atlassian.jira.license
Class BuildVersionLicenseCheckImpl
java.lang.Object
com.atlassian.jira.license.BuildVersionLicenseCheckImpl
- All Implemented Interfaces:
BuildVersionLicenseCheck
,LicenseCheck
Implements a license check that compares the earliest maintenance date of all current licenses to the
current JIRA instance build date. Enterprise License Agreements (ELAs) are special-cased to always pass this license
check provided that all current licenses are ELAs.
- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.license.LicenseCheck
LicenseCheck.Failure, LicenseCheck.Result
-
Field Summary
Fields inherited from interface com.atlassian.jira.license.LicenseCheck
FAIL, FAIL_NO_LICENSES, PASS
-
Constructor Summary
ConstructorsConstructorDescriptionBuildVersionLicenseCheckImpl
(JiraLicenseManager licenseManager, BuildUtilsInfo buildUtilsInfo, I18nHelper i18n, DateTimeFormatter dateTimeFormatter, LicenseMaintenancePredicate isMaintenanceValid) -
Method Summary
Modifier and TypeMethodDescriptionevaluate()
Performs this license check.Performs this build version license check without consideration of whether or not the current instance users have accepted the grace (evaluation) period that is offered to users after the maintenance period of one or more of their licenses expires (or more accurately, whenLicenseCheck.evaluate()
returns failure.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.license.LicenseCheck
isPass
-
Constructor Details
-
BuildVersionLicenseCheckImpl
public BuildVersionLicenseCheckImpl(@Nonnull JiraLicenseManager licenseManager, @Nonnull BuildUtilsInfo buildUtilsInfo, @Nonnull I18nHelper i18n, @Nonnull DateTimeFormatter dateTimeFormatter, @Nonnull LicenseMaintenancePredicate isMaintenanceValid)
-
-
Method Details
-
evaluate
Description copied from interface:LicenseCheck
Performs this license check.- Specified by:
evaluate
in interfaceLicenseCheck
-
evaluateWithoutGracePeriod
Description copied from interface:BuildVersionLicenseCheck
Performs this build version license check without consideration of whether or not the current instance users have accepted the grace (evaluation) period that is offered to users after the maintenance period of one or more of their licenses expires (or more accurately, whenLicenseCheck.evaluate()
returns failure.- Specified by:
evaluateWithoutGracePeriod
in interfaceBuildVersionLicenseCheck
- Returns:
- the result of this license check, without consideration of grace period status
- See Also:
-