Searched defs:script (Results 1 - 25 of 68) sorted by relevance

123

/forgerock/openam-v13/openam-scripting/src/main/java/org/forgerock/openam/scripting/
H A DScriptValidator.java29 * Validate the given script for the particular language rules and produces a list of
31 * @param script the script that needs to be validated.
33 * @throws java.lang.NullPointerException if script is empty.
35 List<ScriptError> validateScript(ScriptObject script); argument
H A DStandardScriptValidator.java22 import javax.script.Compilable;
23 import javax.script.ScriptEngine;
24 import javax.script.ScriptEngineManager;
25 import javax.script.ScriptException;
33 * Validates scripts using the standard JSR 223 script engine framework.
34 * The validator will retrieve the appropriate javax.script.ScriptEngine and establish
35 * if it is an instance of javax.script.Compilable. The Compilable instance will then
36 * be used to compile the script and convert the compilation errors to {@link ScriptError}s.
44 * Constructs the script validator using the given JSR 223 script engin
58 validateScript(ScriptObject script) argument
83 getScriptErrors(ScriptObject script, ScriptException se) argument
[all...]
H A DScriptEvaluator.java19 import javax.script.Bindings;
20 import javax.script.ScriptException;
30 * Evaluates the given script object using an appropriate script engine for the language of the script. Any
31 * bindings associated with the script will be passed to the engine when the script is evaluated.
36 * which makes the objects visible to all script engines. This is most appropriate for stateless API objects
43 * the other scopes. Likewise, script variables will hide any same-named variables in the global scope.
45 * @param script th
53 evaluateScript(ScriptObject script, Bindings bindings) argument
[all...]
H A DScriptObject.java21 import javax.script.Bindings;
25 * Representation of a script in some scripting language.
33 private final String script; field in class:ScriptObject
38 * Constructs a script object with the given name, script body, language and variable bindings.
40 * @param name the name of the script.
41 * @param script the script itself.
42 * @param language the language that the script is written in.
43 * @param bindings the bindings used for the script
45 ScriptObject(final String name, final String script, final ScriptingLanguage language, final Bindings bindings) argument
61 ScriptObject(final String name, final String script, final ScriptingLanguage language) argument
[all...]
H A DStandardScriptEvaluator.java25 import javax.script.Bindings;
26 import javax.script.ScriptContext;
27 import javax.script.ScriptEngine;
28 import javax.script.ScriptException;
29 import javax.script.SimpleBindings;
30 import javax.script.SimpleScriptContext;
33 * Evaluates scripts using the standard JSR 223 script engine framework.
35 * Each script is run in its own thread, watched by the spawning thread. If the script-thread
36 * takes longer to run than the global timeout set for scripts in this class's script engin
83 evaluateScript(final ScriptObject script, final Bindings bindings) argument
103 getScriptEngineFor(final ScriptObject script) argument
[all...]
/forgerock/openidm-v4/openidm-script/src/test/java/org/forgerock/openidm/script/impl/
H A DScriptRegistryServiceTest.java17 package org.forgerock.openidm.script.impl;
/forgerock/openam/openam-scripting/src/main/java/org/forgerock/openam/scripting/
H A DScriptValidator.java29 * Validate the given script for the particular language rules and produces a list of
31 * @param script the script that needs to be validated.
33 * @throws java.lang.NullPointerException if script is empty.
35 List<ScriptError> validateScript(ScriptObject script); argument
H A DStandardScriptValidator.java22 import javax.script.Compilable;
23 import javax.script.ScriptEngine;
24 import javax.script.ScriptEngineManager;
25 import javax.script.ScriptException;
33 * Validates scripts using the standard JSR 223 script engine framework.
34 * The validator will retrieve the appropriate javax.script.ScriptEngine and establish
35 * if it is an instance of javax.script.Compilable. The Compilable instance will then
36 * be used to compile the script and convert the compilation errors to {@link ScriptError}s.
44 * Constructs the script validator using the given JSR 223 script engin
58 validateScript(ScriptObject script) argument
83 getScriptErrors(ScriptObject script, ScriptException se) argument
[all...]
H A DScriptEvaluator.java19 import javax.script.Bindings;
20 import javax.script.ScriptException;
30 * Evaluates the given script object using an appropriate script engine for the language of the script. Any
31 * bindings associated with the script will be passed to the engine when the script is evaluated.
36 * which makes the objects visible to all script engines. This is most appropriate for stateless API objects
43 * the other scopes. Likewise, script variables will hide any same-named variables in the global scope.
45 * @param script th
53 evaluateScript(ScriptObject script, Bindings bindings) argument
[all...]
H A DScriptObject.java21 import javax.script.Bindings;
25 * Representation of a script in some scripting language.
33 private final String script; field in class:ScriptObject
38 * Constructs a script object with the given name, script body, language and variable bindings.
40 * @param name the name of the script.
41 * @param script the script itself.
42 * @param language the language that the script is written in.
43 * @param bindings the bindings used for the script
45 ScriptObject(final String name, final String script, final ScriptingLanguage language, final Bindings bindings) argument
61 ScriptObject(final String name, final String script, final ScriptingLanguage language) argument
[all...]
H A DStandardScriptEvaluator.java25 import javax.script.Bindings;
26 import javax.script.ScriptContext;
27 import javax.script.ScriptEngine;
28 import javax.script.ScriptException;
29 import javax.script.SimpleBindings;
30 import javax.script.SimpleScriptContext;
33 * Evaluates scripts using the standard JSR 223 script engine framework.
35 * Each script is run in its own thread, watched by the spawning thread. If the script-thread
36 * takes longer to run than the global timeout set for scripts in this class's script engin
83 evaluateScript(final ScriptObject script, final Bindings bindings) argument
103 getScriptEngineFor(final ScriptObject script) argument
[all...]
/forgerock/openam-v13/openam-scripting/src/test/java/org/forgerock/openam/scripting/
H A DGroovyValidatorTest.java89 ScriptObject testScript = getGroovyScript("def text = 'This is a valid script';");
114 private ScriptObject getGroovyScript(String script) { argument
116 final String name = "test script";
118 return new ScriptObject(name, script, language, null);
H A DJavaScriptValidatorTest.java73 ScriptObject testScript = getJavascript("This is not a valid script");
85 ScriptObject testScript = getJavascript("var text = 'This is a valid script';");
108 private ScriptObject getJavascript(String script) { argument
110 final String name = "test script";
112 return new ScriptObject(name, script, language, null);
/forgerock/openam-v13/openam-authentication/openam-auth-scripted/src/main/java/org/forgerock/openam/authentication/modules/scripted/
H A DScriptedClientUtilityFunctions.java25 * Creates an anonymous function which causes the script to run automatically when the client page containing the
27 * returned by the client script to the server.
29 * @param script The client side script to be ran.
33 public static String createClientSideScriptExecutorFunction(String script, String outputParameterId, argument
64 " %s\n" + // script
67 script,
/forgerock/openidm-v4/openidm-script/src/main/java/org/forgerock/openidm/script/
H A DScriptCustomizer.java1 package org.forgerock.openidm.script;
3 import javax.script.Bindings;
16 * A ScriptCustomizer allows an implementer to customize the script bindings per request.
H A DScriptedRequestHandler.java17 package org.forgerock.openidm.script;
23 import javax.script.Bindings;
24 import javax.script.ScriptException;
52 import org.forgerock.script.Scope;
53 import org.forgerock.script.Script;
54 import org.forgerock.script.ScriptEntry;
55 import org.forgerock.script.exception.ScriptThrownException;
56 import org.forgerock.script.scope.Function;
57 import org.forgerock.script.scope.FunctionFactory;
58 import org.forgerock.script
440 evaluate(final Request request, final Script script) argument
[all...]
/forgerock/openidm-v4/openidm-script/src/main/java/org/forgerock/openidm/script/impl/metadata/
H A DConfigMeta.java25 package org.forgerock.openidm.script.impl.metadata;
36 import org.forgerock.openidm.script.impl.ScriptRegistryService;
/forgerock/openidm-v4/openidm-script/src/test/java/org/forgerock/openidm/script/
H A DGroovyResourceFunctionsTest.java1 package org.forgerock.openidm.script;
8 import org.forgerock.script.ScriptName;
9 import org.forgerock.script.engine.ScriptEngineFactory;
10 import org.forgerock.script.groovy.GroovyScriptEngineFactory;
11 import org.forgerock.script.registry.ScriptRegistryImpl;
12 import org.forgerock.script.source.EmbeddedScriptSource;
H A DResourceFunctionsTest.java1 package org.forgerock.openidm.script;
3 import org.forgerock.script.Script;
4 import org.forgerock.script.ScriptEntry;
5 import org.forgerock.script.ScriptName;
6 import org.forgerock.script.ScriptRegistry;
29 import org.forgerock.script.registry.ScriptRegistryImpl;
30 import org.forgerock.script.scope.Function;
31 import org.forgerock.script.scope.FunctionFactory;
32 import org.forgerock.script.source.DirectoryContainer;
33 import org.forgerock.script
[all...]
H A DRhinoResourceFunctionsTest.java1 package org.forgerock.openidm.script;
9 import org.forgerock.script.engine.ScriptEngineFactory;
10 import org.forgerock.script.javascript.RhinoScriptEngineFactory;
11 import org.forgerock.script.registry.ScriptRegistryImpl;
/forgerock/openam/openam-scripting/src/test/java/org/forgerock/openam/scripting/
H A DGroovyValidatorTest.java89 ScriptObject testScript = getGroovyScript("def text = 'This is a valid script';");
114 private ScriptObject getGroovyScript(String script) { argument
116 final String name = "test script";
118 return new ScriptObject(name, script, language, null);
H A DJavaScriptValidatorTest.java73 ScriptObject testScript = getJavascript("This is not a valid script");
85 ScriptObject testScript = getJavascript("var text = 'This is a valid script';");
108 private ScriptObject getJavascript(String script) { argument
110 final String name = "test script";
112 return new ScriptObject(name, script, language, null);
/forgerock/openam/openam-authentication/openam-auth-scripted/src/main/java/org/forgerock/openam/authentication/modules/scripted/
H A DScriptedClientUtilityFunctions.java25 * Creates an anonymous function which causes the script to run automatically when the client page containing the
27 * returned by the client script to the server.
29 * @param script The client side script to be ran.
33 public static String createClientSideScriptExecutorFunction(String script, String outputParameterId, argument
64 " %s\n" + // script
67 script,
/forgerock/openam-v13/openam-scripting/src/main/java/org/forgerock/openam/scripting/factories/
H A DSandboxedGroovyScriptEngine.java22 import javax.script.AbstractScriptEngine;
23 import javax.script.Bindings;
24 import javax.script.Compilable;
25 import javax.script.CompiledScript;
26 import javax.script.ScriptContext;
27 import javax.script.ScriptEngine;
28 import javax.script.ScriptEngineFactory;
29 import javax.script.ScriptException;
33 * Applies a sandbox when executing groovy scripts. Delegates to an actual script engine after registering the
34 * sandbox interceptor. Ensures sandbox is removed again after each script evaluatio
62 eval(final String script, final ScriptContext scriptContext) argument
108 compile(final String script) argument
[all...]
/forgerock/openam/openam-scripting/src/main/java/org/forgerock/openam/scripting/factories/
H A DSandboxedGroovyScriptEngine.java22 import javax.script.AbstractScriptEngine;
23 import javax.script.Bindings;
24 import javax.script.Compilable;
25 import javax.script.CompiledScript;
26 import javax.script.ScriptContext;
27 import javax.script.ScriptEngine;
28 import javax.script.ScriptEngineFactory;
29 import javax.script.ScriptException;
33 * Applies a sandbox when executing groovy scripts. Delegates to an actual script engine after registering the
34 * sandbox interceptor. Ensures sandbox is removed again after each script evaluatio
62 eval(final String script, final ScriptContext scriptContext) argument
108 compile(final String script) argument
[all...]

Completed in 6123 milliseconds

123