@PublicApi
public interface JiraLicenseService
Modifier and Type | Interface and Description |
---|---|
static interface |
JiraLicenseService.ValidationResult
Holds the validated license and potential errors
|
Modifier and Type | Method and Description |
---|---|
void |
confirmProceedUnderEvaluationTerms(String userName)
This will confirm that user has agreed to proceed under Evaluation terms, typically when the license is too old
for the current JIRA build.
|
LicenseDetails |
getLicense()
Deprecated.
since JIRA 6.3 - use getLicenses instead
|
Iterable<LicenseDetails> |
getLicenses()
Retrieve a list of all products licenses installed in this instance.
|
String |
getServerId()
Gets the server ID of the JIRA instance, creates it if it doesn't already exists.
|
Iterable<JiraLicenseService.ValidationResult> |
validate(I18nHelper i18n,
Iterable<String> licenses)
Validates each license String provided in preparation for setting them.
|
JiraLicenseService.ValidationResult |
validate(I18nHelper i18nHelper,
String licenseString)
Validates the license String in preparation for setting the license.
|
String getServerId()
@Deprecated LicenseDetails getLicense()
LicenseDetails
object that represents the current license or an instance of com.atlassian.jira.license.NullLicenseDetails
if the license is not currently setupLicenseDetails
object@ExperimentalApi Iterable<LicenseDetails> getLicenses()
JiraLicenseService.ValidationResult validate(I18nHelper i18nHelper, String licenseString)
i18nHelper
- the helper for i18nlicenseString
- the license to validatevoid confirmProceedUnderEvaluationTerms(String userName)
userName
- the name of the user that made the confirmationIterable<JiraLicenseService.ValidationResult> validate(I18nHelper i18n, Iterable<String> licenses)
i18n
- the helper for i18n - used to populate the error messageslicenses
- the licenses to validateCopyright © 2002-2016 Atlassian. All Rights Reserved.