IBM InfoSphere Federation Server, Version 10.1

UserMappingEntry class (Java programming language)

The UserMappingEntry class is a utility class that creates and holds the user mapping options. The methods in the UserMappingEntry class are called by the fetchUM() and lookupUM() functions from the UserMappingRepository class.

Public methods

You can view the use of these functions in a sample Java™ plug-in that retrieves user mappings from an LDAP server. The files are in the sqllib/samples/federated/umplugin/ldap/ directory. The functions from this class are used in the UserMappingRepositoryLDAP.java and UserMappingLookupLDAP.java files.

UserMappingEntry(UserMappingRepository repository, String iiInstanceName, String iiDatabaseName, String iiRemoteServerName, String iiAuthID)
This constructor is used to instantiate the UserMappingEntry object with the following input parameters:
  • iiInstance - Instance name of the federated server
  • iiDatabase - Database name on the federated server
  • iiRemoteServerName - Remote server name for the data source
  • iiAuthid - Local user ID that is associated with the user mapping
UserMappingRepository getRepository()
Returns the UserMappingRepository object that is associated with this UserMappingEntry.
String getiiInstanceName()
Returns the name of the instance.
String getiiDatabaseName()
Returns the name of the database.
String getiiRemoteServerName()
Returns the name of the remote server.
String getiiAuthID()
Returns the name of the local user ID that is associated with the user mapping.
UserMappingOption getFirstOption()
Returns the first UserMappingOption object that belongs to this UserMappingEntry object.
void addOption( UserMappingOption newOption)
Adds a new UserMappingOption object to this UserMappingEntry object.


Feedback

Update icon Last updated: 2012-05-18