diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-02-23 11:18:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 11:18:02 -0800 |
commit | 8acc8f0eb2fec2e9b079950ebad835f027fe3f9c (patch) | |
tree | 5dc044ddb8f417920593fd6a245a1fe5dbf7c411 /src/main/java/org/traccar/config | |
parent | 2b7c3ecde2512478dac381feaab9d35a93c3b9cb (diff) | |
parent | 7a8fc065a116af1f944959354495db00459d2199 (diff) | |
download | trackermap-server-8acc8f0eb2fec2e9b079950ebad835f027fe3f9c.tar.gz trackermap-server-8acc8f0eb2fec2e9b079950ebad835f027fe3f9c.tar.bz2 trackermap-server-8acc8f0eb2fec2e9b079950ebad835f027fe3f9c.zip |
Merge pull request #5036 from memesaregood1/master
Implement JEXL parser settings
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 093f4298c..6aa41f85b 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -1301,6 +1301,28 @@ public final class Keys { List.of(KeyType.CONFIG)); /** + * Enable local variables declaration. + */ + public static final ConfigKey<Boolean> PROCESSING_COMPUTED_ATTRIBUTES_LOCAL_VARIABLES = new BooleanConfigKey( + "processing.computedAttributes.localVariables", + List.of(KeyType.CONFIG)); + + /** + * Enable loops processing. + */ + public static final ConfigKey<Boolean> PROCESSING_COMPUTED_ATTRIBUTES_LOOPS = new BooleanConfigKey( + "processing.computedAttributes.loops", + List.of(KeyType.CONFIG)); + + /** + * Enable new instances creation. + * When disabled, parsing a script/expression using 'new(...)' will throw a parsing exception; + */ + public static final ConfigKey<Boolean> PROCESSING_COMPUTED_ATTRIBUTES_NEW_INSTANCE_CREATION = new BooleanConfigKey( + "processing.computedAttributes.newInstanceCreation", + List.of(KeyType.CONFIG)); + + /** * Boolean flag to enable or disable reverse geocoder. */ public static final ConfigKey<Boolean> GEOCODER_ENABLE = new BooleanConfigKey( |