Package com.atlassian.bamboo.vcs
Class AnalyticsUtils
java.lang.Object
com.atlassian.bamboo.vcs.AnalyticsUtils
Utils related to Analytic events
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String
anonymizeFreeText
(@Nullable String value) Creates UUID from given string.static @Nullable Object
mapToBooleanIfApplicable
(@Nullable String value) Maps a plain string value to a corresponding Boolean so plugin analytics won't filter it out, e.g.
-
Field Details
-
NULL_UUID
-
PERFORCE_REPOSITORY_PLUGIN_KEY
- See Also:
-
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 parsedBoolean.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 nullNULL_UUID
is returned.
-