|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.license.JiraLicenseManagerImpl
public class JiraLicenseManagerImpl
Constructor Summary | |
---|---|
JiraLicenseManagerImpl(JiraLicenseStore licenseStore,
BuildUtilsInfo buildUtilsInfo,
com.atlassian.extras.api.LicenseManager licenseManager,
ApplicationProperties applicationProperties,
ExternalLinkUtil externalLinkUtil,
com.atlassian.license.SIDManager sidManager,
DateTimeFormatter dateTimeFormatter,
I18nHelper.BeanFactory i18nFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
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()
Gets the current license details of this instance. |
LicenseDetails |
getLicense(String licenseString)
This will decode the given string into a LicenseDetails object. |
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 |
LicenseDetails |
setLicense(String licenseString)
Sets the current license of this instance. |
LicenseDetails |
setLicenseNoEvent(String licenseString)
Sets the current license of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiraLicenseManagerImpl(JiraLicenseStore licenseStore, BuildUtilsInfo buildUtilsInfo, com.atlassian.extras.api.LicenseManager licenseManager, ApplicationProperties applicationProperties, ExternalLinkUtil externalLinkUtil, com.atlassian.license.SIDManager sidManager, DateTimeFormatter dateTimeFormatter, I18nHelper.BeanFactory i18nFactory, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public String getServerId()
JiraLicenseManager
getServerId
in interface JiraLicenseManager
public LicenseDetails getLicense()
JiraLicenseManager
getLicense
in interface JiraLicenseManager
public LicenseDetails getLicense(String licenseString)
JiraLicenseManager
LicenseDetails
object. It is assumed that the string is valid.
You will wear the consequences if it is not.
getLicense
in interface JiraLicenseManager
licenseString
- the license string
public boolean isDecodeable(String licenseString)
JiraLicenseManager
isDecodeable
in interface JiraLicenseManager
licenseString
- the license string
public LicenseDetails setLicense(String licenseString)
JiraLicenseManager
Note that this method will fire a NewLicenseEvent
.
setLicense
in interface JiraLicenseManager
licenseString
- the license string
license
is valid.public LicenseDetails setLicenseNoEvent(String licenseString)
JiraLicenseManager
This is a special version of JiraLicenseManager.setLicense(String)
that will not fire any event and is purely for use
during a Data Import.
setLicenseNoEvent
in interface JiraLicenseManager
licenseString
- the license string
license
is valid.public void confirmProceedUnderEvaluationTerms(String userName)
JiraLicenseManager
confirmProceedUnderEvaluationTerms
in interface JiraLicenseManager
userName
- the name of the user that made the confirmation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |