Getting User Mapping

This section describes how to retrieve the user mapping (that is, the user name and password) associated with a system for the current user. The portal tries to connect to the back-end system using this user name and password when the current user requests an iView that connects with the system.

The example below usesmySystem, which is anISystemobject.

Procedure

Get theISystemUserMappingDataobject associated with the system for the current user.

ISystemUserMappingDatauserMappingData=mySystem.getUserMappingData( request.getUser());

Get the user name or password from theISystemUserMappingDataobject.

userMappingData.getUser();

userMappingData.getPassword();