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

Builds an ScriptContext.
Mostra file Open project: Tirasa/ConnId Class Usage Examples

Public Methods

Method 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 method

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.
return ScriptContextBuilder

Build() public method

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

RemoveScriptArgument() public method

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

ScriptContextBuilder() public method

Creates an empty builder.
public ScriptContextBuilder ( ) : System
return System

ScriptContextBuilder() public method

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.
return System