Use the PhotoConnector 

Use the PhotoConnector to retrieve, create, update, and delete photo entries in the Photo table in the Profiles database.


Before starting

For information about how to configure your development environment for working with the IBM Tivoli Directory Integrator connectors, and where to place the connectors, see Setting up your development environment.


About this task

The function of the PhotoConnector is to write changes to the Photo table in the Profiles database. The mode setting of the connector determines what role the connector carries out in the assembly line. You can use the PhotoConnector in the following modes.

Table 1. PhotoConnector modes

Mode Description
Iterator In this mode, the PhotoConnector connects to the Photo table in the Profiles database, retrieves all the records, and handles them one by one.
Lookup In this mode, the PhotoConnector fetches records from the Photo table in the Profiles database according to specified search criteria.

Note: The PhotoConnector only supports searches by uid and key.

updateToDB In this mode, the PhotoConnector updates the latest photo records in the Photo table in the Profiles database. The connector can update the database using the photo link, inputting it as an InputStream data type, or using the photo content, inputting it as a byte data type.
Delete In this mode, the PhotoConnector deletes records in the Photo table in the Profiles database according to specified search criteria.

Note: The PhotoConnector can only delete photos that are specified by uid or key.


Procedure

  1. To add the connector to the assembly line, open the assembly line, and then click Add Component in the Configuration Editor.

  2. Select Connectors, and then select PhotoConnector from the Components list.

  3. Enter a name for the connector in the Name field.

  4. Select a mode from the Mode list, and then click Finish.

  5. Optional: If you want to add the connector to your project's connector library, right-click the Connectors folder in the Configuration Browser, and then select PhotoConnector from the Components list.


Parent topic

Developing custom Tivoli Directory Integrator assembly lines for Profiles


Related tasks


Setting up your development environment
Populating Profiles with photos


   

 

});

+

Search Tips   |   Advanced Search