Package com.atlassian.bamboo.clover
Class CloverPluginHelper
java.lang.Object
com.atlassian.bamboo.clover.CloverPluginHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable com.atlassian.extras.api.ProductLicense
getCloverProductLicense
(String licenseKey) static @NotNull String
getGlobalLicenseKey
(@NotNull com.atlassian.bandana.BandanaManager bandanaManager) Retrieve global Clover license keystatic boolean
hasGlobalLicenseKey
(@NotNull com.atlassian.bandana.BandanaManager bandanaManager) Check if global Clover license has been definedstatic boolean
hasValidGlobalLicenseKey
(@NotNull com.atlassian.bandana.BandanaManager bandanaManager) Check if global Clover license has been defined and is validstatic boolean
isCloverOn
(@Nullable BuildConfiguration config) static boolean
isCloverOn
(@Nullable Map<String, String> config) static boolean
isValidLicenseKey
(String licenseKey) Test if provided Clover license key is validstatic void
setGlobalLicenseKey
(@NotNull com.atlassian.bandana.BandanaManager bandanaManager, @NotNull String globalLicenseKey) Set global Clover license
-
Field Details
-
BANDANA_KEY_GLOBAL_LICENSE_KEY
- See Also:
-
isCloverEnabledForPlan
-
-
Constructor Details
-
CloverPluginHelper
public CloverPluginHelper()
-
-
Method Details
-
isCloverOn
-
isCloverOn
-
hasGlobalLicenseKey
public static boolean hasGlobalLicenseKey(@NotNull @NotNull com.atlassian.bandana.BandanaManager bandanaManager) Check if global Clover license has been defined- Parameters:
bandanaManager
- BandanaManager object- Returns:
- True if global Clover license has been defined
-
hasValidGlobalLicenseKey
public static boolean hasValidGlobalLicenseKey(@NotNull @NotNull com.atlassian.bandana.BandanaManager bandanaManager) Check if global Clover license has been defined and is valid- Parameters:
bandanaManager
- BandanaManager object- Returns:
- True if global Clover license has been defined
-
isValidLicenseKey
Test if provided Clover license key is valid- Parameters:
licenseKey
- Clover license key- Returns:
- True if license key is valid
-
getCloverProductLicense
@Nullable public static @Nullable com.atlassian.extras.api.ProductLicense getCloverProductLicense(String licenseKey) -
getGlobalLicenseKey
@NotNull public static @NotNull String getGlobalLicenseKey(@NotNull @NotNull com.atlassian.bandana.BandanaManager bandanaManager) Retrieve global Clover license key- Parameters:
bandanaManager
- BandanaManager object- Returns:
- Global Clover license or empty string if not defined.
-
setGlobalLicenseKey
public static void setGlobalLicenseKey(@NotNull @NotNull com.atlassian.bandana.BandanaManager bandanaManager, @NotNull @NotNull String globalLicenseKey) Set global Clover license- Parameters:
bandanaManager
- BandanaManager objectglobalLicenseKey
- Clover global license key to be stored
-