Interface FUSRule
- All Known Subinterfaces:
FUSRegexpAwareRule,UtilValidationRule
- All Known Implementing Classes:
EnumValidationRule,ExpressionValidationRule,PerformanceCareRule
public interface FUSRule
Used to validate events before recording it locally.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull ValidationResultTypevalidate(@NotNull String data, @NotNull EventContext context) Validates event id and event data before recording it locally.
-
Field Details
-
EMPTY_ARRAY
-
TRUE
-
FALSE
-
-
Method Details
-
validate
@NotNull @NotNull ValidationResultType validate(@NotNull @NotNull 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.
-