com.atlassian.jira.bc.license
Interface JiraLicenseService

All Known Subinterfaces:
JiraLicenseUpdaterService
All Known Implementing Classes:
JiraLicenseServiceImpl

@PublicApi
public interface JiraLicenseService

A service for get license information. (readonly)

Since:
v4.0

Nested Class Summary
static interface JiraLicenseService.ValidationResult
          Holds the validated license and potential errors
 
Method Summary
 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()
          Returns a non null LicenseDetails object that represents the current license or an instance of com.atlassian.jira.license.NullLicenseDetails if the license is not currently setup
 String getServerId()
          Gets the server ID of the JIRA instance, creates it if it doesn't already exists.
 JiraLicenseService.ValidationResult validate(I18nHelper i18nHelper, String licenseString)
          Validates the license String in preparation for setting the license.
 

Method Detail

getServerId

String getServerId()
Gets the server ID of the JIRA instance, creates it if it doesn't already exists.

Returns:
the server ID for this JIRA instance.

getLicense

LicenseDetails getLicense()
Returns a non null LicenseDetails object that represents the current license or an instance of com.atlassian.jira.license.NullLicenseDetails if the license is not currently setup

Returns:
a non null LicenseDetails object

validate

JiraLicenseService.ValidationResult validate(I18nHelper i18nHelper,
                                             String licenseString)
Validates the license String in preparation for setting the license. Populates the ValidationResult with errors while validating.

Parameters:
i18nHelper - the helper for i18n
licenseString - the license to validate
Returns:
a validation result with the validated license and potential errors.

confirmProceedUnderEvaluationTerms

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.

Parameters:
userName - the name of the user that amde the confirmation


Copyright © 2002-2012 Atlassian. All Rights Reserved.