java.lang.Object | |
↳ | com.atlassian.jira.bc.license.JiraLicenseServiceImpl |
The implementation of JiraLicenseService
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve a list of all products licenses installed in this instance.
| |||||||||||
Gets the server ID of the JIRA instance, creates it if it doesn't already exists.
| |||||||||||
Retrieves the SEN (Support Entitlement Number) of all installed licenses and orders them in a consistent manner.
| |||||||||||
Returns true if at least one license has been
set . | |||||||||||
Removes provided licenses.
| |||||||||||
Sets the license from the given ValidationResult as the current JIRA license.
| |||||||||||
Sets the license from the given ValidationResult as the current JIRA license.
| |||||||||||
Checks that all
existing licenses are valid . | |||||||||||
Performs minimum validation on the license.
| |||||||||||
Validates each license String provided in preparation for setting them.
| |||||||||||
Validates a JIRA application license string in preparation for setting that string as the license for the
specified application.
| |||||||||||
Validates the passed license string against all installed JIRA applications in preparation for setting a new JIRA
application license.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Retrieve a list of all products licenses installed in this instance.
In JIRA 6.3 this method returns an iterable containing at most one license. In later versions it may contain more.
Gets the server ID of the JIRA instance, creates it if it doesn't already exists.
Retrieves the SEN (Support Entitlement Number) of all installed licenses and orders them in a consistent manner. The order is guaranteed for a given set of licenses. It may change when licenses are added or removed. Clients that used to use a single SEN can easily retrieve the first item. That will suffice in most cases, though ensure to consider the consequences of when the licenses changes.
Removes provided licenses. If any of the provided licenses do not exist they will be ignored.
licensesToRemove | the licenses that are going to be removed. |
---|
Sets the license from the given ValidationResult as the current JIRA license. The validation result must have no errors.
validationResult | the validation result to get the license from. |
---|
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.
validationResult | the validation result to get the license from. |
---|
Checks that all existing licenses
are valid
.
Performs minimum validation on the license. But won't check if the license gives you access to applications. Populates the ValidationResult with errors while validating.
i18nHelper | the helper for i18n |
---|---|
licenseString | the license to validate |
Validates each license String provided in preparation for setting them. Populates the resulting ValidationResults with errors while validating.
i18n | the helper for i18n - used to populate the error messages |
---|---|
licenses | the licenses to validate |
Validates a JIRA application license string in preparation for setting that string as the license for the specified application. This validation does not include checking if the license provides access to the given application, and populates the returned ValidationResult with any errors.
applicationKey | the application key this license is for |
---|---|
licenseString | the license to validate |
i18nHelper | the helper for i18n |
Validates the passed license string against all installed JIRA applications in preparation for setting a new JIRA application license. That is, will the new license cause loss of access to any of the applications under the conditions of the current license. The returned ValidationResult will contain any errors found in the process.
It is recommended that validate(com.atlassian.application.api.ApplicationKey, java.lang.String, com.atlassian.jira.util.I18nHelper)
is used instead of this method.
i18nHelper | i18n helper used for messaging. |
---|---|
licenseString | the license to validate |