Object StatisticsEventEscaper
-
- All Implemented Interfaces:
public class StatisticsEventEscaper
-
-
Field Summary
Fields Modifier and Type Field Description public final static StatisticsEventEscaperINSTANCE
-
Method Summary
Modifier and Type Method Description final static StringescapeEventIdOrFieldValue(String str)Only printable ASCII symbols except whitespaces and '" are allowed. final static Stringescape(String str)Only printable ASCII symbols except whitespaces and :;,'" are allowed. final static StringescapeFieldName(String str)Only printable ASCII symbols except whitespaces and .:;,'" are allowed. final static StringcleanupForLegacyRulesIfNeeded(String str)Removes symbols prohibited in 2020.2 or earlier versions but allowed in 2020.3+. final static HashMap<String, Object>escapeEventData(Map<String, Object> eventData)final static HashMap<String, String>escapeIds(Map<String, String> eventData)final static ObjectescapeEventDataValue(Object value)final BooleanisWhiteSpaceToReplace(Character c)-
-
Method Detail
-
escapeEventIdOrFieldValue
final static String escapeEventIdOrFieldValue(String str)
Only printable ASCII symbols except whitespaces and '" are allowed.
-
escape
final static String escape(String str)
Only printable ASCII symbols except whitespaces and :;,'" are allowed.
-
escapeFieldName
final static String escapeFieldName(String str)
Only printable ASCII symbols except whitespaces and .:;,'" are allowed.
-
cleanupForLegacyRulesIfNeeded
final static String cleanupForLegacyRulesIfNeeded(String str)
Removes symbols prohibited in 2020.2 or earlier versions but allowed in 2020.3+. Used for backward compatibility with validation rules create before 2020.2.
- Returns:
null if there are no prohibited symbols
-
escapeEventDataValue
final static Object escapeEventDataValue(Object value)
-
isWhiteSpaceToReplace
final Boolean isWhiteSpaceToReplace(Character c)
-
-
-
-