Use Case Examples
The following are examples of how the Logical Attribute API can be used:
cim1265
The following are examples of how the Logical Attribute API can be used:
- Format data from a data sourceIn the user directory, a telephone number is stored as the physical attributephone. It has 10 digits -- for example, 9785551212. This physical attribute is associated with the logical attributeformatted_phone.When the task screen that contains the telephone number is about to be displayed,CA Identity Managercalls a custom logical attribute handler that formats the physical attribute telephone number appropriately -- for example, as (978) 555-1212 -- and assigns the formatted value toformatted_phone.CA Identity Manageruses theformatted_phonelogical attribute value to display on the task screen.
- Validate data entryThe physical attributeemployeeNumberexists in a data source, and it is mapped to the logical attributevalidEmployeeNumber. After a user assigns an employee number to thevalidEmployeeNumberattribute on the task screen and clicks Submit,CA Identity Managercalls a custom logical attribute handler to query the data source to be sure that the supplied employee number exists inemployeeNumber. If it does not exist, the logical attribute handler throws an exception.
- Add a drop-down list to a task screenA task screen requires a customer to provide the type of service they have purchased -- Gold, Silver, or Bronze. These options are presented in a drop-down list associated with the logical attributeserviceType. When the customer chooses a service level and clicks Submit,CA Identity Managercalls a logical attribute handler that converts the selected service level to the corresponding physical attribute value (1, 2, or 3) and assigns the value to the physical attributetype.