com.atlassian.jira.bc.license
Interface JiraLicenseUpdaterService

All Superinterfaces:
JiraLicenseService
All Known Implementing Classes:
JiraLicenseServiceImpl

public interface JiraLicenseUpdaterService
extends JiraLicenseService

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
 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.
 
Methods inherited from interface com.atlassian.jira.bc.license.JiraLicenseService
confirmProceedUnderEvaluationTerms, getLicense, getServerId, validate
 

Method Detail

setLicense

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.

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.


Copyright © 2002-2013 Atlassian. All Rights Reserved.