Class Overview
Jira implementation of license handler
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.atlassian.sal.api.license.LicenseHandler
void
|
addProductLicense(String arg0, String arg1)
|
@Nonnull
MultiProductLicenseDetails
|
decodeLicenseDetails(String arg0)
|
@Nonnull
Collection<MultiProductLicenseDetails>
|
getAllProductLicenses()
|
@Nonnull
SortedSet<String>
|
getAllSupportEntitlementNumbers()
|
Set<String>
|
getProductKeys()
|
@Nullable
SingleProductLicenseDetailsView
|
getProductLicenseDetails(String arg0)
|
@Nullable
String
|
getRawProductLicense(String arg0)
|
@Nullable
String
|
getServerId()
|
@Nullable
@Deprecated
String
|
getSupportEntitlementNumber()
|
boolean
|
hostAllowsCustomProducts()
|
boolean
|
hostAllowsMultipleLicenses()
|
void
|
removeProductLicense(String arg0)
|
@Deprecated
void
|
setLicense(String arg0)
|
@Nonnull
ValidationResult
|
validateProductLicense(String arg0, String arg1, Locale arg2)
|
|
From interface
org.springframework.beans.factory.DisposableBean
|
From interface
org.springframework.beans.factory.InitializingBean
void
|
afterPropertiesSet()
|
|
Public Constructors
Public Methods
public
void
addProductLicense
(String productKey, String license)
Throws
InvalidOperationException
| |
public
void
afterPropertiesSet
()
@Nonnull
public
MultiProductLicenseDetails
decodeLicenseDetails
(String license)
@Nonnull
public
List<MultiProductLicenseDetails>
getAllProductLicenses
()
@Nonnull
public
SortedSet<String>
getAllSupportEntitlementNumbers
()
Gets the Support Entitlement Numbers (SENs) for all licenses in the currently running application. The SENs are
in an ordered set, guaranteeing to return the SEN in the same order until the installed license state changes.
Note that licensed plugin SENs are not included in the results, unless they are being treated as application
licenses.
Returns
- an ordered set of all the SENs. The set does not contain any empty or null SEN strings. If there is no
SEN it will return an empty set.
@Nullable
public
SingleProductLicenseDetailsView
getProductLicenseDetails
(String productKey)
@Nullable
public
String
getRawProductLicense
(String productKey)
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 (-).
public
String
getSupportEntitlementNumber
()
This method is deprecated.
use getSupportEntitlementNumber()
instead
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
boolean
hostAllowsCustomProducts
()
public
boolean
hostAllowsMultipleLicenses
()
public
void
removeProductLicense
(String productKey)
Throws
InvalidOperationException
| |
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
|
@Nonnull
public
ValidationResult
validateProductLicense
(String productKey, String license, Locale locale)
Protected Methods
@Nullable
protected
LicenseDetails
getLicenseDetailsByApplicationKey
(ApplicationKey application)