Use the disable action to disable users in the customer’s database. Implement this action if the schema of a user in the customer’s database supports the concept of enabled/disabled. If you do not define the disable action, the adapter cannot disable users directly in the customer’s database.
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.wavset.adapter.ScriptedJdbcResourceAdapter |
Adapter instance |
action |
java.lang.String |
The disableUser string |
id |
java.lang.String |
User account ID to enable |
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 the methods of this class to make themselves “debuggable” in a customer environment. |
Any throw from within the script is considered a failure.
If the script encounters any errors, the script may add the appropriate strings to the errors key. The presence of any items in the errors List is considered a failure.