C# Class Org.IdentityConnectors.Framework.Common.Objects.ScriptContextBuilder

Builds an ScriptContext.
Afficher le fichier Open project: Tirasa/ConnId Class Usage Examples

Méthodes publiques

Méthode Description
AddScriptArgument ( String name, Object value ) : ScriptContextBuilder

Adds or sets an argument to pass to the script.

Build ( ) : ScriptContext

Creates a ScriptContext.

The scriptLanguage and scriptText must be set prior to calling this.

RemoveScriptArgument ( String name ) : ScriptContextBuilder

Removes the given script argument.

ScriptContextBuilder ( ) : System

Creates an empty builder.

ScriptContextBuilder ( String scriptLanguage, String scriptText ) : System

Creates a builder with the required parameters specified.

Method Details

AddScriptArgument() public méthode

Adds or sets an argument to pass to the script.
public AddScriptArgument ( String name, Object value ) : ScriptContextBuilder
name String The name of the argument. Must not be null.
value Object The value of the argument. Must be one of /// type types that the framework can serialize.
Résultat ScriptContextBuilder

Build() public méthode

Creates a ScriptContext.
The scriptLanguage and scriptText must be set prior to calling this.
public Build ( ) : ScriptContext
Résultat ScriptContext

RemoveScriptArgument() public méthode

Removes the given script argument.
public RemoveScriptArgument ( String name ) : ScriptContextBuilder
name String The name of the argument. Must not be null.
Résultat ScriptContextBuilder

ScriptContextBuilder() public méthode

Creates an empty builder.
public ScriptContextBuilder ( ) : System
Résultat System

ScriptContextBuilder() public méthode

Creates a builder with the required parameters specified.
public ScriptContextBuilder ( String scriptLanguage, String scriptText ) : System
scriptLanguage String a string that identifies the language /// in which the script is written /// (e.g., bash, csh, /// Perl4 or Python).
scriptText String The text (i.e., actual characters) of the script.
Résultat System