public class MockMultiLicenseStore extends Object implements MultiLicenseStore
| Constructor and Description |
|---|
MockMultiLicenseStore() |
MockMultiLicenseStore(Iterable<? extends String> license) |
MockMultiLicenseStore(String... license) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all licenses from JIRA.
|
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.
|
String |
getEvalUser() |
void |
resetOldBuildConfirmation()
Resets persisted information about license in use being too old for current build.
|
List<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.
|
MockMultiLicenseStore |
store(String... licenses) |
MockMultiLicenseStore |
storeDetails(LicenseDetails... licenses) |
void |
storeServerId(String serverId)
Stores the server ID to the persistent backend
|
public MockMultiLicenseStore()
public MockMultiLicenseStore(String... license)
@Nonnull public List<String> retrieve()
MultiLicenseStoreretrieve in interface MultiLicenseStorepublic void store(@Nonnull Iterable<String> licenses)
MultiLicenseStoreThis method will do some cursory checking of inputs but will still store most invalid licenses if requested. The caller should test licenses strings for validity before attempting to store them. This method may throw an unspecified runtime exception if the argument is invalid, for example if it is null, empty, or contains a null element.
Until the application roles dark feature is enabled, MultiLicenseStores may operate in legacy mode. In legacy mode a single license is arbitrarily chosen and stored in the backing legacy license store, typically as an ApplicationProperties property. It is the caller's responsibility to ensure that no more than one license is attempted to be stored when in legacy mode.
store in interface MultiLicenseStorelicenses - the license strings to storepublic MockMultiLicenseStore store(String... licenses)
public MockMultiLicenseStore storeDetails(LicenseDetails... licenses)
public String retrieveServerId()
MultiLicenseStoreretrieveServerId in interface MultiLicenseStorenull if not foundpublic void storeServerId(String serverId)
MultiLicenseStorestoreServerId in interface MultiLicenseStoreserverId - the server ID to storepublic void resetOldBuildConfirmation()
MultiLicenseStoreresetOldBuildConfirmation in interface MultiLicenseStorepublic void confirmProceedUnderEvaluationTerms(String userName)
MultiLicenseStoreconfirmProceedUnderEvaluationTerms in interface MultiLicenseStoreuserName - the name of the user that made the confirmationpublic String getEvalUser()
public void clear()
MultiLicenseStoreclear in interface MultiLicenseStoreCopyright © 2002-2021 Atlassian. All Rights Reserved.