public class LegacyMultiLicenseStore extends Object implements MultiLicenseStore
BuildVersionLicenseCheck
). This class allows this code to
read and remove the licenses before they have been moved completely by the migration.Constructor and Description |
---|
LegacyMultiLicenseStore(MultiLicenseStoreImpl delegate,
ApplicationProperties applicationProperties,
FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all licenses from JIRA.
|
void |
clearCache()
Clear multi license store cache.
|
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 |
resetOldBuildConfirmation()
Resets persisted information about license in use being too old for current build.
|
Iterable<String> |
retrieve()
Retrieves all product license strings.
|
String |
retrieveServerId()
Gets the server ID from the persistence backend
|
void |
store(Iterable<String> licenses)
Persists a new state for all licenses.
|
void |
storeServerId(String serverId)
Stores the server ID to the persistent backend
|
@Inject public LegacyMultiLicenseStore(MultiLicenseStoreImpl delegate, ApplicationProperties applicationProperties, FeatureManager featureManager)
@Nonnull public Iterable<String> retrieve()
MultiLicenseStore
retrieve
in interface MultiLicenseStore
public void store(@Nonnull Iterable<String> licenses)
MultiLicenseStore
store
in interface MultiLicenseStore
licenses
- the license strings to storepublic String retrieveServerId()
MultiLicenseStore
retrieveServerId
in interface MultiLicenseStore
null
if not foundpublic void storeServerId(String serverId)
MultiLicenseStore
storeServerId
in interface MultiLicenseStore
serverId
- the server ID to storepublic void resetOldBuildConfirmation()
MultiLicenseStore
resetOldBuildConfirmation
in interface MultiLicenseStore
public void confirmProceedUnderEvaluationTerms(String userName)
MultiLicenseStore
confirmProceedUnderEvaluationTerms
in interface MultiLicenseStore
userName
- the name of the user that made the confirmationpublic void clear()
MultiLicenseStore
clear
in interface MultiLicenseStore
public void clearCache()
MultiLicenseStore
clearCache
in interface MultiLicenseStore
Copyright © 2002-2015 Atlassian. All Rights Reserved.