Oracle Waveset 8.1.1 Resources Reference

enable Action

Use the enable action to enable 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 enable action, the adapter cannot enable users directly 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.wavset.adapter.ScriptedJdbcResourceAdapter 

Adapter instance 

action

java.lang.String 

The enableUser 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. 

Error Handling

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.