public class CloverPluginHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BANDANA_KEY_GLOBAL_LICENSE_KEY |
static com.google.common.base.Predicate<ImmutablePlan> |
isCloverEnabledForPlan |
Constructor and Description |
---|
CloverPluginHelper() |
Modifier and Type | Method and Description |
---|---|
static com.atlassian.extras.api.ProductLicense |
getCloverProductLicense(String licenseKey) |
static String |
getGlobalLicenseKey(com.atlassian.bandana.BandanaManager bandanaManager)
Retrieve global Clover license key
|
static String |
getLocalLicenseKey(BuildConfiguration config)
Retrieve local Clover license key
|
static boolean |
hasGlobalLicenseKey(com.atlassian.bandana.BandanaManager bandanaManager)
Check if global Clover license has been defined
|
static boolean |
hasValidGlobalLicenseKey(com.atlassian.bandana.BandanaManager bandanaManager)
Check if global Clover license has been defined and is valid
|
static boolean |
isAutoIntegrate(BuildConfiguration config)
Test if Build Configuration says "Automatically integrate Clover into build"
|
static boolean |
isAutoIntegrate(Map<String,String> config)
Test if parameter map says "Automatically integrate Clover into build"
|
static boolean |
isCloverOn(BuildConfiguration config) |
static boolean |
isCloverOn(Map<String,String> config) |
static boolean |
isUseLocalLicenseKey(BuildConfiguration config)
Check if plan configuration makes use of locally defined license
|
static boolean |
isValidLicenseKey(String licenseKey)
Test if provided Clover license key is valid
|
static void |
setGlobalLicenseKey(com.atlassian.bandana.BandanaManager bandanaManager,
String globalLicenseKey)
Set global Clover license
|
public static final String BANDANA_KEY_GLOBAL_LICENSE_KEY
public static final com.google.common.base.Predicate<ImmutablePlan> isCloverEnabledForPlan
public static boolean isAutoIntegrate(@Nullable BuildConfiguration config)
config
- BuildConfiguration objectpublic static boolean isAutoIntegrate(@Nullable Map<String,String> config)
config
- Parameter mappublic static boolean isCloverOn(@Nullable BuildConfiguration config)
public static boolean isUseLocalLicenseKey(@Nullable BuildConfiguration config)
config
- public static boolean hasGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)
bandanaManager
- BandanaManager objectpublic static boolean hasValidGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)
bandanaManager
- BandanaManager objectpublic static boolean isValidLicenseKey(String licenseKey)
licenseKey
- Clover license key@Nullable public static com.atlassian.extras.api.ProductLicense getCloverProductLicense(String licenseKey)
@NotNull public static String getGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)
bandanaManager
- BandanaManager objectpublic static void setGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager, @NotNull String globalLicenseKey)
bandanaManager
- BandanaManager objectglobalLicenseKey
- Clover global license key to be stored@Nullable public static String getLocalLicenseKey(@Nullable BuildConfiguration config)
config
- BuildConfiguration objectCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.