com.atlassian.sal.api.license
Interface LicenseHandler


public interface LicenseHandler

Interface into the license system for the individual application

Since:
2.0

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 string for the currently running application
 

Method Detail

setLicense

void setLicense(String license)
Sets the license string for the currently running application

Parameters:
license - The license string
Throws:
IllegalArgumentException - if the license string is not a valid license

getServerId

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, or null if the server ID has not yet been set for the currently running application.
Since:
2.7

getSupportEntitlementNumber

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.
Since:
2.7


Copyright © 2015 Atlassian. All rights reserved.