public class

JiraLicenseHandler

extends Object
implements LicenseHandler
java.lang.Object
   ↳ com.atlassian.sal.jira.license.JiraLicenseHandler

Class Overview

Jira implementation of license handler

Summary

Public Constructors
JiraLicenseHandler(JiraLicenseService jiraLicenseService, JiraLicenseManager jiraLicenseManager, I18nHelper.BeanFactory i18nBeanFactory)
Public Methods
String getServerId()
Gets the server ID of the currently running application.
String getSupportEntitlementNumber()
Gets the Support Entitlement Number (SEN) for the currently running application.
void setLicense(String license)
Sets the license, going through the regular validation steps as if you used the web UI
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.sal.api.license.LicenseHandler

Public Constructors

public JiraLicenseHandler (JiraLicenseService jiraLicenseService, JiraLicenseManager jiraLicenseManager, I18nHelper.BeanFactory i18nBeanFactory)

Public Methods

public String getServerId ()

Gets the server ID of the currently running application. The server ID format is four quadruples of alphanumeric characters, each separated by a dash (-).

Returns
  • the server ID

public String getSupportEntitlementNumber ()

Gets the Support Entitlement Number (SEN) for the currently running application.

Returns
  • the Support Entitlement Number, or null if there is no current support entitlement.

public void setLicense (String license)

Sets the license, going through the regular validation steps as if you used the web UI

Parameters
license The license string