Sun Identity Manager 8.1 Resources Reference

collectCsvHeader Token

The collectCsvHeader token reads a line designated as the header of a comma-separated values (CSV) file.

The Scripted Gateway adapter and Shell Script adapter, among others, can use this token. The collectCsvHeader and collectCsvLines tokens are the only tokens that the Scripted Gateway adapter can use.

Each name in the header must be the same as a resource user attribute on the schema map on the resource adapter. If a string in the header does not match a resource user attribute name, it and the values in the corresponding position in the subsequent data lines will be ignored.

Attributes

Attribute

Description

idHeader

Specifies which value in the header is considered the account ID. This attribute is optional, but recommended. If it is not specified, then the value for the nameHeader attribute will be used.

nameHeader

Specifies which value in the header is considered the name for the account. This is often the same value as idHeader, and if not specified, the value in idHeader is used. This attribute is optional but recommended.

delim

Optional. The string that separates values in the header. The default value is , (comma). 

minCount

Specifies the minimum number of instances of the string specified in the delim attribute that a valid header must have.

trim

Optional. If set to true, then if a value has leading or trailing blanks, remove them. The default is false.

unQuote

Optional. If set to true, then if a value is enclosed in quotes, remove them. The default is false.

Data

None

Example

The following example identifies accountId as the value to be used for the account ID. White space and quotation marks are removed from values.

<collectCsvHeader idHeader=’accountId’ delim=’,’ trim=’true’ unQuote=’true’/>