Package com.atlassian.bamboo.clover
Class CloverPluginHelper
- java.lang.Object
-
- com.atlassian.bamboo.clover.CloverPluginHelper
-
public class CloverPluginHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringBANDANA_KEY_GLOBAL_LICENSE_KEYstatic Predicate<ImmutablePlan>isCloverEnabledForPlan
-
Constructor Summary
Constructors Constructor Description CloverPluginHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable com.atlassian.extras.api.ProductLicensegetCloverProductLicense(String licenseKey)static @NotNull StringgetGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)Retrieve global Clover license keystatic booleanhasGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)Check if global Clover license has been definedstatic booleanhasValidGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)Check if global Clover license has been defined and is validstatic booleanisCloverOn(@Nullable BuildConfiguration config)static booleanisCloverOn(@Nullable Map<String,String> config)static booleanisValidLicenseKey(String licenseKey)Test if provided Clover license key is validstatic voidsetGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager, @NotNull String globalLicenseKey)Set global Clover license
-
-
-
Field Detail
-
BANDANA_KEY_GLOBAL_LICENSE_KEY
public static final String BANDANA_KEY_GLOBAL_LICENSE_KEY
- See Also:
- Constant Field Values
-
isCloverEnabledForPlan
public static final Predicate<ImmutablePlan> isCloverEnabledForPlan
-
-
Method Detail
-
isCloverOn
public static boolean isCloverOn(@Nullable @Nullable BuildConfiguration config)
-
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
public static boolean isValidLicenseKey(String licenseKey)
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
-
-