com.atlassian.sal.jira.license
Class JiraLicenseHandler

java.lang.Object
  extended by com.atlassian.sal.jira.license.JiraLicenseHandler
All Implemented Interfaces:
com.atlassian.sal.api.license.LicenseHandler

public class JiraLicenseHandler
extends Object
implements com.atlassian.sal.api.license.LicenseHandler

Jira implementation of license handler


Constructor Summary
JiraLicenseHandler(JiraLicenseService jiraLicenseService, JiraLicenseManager jiraLicenseManager, I18nHelper.BeanFactory i18nBeanFactory)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraLicenseHandler

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

setLicense

public void setLicense(String license)
Sets the license, going through the regular validation steps as if you used the web UI

Specified by:
setLicense in interface com.atlassian.sal.api.license.LicenseHandler
Parameters:
license - The license string

getServerId

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 (-).

Specified by:
getServerId in interface com.atlassian.sal.api.license.LicenseHandler
Returns:
the server ID
Since:
2.7

getSupportEntitlementNumber

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

Specified by:
getSupportEntitlementNumber in interface com.atlassian.sal.api.license.LicenseHandler
Returns:
the Support Entitlement Number, or null if there is no current support entitlement.
Since:
2.7


Copyright © 2002-2013 Atlassian. All Rights Reserved.