com.atlassian.jira.bc.license.JiraLicenseService |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
A service for get license information. (readonly)
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JiraLicenseService.ValidationResult | Holds the validated license and potential errors |
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 . | |||||||||||
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.
| |||||||||||
This method is deprecated.
use
validate(com.atlassian.application.api.ApplicationKey, java.lang.String, com.atlassian.jira.util.I18nHelper)
|
@Internal
or @PublicApi
.
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.
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 |
This method is deprecated.
use validate(com.atlassian.application.api.ApplicationKey, java.lang.String, com.atlassian.jira.util.I18nHelper)
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 |