public interface

JiraLicenseUpdaterService

implements JiraLicenseService
com.atlassian.jira.bc.license.JiraLicenseUpdaterService
Known Indirect Subclasses

Class Overview

A service for setting license information.

Summary

Public Methods
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.
[Expand]
Inherited Methods
From interface com.atlassian.jira.bc.license.JiraLicenseService

Public Methods

public void removeLicenses (Iterable<? extends LicenseDetails> licensesToRemove)

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.

public LicenseDetails setLicense (JiraLicenseService.ValidationResult validationResult)

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.

public LicenseDetails setLicenseNoEvent (JiraLicenseService.ValidationResult validationResult)

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.