Class PerformanceCareRule
- java.lang.Object
-
- com.intellij.internal.statistic.eventLog.validator.rules.PerformanceCareRule
-
- All Implemented Interfaces:
FUSRule
- Direct Known Subclasses:
EnumValidationRule,ExpressionValidationRule
public abstract class PerformanceCareRule extends java.lang.Object implements FUSRule
-
-
Field Summary
-
Fields inherited from interface com.intellij.internal.statistic.eventLog.validator.rules.FUSRule
EMPTY_ARRAY, FALSE, TRUE
-
-
Constructor Summary
Constructors Constructor Description PerformanceCareRule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract @NotNull ValidationResultTypedoValidate(@NotNull java.lang.String data, @NotNull EventContext context)Validates event id and event data before recording it locally.@NotNull ValidationResultTypevalidate(@NotNull java.lang.String data, @NotNull EventContext context)Validates event id and event data before recording it locally.
-
-
-
Method Detail
-
validate
@NotNull public final @NotNull ValidationResultType validate(@NotNull @NotNull java.lang.String data, @NotNull @NotNull EventContext context)
Description copied from interface:FUSRuleValidates event id and event data before recording it locally. Used to ensure that no personal or proprietary data is recorded.
ValidationResultType.ACCEPTED- data is checked and should be recorded as is;ValidationResultType.THIRD_PARTY- data is correct but is implemented in an unknown third-party plugin, e.g. third-party file typeValidationResultType.REJECTED- unexpected data, e.g. cannot find run-configuration by provided id;
-
doValidate
@NotNull protected abstract @NotNull ValidationResultType doValidate(@NotNull @NotNull java.lang.String data, @NotNull @NotNull EventContext context)
Validates event id and event data before recording it locally. Used to ensure that no personal or proprietary data is recorded.
ValidationResultType.ACCEPTED- data is checked and should be recorded as is;ValidationResultType.THIRD_PARTY- data is correct but is implemented in an unknown third-party plugin, e.g. third-party file typeValidationResultType.REJECTED- unexpected data, e.g. cannot find run-configuration by provided id;
- Parameters:
data- what is validated. Event id or the value of event data field.context- whole event context, i.e. both event id and event data.
-
-