Class CloverPluginHelper


  • public class CloverPluginHelper
    extends Object
    • Constructor Detail

      • CloverPluginHelper

        public CloverPluginHelper()
    • Method Detail

      • isCloverOn

        public static boolean isCloverOn​(@Nullable
                                         @Nullable BuildConfiguration config)
      • isCloverOn

        public static boolean isCloverOn​(@Nullable
                                         @Nullable Map<String,​String> 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 object
        globalLicenseKey - Clover global license key to be stored