public abstract class LocalFileCustomWhiteListRule extends CustomWhiteListRule
EP_NAME
EMPTY_ARRAY, FALSE, TRUE
Modifier | Constructor and Description |
---|---|
protected |
LocalFileCustomWhiteListRule(java.lang.String ruleId,
java.lang.Class resource,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptRuleId(java.lang.String ruleId) |
protected java.lang.String |
createValue(java.lang.String value) |
protected ValidationResultType |
doValidate(java.lang.String data,
EventContext context)
Validates event id and event data before recording it locally.
|
acceptWhenReportedByJetBrainsPlugin, acceptWhenReportedByPluginFromPluginRepository, getEventDataField, getLanguage, isPluginFromPluginRepository, isThirdPartyValue
validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isValidRule, validate
protected LocalFileCustomWhiteListRule(java.lang.String ruleId, java.lang.Class resource, java.lang.String path)
public boolean acceptRuleId(java.lang.String ruleId)
acceptRuleId
in class CustomWhiteListRule
protected java.lang.String createValue(java.lang.String value)
protected final ValidationResultType doValidate(java.lang.String data, EventContext context)
PerformanceCareRule
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;doValidate
in class PerformanceCareRule
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.