Sun Identity Manager 8.1 Resources Reference

listAll Action

Use the listAll action to retrieve a list of user (or other object type) IDs found in the customer’s database. If you do not define the listAll action, you cannot call the FormUtil.listResourceObjects methods from a form for this resource instance.

In addition, if you do not define the listAll action or the getAccountIterator action, then account iteration (reconciliation, Load From Resource) is not supported.

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 listAllObjects string

objectType

java.lang.String 

Indicates which type of object IDs should be listed. 

Typically, you use the account object type to list user IDs. You can use other object type IDs (such as group) if the script is written to produce IDs for other object types.

options

java.util.Map 

Additional (optional) options that can be passed in to the listResourceObjects invocation

resultList

java.util.List 

The script adds entries to this list. 

Each item the script adds to the list should be a string ID. 

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 also add appropriate strings to the errors key. The presence of any items in the errors List is considered a failure.