public interface FUSRule
SensitiveDataValidator
,
CustomWhiteListRule
Modifier and Type | Field and Description |
---|---|
static FUSRule[] |
EMPTY_ARRAY |
static FUSRule |
FALSE |
static FUSRule |
TRUE |
Modifier and Type | Method and Description |
---|---|
default boolean |
isValidRule() |
ValidationResultType |
validate(java.lang.String data,
EventContext context)
Validates event id and event data before recording it locally.
|
static final FUSRule[] EMPTY_ARRAY
static final FUSRule TRUE
static final FUSRule FALSE
ValidationResultType validate(java.lang.String data, 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 typePluginInfo#isDevelopedByJetBrains()
, PluginInfo#isSafeToReport()
;ValidationResultType.REJECTED
- unexpected data, e.g. cannot find run-configuration by provided id;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.default boolean isValidRule()