Package com.atlassian.jira.bc.license
Interface JiraLicenseUpdaterService
- All Superinterfaces:
JiraLicenseService
- All Known Implementing Classes:
JiraLicenseServiceImpl
A service for setting license information.
- Since:
- v4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.bc.license.JiraLicenseService
JiraLicenseService.ValidationResult -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveLicenses(Iterable<? extends LicenseDetails> licensesToRemove) Removes provided licenses.setLicense(JiraLicenseService.ValidationResult validationResult) Sets the license from the given ValidationResult as the current JIRA license.setLicenseNoEvent(JiraLicenseService.ValidationResult validationResult) Sets the license from the given ValidationResult as the current JIRA license.Methods inherited from interface com.atlassian.jira.bc.license.JiraLicenseService
getLicenseDetails, getLicenses, getServerId, getSupportEntitlementNumbers, isDataCenterLicensed, isLicenseSet, validate, validate, validate, validate, validateApplicationLicense, validateMultiLicenses
-
Method Details
-
setLicense
Sets the license from the given ValidationResult as the current JIRA license. The validation result must have no errors.- Parameters:
validationResult- the validation result to get the license from.- Returns:
- the new LicenseDetails created from the validated license.
- Throws:
IllegalArgumentException- if the validation result object has any error.
-
setLicenseNoEvent
Sets the license from the given ValidationResult as the current JIRA license. The validation result must have no errors.Note that this is a special method specifically for resetting a license during Data Import which is why it will specifically not fire an Event.
- Parameters:
validationResult- the validation result to get the license from.- Returns:
- the new LicenseDetails created from the validated license.
- Throws:
IllegalArgumentException- if the validation result object has any error.
-
removeLicenses
Removes provided licenses. If any of the provided licenses do not exist they will be ignored.- Parameters:
licensesToRemove- the licenses that are going to be removed.- Throws:
IllegalStateException- when removal of licenses that would leave JIRA inoperable. For example, removing the last license is not allowed.- Since:
- 7.0
-