Interface JiraLicenseUpdaterService

All Superinterfaces:
JiraLicenseService
All Known Implementing Classes:
JiraLicenseServiceImpl

public interface JiraLicenseUpdaterService extends JiraLicenseService
A service for setting license information.
Since:
v4.0
  • 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

      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.
    • removeLicenses

      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.
      Since:
      7.0