public class MultiLicenseStoreImpl extends Object implements MultiLicenseStore
Constructor and Description |
---|
MultiLicenseStoreImpl(EntityEngine entityEngine,
JiraLicenseStore jiraLicenseStore,
FeatureManager featureManager,
com.atlassian.cache.CacheManager cacheManager) |
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 |
onClearCacheEvent(ClearCacheEvent c) |
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> newLicenseKeys)
Persists a new state for all licenses.
|
void |
storeServerId(String serverId)
Stores the server ID to the persistent backend
|
public static final String ID_COLUMN
public MultiLicenseStoreImpl(EntityEngine entityEngine, JiraLicenseStore jiraLicenseStore, FeatureManager featureManager, com.atlassian.cache.CacheManager cacheManager)
@Nonnull public Iterable<String> retrieve()
MultiLicenseStore
retrieve
in interface MultiLicenseStore
public void store(@Nonnull Iterable<String> newLicenseKeys)
MultiLicenseStore
store
in interface MultiLicenseStore
newLicenseKeys
- the license strings to store@EventListener public void onClearCacheEvent(ClearCacheEvent c)
public 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 amde the confirmationCopyright © 2002-2015 Atlassian. All Rights Reserved.