Class AnalyticsUtils

java.lang.Object
com.atlassian.bamboo.vcs.AnalyticsUtils

public class AnalyticsUtils extends Object
Utils related to Analytic events
  • Field Details

    • NULL_UUID

      public static final String NULL_UUID
    • PERFORCE_REPOSITORY_PLUGIN_KEY

      public static final String PERFORCE_REPOSITORY_PLUGIN_KEY
      See Also:
    • SUPPORTED_REPOSITORIES_KEYS_TO_TYPE

      public static final Map<String,String> SUPPORTED_REPOSITORIES_KEYS_TO_TYPE
  • Constructor Details

    • AnalyticsUtils

      public AnalyticsUtils()
  • Method Details

    • mapToBooleanIfApplicable

      @Nullable @Contract("null -> null; !null -> !null") public static @Nullable Object mapToBooleanIfApplicable(@Nullable @Nullable String value)
      Maps a plain string value to a corresponding Boolean so plugin analytics won't filter it out, e.g. String 'true' is parsed Boolean.TRUE.
    • anonymizeFreeText

      @NotNull @Contract("null -> !null") public static @NotNull String anonymizeFreeText(@Nullable @Nullable String value)
      Creates UUID from given string. Charset independent. It uses UFT-8 ignoring the real encoding of the string.
      Parameters:
      value - if null NULL_UUID is returned.