public interface JiraLicenseManager
Modifier and Type | Method and Description |
---|---|
void |
clearAndSetLicense(String licenseString)
Removes all licenses from JIRA and replace them with the new license.
|
LicenseDetails |
clearAndSetLicenseNoEvent(String licenseString)
Removes all licenses from JIRA and replace them with the new license without raising an event.
|
void |
confirmProceedUnderEvaluationTerms(String userName)
This will confirm that user has agreed to proceed under Evaluation terms, typically when the license is too old
for the current JIRA build.
|
LicenseDetails |
getLicense()
Deprecated.
this method will disappear in v7.0, please use
getLicenses() ; since v6.3 |
LicenseDetails |
getLicense(String licenseString)
This will decode the given string into a
LicenseDetails object. |
Iterable<LicenseDetails> |
getLicenses()
Retrieve a list of all products licenses installed in this instance.
|
String |
getServerId()
Gets the server ID of the JIRA instance, creates it if it doesn't already exists.
|
boolean |
isDecodeable(String licenseString)
This returns true if the provided licence string can be decoded into a valid licence
|
boolean |
isLicensed(LicenseRoleId role)
Returns true if the given license role is present and licensed.
|
LicenseDetails |
setLicense(String licenseString)
Sets the current license of this instance.
|
LicenseDetails |
setLicenseNoEvent(String licenseString)
Sets the current license of this instance.
|
String getServerId()
@Deprecated LicenseDetails getLicense()
getLicenses()
; since v6.3com.atlassian.extras.common.LicenseException
- if the stored license string cannot be decodedLicenseDetails getLicense(String licenseString)
LicenseDetails
object. It is assumed that the string is valid.
You will wear the consequences if it is not.licenseString
- the license stringcom.atlassian.extras.common.LicenseException
- if the stored license string cannot be decoded@ExperimentalApi boolean isLicensed(@Nonnull LicenseRoleId role)
role
- the roleboolean isDecodeable(String licenseString)
licenseString
- the license stringLicenseDetails setLicense(String licenseString)
Note that this method will fire a NewLicenseEvent
.
licenseString
- the license stringlicense
is valid.LicenseDetails setLicenseNoEvent(String licenseString)
This is a special version of setLicense(String)
that will not fire any event and is purely for use
during a Data Import.
licenseString
- the license stringlicense
is valid.void confirmProceedUnderEvaluationTerms(String userName)
userName
- the name of the user that made the confirmation@ExperimentalApi @Nonnull Iterable<LicenseDetails> getLicenses()
void clearAndSetLicense(String licenseString)
IllegalArgumentException
- if the license cannot be decodedLicenseDetails clearAndSetLicenseNoEvent(String licenseString)
IllegalArgumentException
- if the license cannot be decodedCopyright © 2002-2015 Atlassian. All Rights Reserved.