public enum ScriptExecutionMode extends Enum<ScriptExecutionMode>
Currently only traversal endpoints expose scripting, but this scripting feature for those endpoints can be disabled
by specifying the DISABLED mode when constructing the DatabaseActions.
| Enum Constant and Description |
|---|
DISABLED
Scripting is not allowed, and any attempt at invoking a script will raise an exception.
|
SANDBOXED
Allow scripts to run in a sandboxed environment.
|
UNRESTRICTED
Allow scripts to run without any restrictions at all.
|
| Modifier and Type | Method and Description |
|---|---|
static ScriptExecutionMode |
getConfiguredMode(org.neo4j.kernel.configuration.Config config)
Get the execution mode that matches the given configuration.
|
static ScriptExecutionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScriptExecutionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScriptExecutionMode DISABLED
public static final ScriptExecutionMode SANDBOXED
public static final ScriptExecutionMode UNRESTRICTED
public static ScriptExecutionMode[] values()
for (ScriptExecutionMode c : ScriptExecutionMode.values()) System.out.println(c);
public static ScriptExecutionMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ScriptExecutionMode getConfiguredMode(org.neo4j.kernel.configuration.Config config)
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.