public class JiraLicenseStoreImpl extends Object implements JiraLicenseStore
JiraLicenseStore
Constructor and Description |
---|
JiraLicenseStoreImpl(ApplicationProperties applicationProperties,
LicenseStringFactory licenseStringFactory) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
remove()
Remove any license.
|
void |
resetOldBuildConfirmation()
Resets persisted information about license in use being too old for current build.
|
String |
retrieve()
Retrieves the current license String from the persistent location.
|
String |
retrieveServerId()
Gets the server ID from the persistence backend
|
void |
store(String licenseString)
Stores the given license String into the persistent location.
|
void |
storeServerId(String serverId)
Stores the server ID to the persistent backend
|
public JiraLicenseStoreImpl(ApplicationProperties applicationProperties, LicenseStringFactory licenseStringFactory)
public String retrieve()
JiraLicenseStore
retrieve
in interface JiraLicenseStore
public void store(String licenseString)
JiraLicenseStore
store
in interface JiraLicenseStore
licenseString
- the license String to storepublic void remove()
JiraLicenseStore
remove
in interface JiraLicenseStore
public void resetOldBuildConfirmation()
JiraLicenseStore
resetOldBuildConfirmation
in interface JiraLicenseStore
public void confirmProceedUnderEvaluationTerms(String userName)
JiraLicenseStore
confirmProceedUnderEvaluationTerms
in interface JiraLicenseStore
userName
- the name of the user that amde the confirmationpublic String retrieveServerId()
JiraLicenseStore
retrieveServerId
in interface JiraLicenseStore
null
if not foundpublic void storeServerId(String serverId)
JiraLicenseStore
storeServerId
in interface JiraLicenseStore
serverId
- the server ID to storeCopyright © 2002-2015 Atlassian. All Rights Reserved.