public class ExpressionValidationRule extends PerformanceCareRule
EMPTY_ARRAY, FALSE, TRUE| Constructor and Description |
|---|
ExpressionValidationRule(@NotNull FUSRule rule,
@NotNull java.lang.String prefix,
@NotNull java.lang.String suffix) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull ValidationResultType |
doValidate(@NotNull java.lang.String data,
@NotNull EventContext context)
Validates event id and event data before recording it locally.
|
java.lang.String |
toString() |
validatepublic ExpressionValidationRule(@NotNull
@NotNull FUSRule rule,
@NotNull
@NotNull java.lang.String prefix,
@NotNull
@NotNull java.lang.String suffix)
@NotNull public @NotNull ValidationResultType doValidate(@NotNull @NotNull java.lang.String data, @NotNull @NotNull EventContext context)
PerformanceCareRuleValidates 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 in class PerformanceCareRuledata - what is validated. Event id or the value of event data field.context - whole event context, i.e. both event id and event data.public java.lang.String toString()
toString in class java.lang.Object