public interface JiraLicenseUpdaterService extends JiraLicenseService
JiraLicenseService.ValidationResult
Modifier and Type | Method and Description |
---|---|
void |
removeLicenses(Iterable<? extends LicenseDetails> licensesToRemove)
Removes provided licenses.
|
LicenseDetails |
setLicense(JiraLicenseService.ValidationResult validationResult)
Sets the license from the given ValidationResult as the current JIRA license.
|
LicenseDetails |
setLicenseNoEvent(JiraLicenseService.ValidationResult validationResult)
Sets the license from the given ValidationResult as the current JIRA license.
|
getLicenseDetails, getLicenses, getServerId, getSupportEntitlementNumbers, isDataCenterLicensed, isLicenseSet, validate, validate, validate, validate, validateApplicationLicense, validateMultiLicenses
LicenseDetails setLicense(JiraLicenseService.ValidationResult validationResult)
validationResult
- the validation result to get the license from.IllegalArgumentException
- if the validation result object has any error.LicenseDetails setLicenseNoEvent(JiraLicenseService.ValidationResult validationResult)
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.
validationResult
- the validation result to get the license from.IllegalArgumentException
- if the validation result object has any error.void removeLicenses(Iterable<? extends LicenseDetails> licensesToRemove)
licensesToRemove
- the licenses that are going to be removed.IllegalStateException
- when removal of licenses that would leave JIRA inoperable. For example,
removing the last license is not allowed.Copyright © 2002-2022 Atlassian. All Rights Reserved.