create Action
Use the create action to create a user in the customer’s
database. If the create action is not defined, then the adapter cannot create
new users in the customer’s database.
Context
The actionContext map contains the following entries:
Key
|
Value Type
|
Value Description
|
conn
|
java.sql.Connection
|
JDBC connection to the customer’s database
|
adapter
|
com.waveset.adapter.ScriptedJdbcResourceAdapter
|
Adapter instance
|
action
|
java.lang.String
|
The createUser string
|
id
|
java.lang.String
|
Account ID of the user to create
|
password
|
java.lang.String
|
If present, this value is the new user’s decrypted password
|
attributes
|
java.util.Map
|
Map of attributes to set for the new user.
|
errors
|
java.util.List
|
Initially, this value is an empty list.
The script may add java.lang.String objects to this
list if any errors are found during processing.
|
trace
|
com.waveset.adapter.Trace
|
Object used to trace execution
Scripts can use methods from this class to be “debuggable”
in a customer environment.
|
Error Handling
Any throw from within the script is considered a failure.
If the script encounters any errors, the script may also add appropriate
strings to the errors key. The presence of any items in
the errors List is considered a creation failure.